@RestController @RequestMapping(value="/v1.0") public class ComplaintController extends ApiController
| Modifier and Type | Field and Description |
|---|---|
protected org.egov.pgr.service.ComplaintService |
complaintService |
protected org.egov.pgr.service.ComplaintStatusMappingService |
complaintStatusMappingService |
protected org.egov.pgr.service.ComplaintStatusService |
complaintStatusService |
protected org.egov.pgr.service.ComplaintTypeCategoryService |
complaintTypeCategoryService |
protected org.egov.pgr.service.ComplaintTypeService |
complaintTypeService |
protected org.egov.infra.admin.master.service.CrossHierarchyService |
crossHierarchyService |
protected org.egov.infra.utils.FileStoreUtils |
fileStoreUtils |
entityManager, fileStoreService, Log| Constructor and Description |
|---|
ComplaintController() |
| Modifier and Type | Method and Description |
|---|---|
protected Set<org.egov.infra.filestore.entity.FileStoreMapper> |
addToFileStore(org.springframework.web.multipart.MultipartFile[] files) |
org.springframework.http.ResponseEntity<String> |
complaintCreate(String complaintJSON,
org.springframework.web.multipart.MultipartFile[] files)
This will create a complaint
|
void |
download(String fileStoreId,
javax.servlet.http.HttpServletResponse response) |
org.springframework.http.ResponseEntity<String> |
getAllComplaintCategories()
This will returns all complaint types
|
org.springframework.http.ResponseEntity<String> |
getAllTypes()
This will returns all complaint types
|
org.springframework.http.ResponseEntity<String> |
getComplaintActions(String complaintNo) |
void |
getComplaintDoc(String complaintNo,
Long fileNo,
boolean isThumbnail,
javax.servlet.http.HttpServletResponse response)
This will download the support document of the complaint.
|
org.springframework.http.ResponseEntity<String> |
getComplaintHistory(String complaintNo) |
org.springframework.http.ResponseEntity<String> |
getComplaintsCount()
This will returns complaints count by status of current user.
|
org.springframework.http.ResponseEntity<String> |
getComplaintsTotalCount()
This will returns resolved and unresolved complaints count in the city.
|
org.springframework.http.ResponseEntity<String> |
getDetail(String complaintNo)
This will display the detail of the complaint
|
org.springframework.http.ResponseEntity<String> |
getFrequentTypes()
This will returns complaint types which is frequently filed.
|
org.springframework.http.ResponseEntity<String> |
getLatest(int page,
int pageSize)
This will display the latest complaint except current user.
|
org.springframework.http.ResponseEntity<String> |
getLocation(String locationName)
This will returns the location(name, address) based on given characters.
|
org.springframework.http.ResponseEntity<String> |
getMyComplaint(int page,
int pageSize,
String complaintStatus)
This will returns complaint list of current user.
|
org.springframework.http.ResponseEntity<String> |
getNearByComplaint(int page,
float lat,
float lng,
int distance,
int pageSize)
This will returns nearest user complaint list.
|
org.springframework.http.ResponseEntity<String> |
getStatus(String complaintNo)
This will display the status history of the complaint( status : REGISTERED, FORWARDED..).
|
org.springframework.http.ResponseEntity<String> |
updateComplaintFromEmployee(String complaintNo,
String complaintJsonStr,
org.springframework.web.multipart.MultipartFile[] files) |
org.springframework.http.ResponseEntity<String> |
updateComplaintStatus(String complaintNo,
org.json.simple.JSONObject jsonData)
This will update the status of the complaint.
|
org.springframework.http.ResponseEntity<String> |
uploadSupportDocs(String complaintNo,
org.springframework.web.multipart.MultipartFile file)
This will upload complaint support document
|
apiExceptionHandler, apiExceptionHandler, apiExceptionHandler, apiExceptionHandler, getMessage, getResponseHandler@Autowired protected org.egov.pgr.service.ComplaintStatusService complaintStatusService
@Autowired protected org.egov.pgr.service.ComplaintService complaintService
@Autowired protected org.egov.pgr.service.ComplaintTypeCategoryService complaintTypeCategoryService
@Autowired protected org.egov.pgr.service.ComplaintTypeService complaintTypeService
@Autowired protected org.egov.infra.admin.master.service.CrossHierarchyService crossHierarchyService
@Autowired protected org.egov.infra.utils.FileStoreUtils fileStoreUtils
@Autowired protected org.egov.pgr.service.ComplaintStatusMappingService complaintStatusMappingService
@RequestMapping(value="/complaint/getComplaintCategories",
method=GET,
produces="text/plain")
public org.springframework.http.ResponseEntity<String> getAllComplaintCategories()
@RequestMapping(value="/complaint/getAllTypes",
method=GET,
produces="text/plain")
public org.springframework.http.ResponseEntity<String> getAllTypes()
@RequestMapping(value="/complaint/getFrequentlyFiledTypes",
method=GET,
produces="text/plain")
public org.springframework.http.ResponseEntity<String> getFrequentTypes()
@RequestMapping(value="/complaint/create",
method=POST)
public org.springframework.http.ResponseEntity<String> complaintCreate(@RequestParam(value="json_complaint",required=false)
String complaintJSON,
@RequestParam(value="files")
org.springframework.web.multipart.MultipartFile[] files)
Complaint - - As json Objectprotected Set<org.egov.infra.filestore.entity.FileStoreMapper> addToFileStore(org.springframework.web.multipart.MultipartFile[] files)
@RequestMapping(value="/complaint/{complaintNo}/uploadSupportDocument",
method=POST)
public org.springframework.http.ResponseEntity<String> uploadSupportDocs(@PathVariable
String complaintNo,
@RequestParam(value="files")
org.springframework.web.multipart.MultipartFile file)
complaintNo - files - @RequestMapping(value="/complaint/{complaintNo}/detail",
method=GET,
produces="text/plain")
public org.springframework.http.ResponseEntity<String> getDetail(@PathVariable
String complaintNo)
complaintNo - @RequestMapping(value="/complaint/{complaintNo}/status",
method=GET,
produces="text/plain")
public org.springframework.http.ResponseEntity<String> getStatus(@PathVariable
String complaintNo)
complaintNo - @RequestMapping(value="/complaint/latest/{page}/{pageSize}",
method=GET,
produces="text/plain")
public org.springframework.http.ResponseEntity<String> getLatest(@PathVariable(value="page")
int page,
@PathVariable(value="pageSize")
int pageSize)
page - pageSize - @RequestMapping(value="/complaint/getLocation",
method=GET,
produces="text/plain")
public org.springframework.http.ResponseEntity<String> getLocation(@RequestParam(value="locationName")
String locationName)
locationName - @RequestMapping(value="/complaint/count",
method=GET,
produces="text/plain")
public org.springframework.http.ResponseEntity<String> getComplaintsTotalCount()
page - pageSize - @RequestMapping(value="/citizen/getMyComplaint/count",
method=GET,
produces="text/plain")
public org.springframework.http.ResponseEntity<String> getComplaintsCount()
page - pageSize - @RequestMapping(value="/citizen/getMyComplaint/{page}/{pageSize}",
method=GET,
produces="text/plain")
public org.springframework.http.ResponseEntity<String> getMyComplaint(@PathVariable(value="page")
int page,
@PathVariable(value="pageSize")
int pageSize,
@RequestParam(value="complaintStatus",required=false)
String complaintStatus)
page - pageSize - @RequestMapping(value="/complaint/nearby/{page}/{pageSize}",
method=GET,
produces="text/plain")
public org.springframework.http.ResponseEntity<String> getNearByComplaint(@PathVariable(value="page")
int page,
@RequestParam(value="lat")
float lat,
@RequestParam(value="lng")
float lng,
@RequestParam(value="distance")
int distance,
@PathVariable(value="pageSize")
int pageSize)
page - pageSize - lat - lng - distance - @RequestMapping(value="/complaint/{complaintNo}/downloadSupportDocument",
method=GET)
public void getComplaintDoc(@PathVariable
String complaintNo,
@RequestParam(value="fileNo",required=false)
Long fileNo,
@RequestParam(value="isThumbnail",required=false,defaultValue="false")
boolean isThumbnail,
javax.servlet.http.HttpServletResponse response)
throws IOException
complaintNo - fileNo - isThumbnail - IOException@RequestMapping(value="/complaint/downloadfile/{fileStoreId}")
public void download(@PathVariable
String fileStoreId,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOException@RequestMapping(value="/complaint/{complaintNo}/updateStatus",
method=PUT,
produces="text/plain")
public org.springframework.http.ResponseEntity<String> updateComplaintStatus(@PathVariable
String complaintNo,
@RequestBody
org.json.simple.JSONObject jsonData)
complaintNo - As - a json object ( action, comment)@RequestMapping(value="/complaint/{complaintNo}/complaintHistory",
method=GET,
produces="text/plain")
public org.springframework.http.ResponseEntity<String> getComplaintHistory(@PathVariable
String complaintNo)
@RequestMapping(value="/employee/complaint/{complaintNo}/complaintActions",
method=GET,
produces="text/plain")
public org.springframework.http.ResponseEntity<String> getComplaintActions(@PathVariable
String complaintNo)
@RequestMapping(value="/employee/complaint/update/{complaintNo}",
method=POST,
produces="text/plain")
public org.springframework.http.ResponseEntity<String> updateComplaintFromEmployee(@PathVariable
String complaintNo,
@RequestParam(value="jsonParams",required=false)
String complaintJsonStr,
@RequestParam(value="files")
org.springframework.web.multipart.MultipartFile[] files)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.