Class MobileWorkOrderService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.mobile.core.rs3.workorder.MobileWorkOrderService
@RestController
@RequestMapping("mobile/r3/workorders")
@Resource(logging=true)
public class MobileWorkOrderService
extends PrivateService
Services to manage mobile work orders.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> accept(Long id, @Valid DTOMobileWorkOrderAccept dto) Accept the given work order (operation) from mobile.org.springframework.http.ResponseEntity<Void> Accept and take in charge the given work order (operation) from mobile.org.springframework.http.ResponseEntity<PageResponse<DTOMobileWorkOrderSearchResult>> getCollection(@Valid Page page, @NotNull @Valid DTOMobileWorkOrderSearchFilter filter, String ordering) Retrieves the work orders matching the specified filter.
-
Constructor Details
-
MobileWorkOrderService
public MobileWorkOrderService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOMobileWorkOrderSearchResult>> getCollection(@RequestParam("page") @Valid @Valid Page page, @RequestParam("filter") @NotNull @Valid @NotNull @Valid DTOMobileWorkOrderSearchFilter filter, @RequestParam(required=false,name="order") String ordering) throws DAValidateException, DAException Retrieves the work orders matching the specified filter.MobileWorkOrderSearchEvent- Parameters:
page- the required result pagefilter- the specifiedDTOMobileWorkOrderSearchFilterparameters- Returns:
- the response containing the result page
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
accept
@PostMapping(value="{id:[0-9]+}/actions/accept", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> accept(@PathVariable("id") Long id, @Valid @RequestBody @Valid DTOMobileWorkOrderAccept dto) throws DAException, DAValidateException Accept the given work order (operation) from mobile.MobileWorkOrderAcceptEvent- Parameters:
id- the work order iddto- theDTOMobileWorkOrderAccept- Returns:
- the standard response
- Throws:
DAException- the DA exceptionDAValidateException
-
acceptInCharge
@PostMapping(value="{id:[0-9]+}/actions/acceptincharge", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> acceptInCharge(@PathVariable("id") Long id, @Valid @RequestBody @Valid DTOMobileWorkOrderAcceptInCharge dto) throws DAException, DAValidateException Accept and take in charge the given work order (operation) from mobile.MobileWorkOrderAcceptInChargeEvent- Parameters:
id- the work order iddto- theDTOMobileWorkOrderAcceptInCharge- Returns:
- the standard response
- Throws:
DAException- the DA exceptionDAValidateException
-