Class WorkShiftExceptionManagementService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.calendars.rs1.workshiftexceptionmanagement.WorkShiftExceptionManagementService
@RestController
@RequestMapping("workforce/calendars/r1/work-shift-exception-managements")
@Resource(logging=true)
public class WorkShiftExceptionManagementService
extends PrivateService
Service to manage work shift exception managements.
- Since:
- 17.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOWorkShiftExceptionManagement> get(Long id, Collection<String> fields) Retrieves the required work shift exception management by calling theWorkShiftExceptionManagementLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOWorkShiftExceptionManagement>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid DTOWorkShiftExceptionManagementFilter filter) Returns the collection of all the stored work shift exception managements by calling theWorkShiftExceptionManagementSearchEvent.
-
Constructor Details
-
WorkShiftExceptionManagementService
public WorkShiftExceptionManagementService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOWorkShiftExceptionManagement>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,value="_fields") Collection<String> fields, @RequestParam(required=false,value="_order") String order, @Valid @Valid DTOWorkShiftExceptionManagementFilter filter) throws DAValidateException, DAException Returns the collection of all the stored work shift exception managements by calling theWorkShiftExceptionManagementSearchEvent.- Parameters:
page- the page that will contain the paginated resultfields- the collection of fields that will be contained in the responseorder- the ordering fieldfilter- theDTOWorkShiftExceptionManagementFilter- Returns:
- the collection of
DTOWorkShiftExceptionManagements - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-
get
@GetMapping(value="{workShiftExceptionManagementId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOWorkShiftExceptionManagement> get(@PathVariable("workShiftExceptionManagementId") Long id, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the required work shift exception management by calling theWorkShiftExceptionManagementLoadEvent.- Parameters:
id- the ID of the work shift exception management to be loadedfields- the collection of fields that will be contained in the response- Returns:
- the response containing the loaded work shift exception management
- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-