Class MobileInterventionService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.mobile.core.rs3.intervention.resource.MobileInterventionService
@RestController
@RequestMapping("mobile/r3/interventions")
@Resource(logging=true)
public class MobileInterventionService
extends PrivateService
Services to manage mobile interventions.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<DTOMobileInterventionResource> buildMobileInterventionResources(List<BOAgendaResource> agendaResources) Builds the mobile intervention resources list.org.springframework.http.ResponseEntity<List<DTOMobileInterventionResource>> Retrieve the required intervention resources.
-
Constructor Details
-
MobileInterventionService
public MobileInterventionService()
-
-
Method Details
-
getInterventionResources
@GetMapping(value="{id:[0-9]+}/resources", produces="application/json") public org.springframework.http.ResponseEntity<List<DTOMobileInterventionResource>> getInterventionResources(@PathVariable("id") Long id) throws DAValidateException, DAException Retrieve the required intervention resources.AgendaResourceSearchEvent- Parameters:
id- the id- Returns:
- the response containing the list of mobile intervention resource elements
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception- See Also:
-
buildMobileInterventionResources
protected List<DTOMobileInterventionResource> buildMobileInterventionResources(List<BOAgendaResource> agendaResources) throws DAValidateException, DAException Builds the mobile intervention resources list.- Parameters:
agendaResources- list of agenda resource elements- Returns:
- a list of mobile intervention resource elements of type DTOMobileInterventionResource
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception- See Also:
-