Class TimesheetTaskService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.core.timesheet.rs2.task.TimesheetTaskService
@RestController
@RequestMapping("timesheet/r2/{id:[0-9]+}/tasks")
@Resource(logging=true)
public class TimesheetTaskService
extends PrivateService
Services to manage timesheet task
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Action that cancels a timesheet taskTimesheetTaskCancelEvent.org.springframework.http.ResponseEntity<DTOTask> Retrieves the required timesheet task.getCollection(Long timesheetId) Retrieve all the stored timesheet task.org.springframework.http.ResponseEntity<Void> Action that updates a timesheet taskTaskUpdateEvent.
-
Constructor Details
-
TimesheetTaskService
public TimesheetTaskService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public PageResponse<DTOTask> getCollection(@PathVariable("id") Long timesheetId) throws DAValidateException, DAException Retrieve all the stored timesheet task.TaskLoadEvent- Parameters:
timesheetId- the timesheet id- Returns:
- the response containing the current result page
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{taskId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOTask> get(@PathVariable("id") Long id, @PathVariable("taskId") Long taskId) throws DAValidateException, DAException Retrieves the required timesheet task.TaskLoadEvent- Parameters:
id- the timesheet idtaskId- the timesheet task id- Returns:
- the response containing the required timesheet task
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
update
@PostMapping(value="{taskId:[0-9]+}/actions/update", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> update(@PathVariable("id") Long timesheetId, @PathVariable("taskId") Long taskId, @NotNull @Valid @RequestBody @NotNull @Valid DTOTaskUpdate input) throws DAValidateException, DAException Action that updates a timesheet taskTaskUpdateEvent.- Parameters:
timesheetId- the timesheet idtaskId- the timesheet task idinput- the input dtoDTOTaskUpdate- Returns:
- the DTO response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception- See Also:
-
cancel
@PostMapping(value="{taskId:[0-9]+}/actions/cancel", produces="application/json") public org.springframework.http.ResponseEntity<Void> cancel(@PathVariable("id") Long timesheetId, @PathVariable("taskId") Long taskId) throws DAValidateException, DAException Action that cancels a timesheet taskTimesheetTaskCancelEvent.- Parameters:
timesheetId- the timesheet idtaskId- the timesheet task id- Returns:
- the DTO response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception- See Also:
-