Class MobileInterventionToAcceptService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.mobile.core.rs3.intervention.toaccept.MobileInterventionToAcceptService
@RestController
@RequestMapping("mobile/r3/interventions/toaccept")
@Resource(logging=true)
public class MobileInterventionToAcceptService
extends PrivateService
Services to manage interventions to accept.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> confirm(Long id, @Valid DTOMobileInterventionToAcceptConfirm userIdFilter) Confirm the given intervention to accept from mobile.org.springframework.http.ResponseEntity<Void> confirmInCharge(Long id, @Valid DTOMobileInterventionToAcceptConfirmInCharge userIdFilter) Confirm and take in charge the given intervention to accept from mobile.org.springframework.http.ResponseEntity<PageResponse<DTOMobileInterventionToAccept>> Retrieve all the stored interventions to accept.org.springframework.http.ResponseEntity<Void> refuse(Long id, @Valid DTOMobileInterventionToAcceptRefuse input) Refuse the given intervention to accept from mobile.
-
Constructor Details
-
MobileInterventionToAcceptService
public MobileInterventionToAcceptService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOMobileInterventionToAccept>> getCollection(@RequestParam("page") @Valid @Valid Page page, @RequestParam("filter") @Valid @NotNull @Valid @NotNull DTOMobileInterventionToAcceptSearchFilter filter) throws DAValidateException, DAException Retrieve all the stored interventions to accept.MobileInterventionToAcceptSearchEvent- Parameters:
page- the required result pagefilter- the specifiedDTOMobileInterventionToAcceptSearchFilterparameters- Returns:
- the response containing the current result page
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
confirm
@PostMapping(value="{id:[0-9]+}/actions/confirm", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> confirm(@PathVariable("id") Long id, @Valid @RequestBody @Valid DTOMobileInterventionToAcceptConfirm userIdFilter) throws DAException, DAValidateException Confirm the given intervention to accept from mobile.MobileInterventionToAcceptConfirmEvent- Parameters:
id- the intervention id- Returns:
- the standard response
- Throws:
DAException- the DA exceptionDAValidateException
-
confirmInCharge
@PostMapping(value="{id:[0-9]+}/actions/confirmincharge", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> confirmInCharge(@PathVariable("id") Long id, @Valid @RequestBody @Valid DTOMobileInterventionToAcceptConfirmInCharge userIdFilter) throws DAException, DAValidateException Confirm and take in charge the given intervention to accept from mobile.MobileInterventionToAcceptConfirmInChargeEvent- Parameters:
id- the intervention id- Returns:
- the standard response
- Throws:
DAException- the DA exceptionDAValidateException
-
refuse
@PostMapping(value="{id:[0-9]+}/actions/refuse", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> refuse(@PathVariable("id") Long id, @Valid @RequestBody @Valid DTOMobileInterventionToAcceptRefuse input) throws DAException, DAValidateException Refuse the given intervention to accept from mobile.MobileInterventionToAcceptRefuseEvent- Parameters:
id- the intervention id- Returns:
- the standard response
- Throws:
DAException- the DA exceptionDAValidateException
-