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