Class WorkOrderOperationStatusService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.workorders.rs1.operationstatus.WorkOrderOperationStatusService
@RestController
@RequestMapping("work-orders/r1/operation-status")
@Resource(logging=true)
public class WorkOrderOperationStatusService
extends PrivateService
Service to manage work order operation status
- Since:
- 16.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOWorkOrderOperationStatus> get(Long id, Collection<String> fields) Retrieves the requiredDTOWorkOrderOperationStatusby calling theWorkOrderOperationStatusLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOWorkOrderOperationStatus>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid DTOWorkOrderOperationStatusFilter filter) Returns the collection of all the stored work order operation status by calling theWorkOrderOperationStatusSearchEvent.
-
Constructor Details
-
WorkOrderOperationStatusService
public WorkOrderOperationStatusService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOWorkOrderOperationStatus>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @Valid @Valid DTOWorkOrderOperationStatusFilter filter) throws DAValidateException, DAException Returns the collection of all the stored work order operation status by calling theWorkOrderOperationStatusSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfields- the collection of fields the response will containorder- the ordering fieldfilter- theDTOWorkOrderOperationStatusFilter- Returns:
- the collection of
DTOWorkOrderOperationStatus - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{operationStatusId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOWorkOrderOperationStatus> get(@PathVariable("operationStatusId") Long id, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOWorkOrderOperationStatusby calling theWorkOrderOperationStatusLoadEvent.- Parameters:
id- the work order operation status idfields- the collection of fields the response will contain- Returns:
- the response containing the loaded work order operation status
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-