@Controller
@RequestMapping(value="/complaint/update/{crnNo}")
public class ComplaintUpdationController
extends Object
| Constructor and Description |
|---|
ComplaintUpdationController(org.egov.pgr.service.ComplaintService complaintService,
org.egov.pgr.service.ComplaintTypeService complaintTypeService,
org.egov.pgr.service.ComplaintStatusMappingService complaintStatusMappingService,
org.springframework.validation.SmartValidator validator) |
| Modifier and Type | Method and Description |
|---|---|
protected Set<org.egov.infra.filestore.entity.FileStoreMapper> |
addToFileStore(org.springframework.web.multipart.MultipartFile[] files) |
String |
edit(org.springframework.ui.Model model,
String crnNo) |
void |
getComplaint(String crnNo,
org.springframework.ui.Model model) |
org.springframework.web.servlet.ModelAndView |
successView(org.egov.pgr.entity.Complaint complaint) |
String |
update(org.egov.pgr.entity.Complaint complaint,
org.springframework.validation.BindingResult errors,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttrs,
org.springframework.ui.Model model,
javax.servlet.http.HttpServletRequest request,
org.springframework.web.multipart.MultipartFile[] files) |
@Autowired
public ComplaintUpdationController(org.egov.pgr.service.ComplaintService complaintService,
org.egov.pgr.service.ComplaintTypeService complaintTypeService,
org.egov.pgr.service.ComplaintStatusMappingService complaintStatusMappingService,
org.springframework.validation.SmartValidator validator)
@ModelAttribute
public void getComplaint(@PathVariable
String crnNo,
org.springframework.ui.Model model)
@RequestMapping(method=GET) public String edit(org.springframework.ui.Model model, @PathVariable String crnNo)
@RequestMapping(method=POST) public String update(@ModelAttribute org.egov.pgr.entity.Complaint complaint, org.springframework.validation.BindingResult errors, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttrs, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, @RequestParam(value="files") org.springframework.web.multipart.MultipartFile[] files)
@RequestMapping(value="/update-success")
public org.springframework.web.servlet.ModelAndView successView(@ModelAttribute
org.egov.pgr.entity.Complaint complaint)
protected Set<org.egov.infra.filestore.entity.FileStoreMapper> addToFileStore(org.springframework.web.multipart.MultipartFile[] files)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.