@Controller @RequestMapping(value="/councilmember") public class CouncilMemberController extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.egov.infra.filestore.service.FileStoreService |
fileStoreService |
protected org.egov.infra.utils.FileStoreUtils |
fileStoreUtils |
| Constructor and Description |
|---|
CouncilMemberController() |
| Modifier and Type | Method and Description |
|---|---|
String |
ajaxsearch(String mode,
org.springframework.ui.Model model,
org.egov.council.entity.CouncilMember councilMember) |
String |
create(org.egov.council.entity.CouncilMember councilMember,
org.springframework.validation.BindingResult errors,
org.springframework.web.multipart.MultipartFile attachments,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttrs) |
void |
download(String fileStoreId,
javax.servlet.http.HttpServletResponse response) |
String |
edit(Long id,
org.springframework.ui.Model model,
javax.servlet.http.HttpServletResponse response) |
String |
newForm(org.springframework.ui.Model model) |
String |
result(Long id,
org.springframework.ui.Model model) |
String |
search(String mode,
org.springframework.ui.Model model) |
Object |
toSearchResultJson(Object object) |
String |
update(org.egov.council.entity.CouncilMember councilMember,
org.springframework.web.multipart.MultipartFile attachments,
org.springframework.validation.BindingResult errors,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttrs) |
String |
view(Long id,
org.springframework.ui.Model model) |
@Qualifier(value="fileStoreService") @Autowired protected org.egov.infra.filestore.service.FileStoreService fileStoreService
@Autowired protected org.egov.infra.utils.FileStoreUtils fileStoreUtils
@RequestMapping(value="/new",
method=GET)
public String newForm(org.springframework.ui.Model model)
@RequestMapping(value="/create",
method=POST)
public String create(@ModelAttribute
org.egov.council.entity.CouncilMember councilMember,
org.springframework.validation.BindingResult errors,
@RequestParam
org.springframework.web.multipart.MultipartFile attachments,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttrs)
@RequestMapping(value="/edit/{id}",
method=GET)
public String edit(@PathVariable(value="id")
Long id,
org.springframework.ui.Model model,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOException@RequestMapping(value="/update",
method=POST)
public String update(@ModelAttribute
org.egov.council.entity.CouncilMember councilMember,
@RequestParam
org.springframework.web.multipart.MultipartFile attachments,
org.springframework.validation.BindingResult errors,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttrs)
@RequestMapping(value="/view/{id}",
method=GET)
public String view(@PathVariable(value="id")
Long id,
org.springframework.ui.Model model)
@RequestMapping(value="/result/{id}",
method=GET)
public String result(@PathVariable(value="id")
Long id,
org.springframework.ui.Model model)
@RequestMapping(value="/search/{mode}",
method=GET)
public String search(@PathVariable(value="mode")
String mode,
org.springframework.ui.Model model)
@RequestMapping(value="/ajaxsearch/{mode}",
method=POST,
produces="text/plain")
@ResponseBody
public String ajaxsearch(@PathVariable(value="mode")
String mode,
org.springframework.ui.Model model,
@ModelAttribute
org.egov.council.entity.CouncilMember councilMember)
@RequestMapping(value="/downloadfile/{fileStoreId}")
public void download(@PathVariable
String fileStoreId,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionCopyright © 2015–2016 eGovernments Foundation. All rights reserved.