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