Class MobileTechnicalObjectService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.mobile.core.rs3.technicalobject.MobileTechnicalObjectService
@RestController
@RequestMapping("mobile/r3/technicalobjects")
@Resource(logging=true)
public class MobileTechnicalObjectService
extends PrivateService
Services to manage mobile technical objects.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<PageResponse<DTOMobileAttachment>> getAttachments(Long technicalObjectId, @Valid Page page) Retrieve the attachments related to a specific technical object.org.springframework.http.ResponseEntity<PageResponse<DTOMobileTechnicalObjectSearchResult>> getCollection(@Valid Page page, String order, @Valid @NotNull DTOMobileTechnicalObjectSearchFilter filter) Retrieve the all stored mobile technical object search results.org.springframework.http.ResponseEntity<PageResponse<DTOMobileInterventionsHistorySearchResult>> getInterventionsHistory(Long technicalObjectId, @Valid Page page, @Valid @NotNull DTOMobileInterventionsHistorySearchFilter filter) Retrieve the all stored mobile interventions history search results.org.springframework.http.ResponseEntity<PageResponse<DTOMobileNotificationSearchResult>> getNotificationHistory(Long technicalObjectId, @Valid Page page, @Valid @NotNull DTOMobileNotificationSearchFilter filter) Retrieve the all stored notification history for a specific technical object.
-
Constructor Details
-
MobileTechnicalObjectService
public MobileTechnicalObjectService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOMobileTechnicalObjectSearchResult>> getCollection(@RequestParam("page") @Valid @Valid Page page, @RequestParam(required=false,name="_order") String order, @RequestParam("filter") @Valid @NotNull @Valid @NotNull DTOMobileTechnicalObjectSearchFilter filter) throws DAValidateException, DAException Retrieve the all stored mobile technical object search results.MobileTechnicalObjectSearchEvent- Parameters:
page- the required result pagefilter- the specifiedDTOMobileTechnicalObjectSearchFilterparameters- Returns:
- the response containing the result page
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getInterventionsHistory
@GetMapping(value="{id:[0-9]+}/interventionshistory", produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOMobileInterventionsHistorySearchResult>> getInterventionsHistory(@PathVariable("id") Long technicalObjectId, @RequestParam("page") @Valid @Valid Page page, @RequestParam("filter") @Valid @NotNull @Valid @NotNull DTOMobileInterventionsHistorySearchFilter filter) throws DAValidateException, DAException Retrieve the all stored mobile interventions history search results.MobileInterventionsHistorySearchEvent- Parameters:
technicalObjectId- the technical object idpage- the pagefilter- theDTOMobileInterventionsHistorySearchFilter- Returns:
- the response containing the interventions history
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getNotificationHistory
@GetMapping(value="{id:[0-9]+}/notificationshistory", produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOMobileNotificationSearchResult>> getNotificationHistory(@PathVariable("id") Long technicalObjectId, @RequestParam("page") @Valid @Valid Page page, @RequestParam("filter") @Valid @NotNull @Valid @NotNull DTOMobileNotificationSearchFilter filter) throws DAValidateException, DAException Retrieve the all stored notification history for a specific technical object.MobileNotificationSearchEvent- Parameters:
technicalObjectId- the technical object idpage- the pagefilter- theDTOMobileNotificationSearchFilter- Returns:
- the response containing the interventions history
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getAttachments
@GetMapping(value="{id:[0-9]+}/attachments", produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOMobileAttachment>> getAttachments(@PathVariable("id") Long technicalObjectId, @RequestParam("page") @Valid @Valid Page page) throws DAValidateException, DAException Retrieve the attachments related to a specific technical object.- Parameters:
technicalObjectId- the technical object id- Returns:
- the response containing the interventions history
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-