@Controller @RequestMapping(value="/subcategory") public class SubCategoryController extends Object
| Constructor and Description |
|---|
SubCategoryController(org.egov.adtax.service.SubCategoryService subCategoryService) |
| Modifier and Type | Method and Description |
|---|---|
String |
create() |
String |
create(org.egov.adtax.entity.SubCategory subCategory,
org.springframework.validation.BindingResult errors,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttrs) |
List<org.egov.adtax.entity.HoardingCategory> |
getAllHoardingCategory() |
List<org.egov.adtax.entity.SubCategory> |
getAllSubCategory() |
String |
search() |
void |
searchSubcategory(org.springframework.ui.Model model,
org.egov.adtax.entity.SubCategory subCategory,
String category,
String description,
javax.servlet.http.HttpServletResponse response) |
org.egov.adtax.entity.SubCategory |
subCategory() |
org.springframework.web.servlet.ModelAndView |
successView(Long id,
org.egov.adtax.entity.SubCategory subCategory) |
@Autowired public SubCategoryController(org.egov.adtax.service.SubCategoryService subCategoryService)
@ModelAttribute(value="subCategory") public org.egov.adtax.entity.SubCategory subCategory()
@ModelAttribute(value="subCategories") public List<org.egov.adtax.entity.SubCategory> getAllSubCategory()
@ModelAttribute(value="hoardingCategories") public List<org.egov.adtax.entity.HoardingCategory> getAllHoardingCategory()
@RequestMapping(value="create",
method=GET)
public String create()
@RequestMapping(value="/search",
method=GET)
public String search()
@RequestMapping(value="create",
method=POST)
public String create(@ModelAttribute
org.egov.adtax.entity.SubCategory subCategory,
org.springframework.validation.BindingResult errors,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttrs)
@RequestMapping(value="/success/{id}",
method=GET)
public org.springframework.web.servlet.ModelAndView successView(@PathVariable(value="id")
Long id,
@ModelAttribute
org.egov.adtax.entity.SubCategory subCategory)
@RequestMapping(value="/searchSubCategory",
method=GET,
produces="application/json")
@ResponseBody
public void searchSubcategory(org.springframework.ui.Model model,
@ModelAttribute
org.egov.adtax.entity.SubCategory subCategory,
@RequestParam
String category,
@RequestParam
String description,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionCopyright © 2015–2017 eGovernments Foundation. All rights reserved.