Class HolidayService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.systemsettings.rs1.holiday.HolidayService
@RestController
@RequestMapping("configurations/system-settings/r1/holidays")
@Resource(logging=true)
public class HolidayService
extends PrivateService
Service for manage holiday
- Since:
- 17.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> org.springframework.http.ResponseEntity<DTOHoliday> get(Long holidayId, Collection<String> fields) org.springframework.http.ResponseEntity<PageResponse<DTOHoliday>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid @NotNull DTOHolidayFilter filter) org.springframework.http.ResponseEntity<Void> patch(Long holidayId, @Valid DTOHolidayUpdate dto) org.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(@Valid DTOHolidayInsert dto)
-
Constructor Details
-
HolidayService
public HolidayService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOHoliday>> 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 DTOHolidayFilter filter) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
get
@GetMapping(value="{holidayId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOHoliday> get(@PathVariable("holidayId") Long holidayId, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
post
@PostMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(@Valid @RequestBody @Valid DTOHolidayInsert dto) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
patch
@PatchMapping(value="{holidayId:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("holidayId") Long holidayId, @Valid @RequestBody @Valid DTOHolidayUpdate dto) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
delete
@DeleteMapping(value="{holidayId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<Void> delete(@PathVariable("holidayId") Long holidayId) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-