Class BundleOperationStatusService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.bundler.rs1.operation.status.BundleOperationStatusService
@RestController
@RequestMapping("work-orders/bundler/r1/operation-status")
@Resource(logging=true)
public class BundleOperationStatusService
extends PrivateService
Service to manage Bundle Operation Status.
- Since:
- 20.1
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOBundleOperationStatus> get(Long statusId, Collection<String> fields) Retrieves the required bundle operation status by calling theBundleOperationStatusLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOBundleOperationStatus>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid DTOBundleOperationStatusFilter filter) Returns the collection of all the stored bundle operation status by calling theBundleOperationStatusSearchEvent.
-
Constructor Details
-
BundleOperationStatusService
public BundleOperationStatusService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOBundleOperationStatus>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @Valid @Valid DTOBundleOperationStatusFilter filter) throws DAValidateException, DAException Returns the collection of all the stored bundle operation status by calling theBundleOperationStatusSearchEvent.- Parameters:
page- the page that will contain the paginated resultfields- the collection of fields that will be contained in the responseorder- the ordering fieldfilter- theDTOBundleOperationStatusFilter- Returns:
- the collection of
DTOBundleOperationStatuses - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-
get
@GetMapping(value="{statusId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOBundleOperationStatus> get(@PathVariable("statusId") Long statusId, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the required bundle operation status by calling theBundleOperationStatusLoadEvent.- Parameters:
statusId- the ID of the bundle operation status to be loadedfields- the collection of fields that will be contained in the response- Returns:
- the response containing the bundle operation ordering
- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-