Class ProjectStatusService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.projects.rs1.status.ProjectStatusService
@RestController
@RequestMapping("work-orders/projects/r1/project-statuses")
@Resource(logging=true)
public class ProjectStatusService
extends PrivateService
Services to manage project status
- Since:
- 16.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOProjectStatus> get(Long id, String language, Collection<String> fields) Retrieves the required project status by calling theProjectStatusLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOProjectStatus>> getCollection(@Valid Page page, String language, Collection<String> fields, String order, @Valid DTOProjectStatusFilter filter) Returns the collection of all the project status by calling theProjectStatusSearchEvent.
-
Constructor Details
-
ProjectStatusService
public ProjectStatusService()
-
-
Method Details
-
get
@GetMapping(value="{projectStatusId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOProjectStatus> get(@PathVariable("projectStatusId") Long id, @RequestParam(required=false,name="_language",defaultValue="user") String language, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the required project status by calling theProjectStatusLoadEvent.- Parameters:
id- project status idlanguage- the user languagefields- the collection of fields the response will contain- Returns:
- the
ResponseEntitycontaining the loadedDTOProjectStatus - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOProjectStatus>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_language",defaultValue="user") String language, @RequestParam(required=false,value="_fields") Collection<String> fields, @RequestParam(required=false,value="_order") String order, @Valid @Valid DTOProjectStatusFilter filter) throws DAValidateException, DAException Returns the collection of all the project status by calling theProjectStatusSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultlanguage- the user languagefields- the collection of fields the response will containorder- the ordering fieldfilter- theDTOProjectStatusFilter- Returns:
- the
ResponseEntitycontaining the collection ofDTOProjectStatus - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-