Class TimesheetStateService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.core.timesheet.rs2.state.TimesheetStateService
@RestController
@RequestMapping("timesheet/r2/states")
@Resource(logging=true)
public class TimesheetStateService
extends PrivateService
Services to manage timesheet states
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOTimesheetState> Retrieves the required timesheet state.org.springframework.http.ResponseEntity<PageResponse<DTOTimesheetState>> getCollection(@Valid Page page, @Valid @NotNull DTOTimesheetStateSearchFilter filter) Retrieve the all stored timesheet statesTimesheetStateSearchEvent
-
Constructor Details
-
TimesheetStateService
public TimesheetStateService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOTimesheetState>> getCollection(@RequestParam("page") @Valid @Valid Page page, @RequestParam("filter") @Valid @NotNull @Valid @NotNull DTOTimesheetStateSearchFilter filter) throws DAValidateException, DAException Retrieve the all stored timesheet statesTimesheetStateSearchEvent- Parameters:
page- the required result pagefilter- the specifiedDTOTimesheetStateSearchFilter- 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<DTOTimesheetState> get(@PathVariable("id") Long id) throws DAValidateException, DAException Retrieves the required timesheet state.TimesheetStateLoadEvent- Parameters:
id- timesheet state- Returns:
- the response containing the required timesheet state
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-