Class MobileBundleService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.mobile.core.rs3.bundle.MobileBundleService
@RestController
@RequestMapping("mobile/r3/bundles")
@Resource(logging=true)
public class MobileBundleService
extends PrivateService
Services to manage mobile bundle.
- Since:
- 22.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> acceptBundle(Long bundleId, @Valid DTOMobileBundleAccept dto) Accept the given bundle from mobile.org.springframework.http.ResponseEntity<Void> acceptInChargeBundle(Long bundleId, @Valid DTOMobileBundleAcceptInCharge dto) Accept and take in charge the given bundle from mobile.
-
Constructor Details
-
MobileBundleService
public MobileBundleService()
-
-
Method Details
-
acceptBundle
@PostMapping(value="{bundleId:[0-9]+}/actions/acceptBundle", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> acceptBundle(@PathVariable("bundleId") Long bundleId, @Valid @RequestBody @Valid DTOMobileBundleAccept dto) throws DAException, DAValidateException Accept the given bundle from mobile.MobileBundleAcceptEvent- Parameters:
bundleId- the bundle iddto- theDTOMobileBundleAccept- Returns:
- the standard response
- Throws:
DAException- the DA exceptionDAValidateException
-
acceptInChargeBundle
@PostMapping(value="{bundleId:[0-9]+}/actions/acceptInChargeBundle", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> acceptInChargeBundle(@PathVariable("bundleId") Long bundleId, @Valid @RequestBody @Valid DTOMobileBundleAcceptInCharge dto) throws DAException, DAValidateException Accept and take in charge the given bundle from mobile.MobileBundleAcceptInChargeEvent- Parameters:
bundleId- the bundle iddto- theDTOMobileBundleAcceptInCharge- Returns:
- the standard response
- Throws:
DAException- the DA exceptionDAValidateException
-