Class TimesheetWarningService

java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.core.timesheet.rs2.warning.TimesheetWarningService

@RestController @RequestMapping("timesheet/r2/{id:[0-9]+}/warnings") @Resource(logging=true) public class TimesheetWarningService extends PrivateService
Services to manage timesheet warnings
Since:
19.0
GCApi:
rest
  • Constructor Details

    • TimesheetWarningService

      public TimesheetWarningService()
  • Method Details

    • getCollection

      @GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOWarning>> getCollection(@PathVariable("id") Long timesheetId) throws DAValidateException, DAException
      Retrieves the warnings linked to the given timesheet header id. WarningSearchEvent
      Parameters:
      timesheetId - timesheet header id
      Returns:
      the response containing the warnings
      Throws:
      DAValidateException - the DA validate exception
      DAException - the DA exception
    • get

      @GetMapping(value="{warningId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOWarning> get(@PathVariable("id") Long timesheetId, @PathVariable("warningId") Long warningId) throws DAValidateException, DAException
      Retrieve the required timesheet warning. WarningLoadEvent
      Parameters:
      timesheetId - timesheet header id
      warningId - warning id
      Returns:
      the response containing the required warning
      Throws:
      DAValidateException - the DA validate exception
      DAException - the DA exception