Class SchedulingService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.scheduling.rs1.scheduling.SchedulingService
@RestController
@RequestMapping("scheduling/r1/schedule-work")
@Resource(logging=true)
public class SchedulingService
extends PrivateService
Service for manage scheduling
- Since:
- 18.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOScheduling> get(Long scheduleWorkId, Collection<String> fields) Retrieves the requiredDTOSchedulingby calling theSchedulingLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOScheduling>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid @NotNull DTOSchedulingFilter filter) Returns the collection of all the storedDTOSchedulingby calling theSchedulingSearchEvent.org.springframework.http.ResponseEntity<DTOResourceWorkShiftTour> getTourData(Long scheduleWorkId, Collection<String> fields) Retrieves the tour data for the specified scheduling ID.
-
Constructor Details
-
SchedulingService
public SchedulingService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOScheduling>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @Valid @NotNull @Valid @NotNull DTOSchedulingFilter filter) throws DAValidateException, DAException Returns the collection of all the storedDTOSchedulingby calling theSchedulingSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfields- the collection of fields the response will containorder- the ordering fieldfilter- theDTOSchedulingFilter- Returns:
- the collection of
DTOScheduling - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{scheduleWorkId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOScheduling> get(@PathVariable("scheduleWorkId") Long scheduleWorkId, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOSchedulingby calling theSchedulingLoadEvent.- Parameters:
scheduleWorkId- the schedule work idfields- the collection of fields the response will contain- Returns:
- the response containing the loaded scheduling
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getTourData
@GetMapping(value="{scheduleWorkId:[0-9]+}/tours", produces="application/json") public org.springframework.http.ResponseEntity<DTOResourceWorkShiftTour> getTourData(@PathVariable("scheduleWorkId") Long scheduleWorkId, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the tour data for the specified scheduling ID.- Parameters:
scheduleWorkId- The ID of the scheduling to retrieve the tour data for.fields- The fields to include in the response, or null to include all fields.- Returns:
- The tour data for the specified scheduling ID.
- Throws:
DAValidateException- If there is a validation error.DAException- If there is a data access error.
-