Class OnCallShiftService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.core.rs5.workcalendar.workshift.oncall.OnCallShiftService
@RestController
@RequestMapping("core/r5/workcalendars/workshifts/oncalls")
@Resource(logging=true)
public class OnCallShiftService
extends PrivateService
Services to manage on call shifts.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOOnCallShift> Retrieves the required work calendar on call shift.org.springframework.http.ResponseEntity<PageResponse<DTOOnCallShift>> getCollection(@NotNull @Valid Page page, @Valid @NotNull DTOOnCallShiftSearchFilter filter) Retrieve the all stored work calendar on calls shifts.
-
Constructor Details
-
OnCallShiftService
public OnCallShiftService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOOnCallShift>> getCollection(@RequestParam("page") @NotNull @Valid @NotNull @Valid Page page, @RequestParam("filter") @Valid @NotNull @Valid @NotNull DTOOnCallShiftSearchFilter filter) throws DAValidateException, DAException Retrieve the all stored work calendar on calls shifts.OnCallShiftSearchEvent- Parameters:
page- the required result pagefilter- the specifiedDTOOnCallShiftSearchFilter- Returns:
- the response containing the current result page
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{id:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOOnCallShift> get(@PathVariable("id") Long id) throws DAValidateException, DAException Retrieves the required work calendar on call shift.OnCallShiftLoadEvent- Parameters:
id- work calendar on call shift id- Returns:
- the response containing the required work calendar on call shift
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-