Class MobileTimesheetService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.mobile.core.rs3.timesheet.MobileTimesheetService
@RestController
@RequestMapping("mobile/r3/timesheets")
@Resource(logging=true)
public class MobileTimesheetService
extends PrivateService
Services to manage mobile timesheet details.
- Since:
- 19.0
- GCApi:
- rest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DTOMobileTimesheetbuildMobileTimesheet(TimesheetEntitiesAggregate aggregate) protected List<DTOMobileTimesheetOnCallShift> buildMobileTimesheetOnCallShifts(TimesheetEntitiesAggregate aggregate, M2Mapper mapper) protected List<DTOMobileTimesheetShift> buildMobileTimesheetShifts(TimesheetEntitiesAggregate aggregate, M2Mapper mapper) protected DTOMobileTimesheetTaskbuildMobileTimesheetTask(BOTask task, String interventionDescription, M2Mapper mapper) protected List<DTOMobileTimesheetTask> buildMobileTimesheetTasks(TimesheetEntitiesAggregate aggregate, M2Mapper mapper) protected DTOMobileTimesheetTaskbuildMobileTimesheetTasks(BOTask task, Timesheet timesheet, M2Mapper mapper) protected List<DTOMobileTimesheetWarning> buildMobileTimesheetWarnings(TimesheetEntitiesAggregate aggregate, M2Mapper mapper) protected DTOMobileUserTasksbuildMobileUserTasks(Long user) org.springframework.http.ResponseEntity<DTOMobileTimesheet> Retrieves the required mobile timesheet detail.org.springframework.http.ResponseEntity<Collection<DTOMobileUserTasks>> Retrieves the user tasks filtered by an intervention.protected StringgetInterventionDescription(Long interventionId) protected BOWorkOrderHeaderloadWorkOrderHeader(Long workOrderId) protected BOWorkOrderOperationloadWorkOrderOperation(Long operationId)
-
Field Details
-
LOG
-
-
Constructor Details
-
MobileTimesheetService
public MobileTimesheetService()
-
-
Method Details
-
get
@GetMapping(value="{id:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOMobileTimesheet> get(@PathVariable("id") Long id) throws DAValidateException, DAException Retrieves the required mobile timesheet detail.TimesheetEntitiesAggregateLoadEvent- Parameters:
id- timesheet id- Returns:
- the response containing the timesheet detail
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
buildMobileTimesheet
-
buildMobileTimesheetTasks
protected List<DTOMobileTimesheetTask> buildMobileTimesheetTasks(TimesheetEntitiesAggregate aggregate, M2Mapper mapper) -
buildMobileTimesheetTasks
protected DTOMobileTimesheetTask buildMobileTimesheetTasks(BOTask task, Timesheet timesheet, M2Mapper mapper) -
getInterventionDescription
-
loadWorkOrderHeader
protected BOWorkOrderHeader loadWorkOrderHeader(Long workOrderId) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadWorkOrderOperation
protected BOWorkOrderOperation loadWorkOrderOperation(Long operationId) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
buildMobileTimesheetWarnings
protected List<DTOMobileTimesheetWarning> buildMobileTimesheetWarnings(TimesheetEntitiesAggregate aggregate, M2Mapper mapper) -
buildMobileTimesheetShifts
protected List<DTOMobileTimesheetShift> buildMobileTimesheetShifts(TimesheetEntitiesAggregate aggregate, M2Mapper mapper) -
buildMobileTimesheetOnCallShifts
protected List<DTOMobileTimesheetOnCallShift> buildMobileTimesheetOnCallShifts(TimesheetEntitiesAggregate aggregate, M2Mapper mapper) -
getByIntervention
@GetMapping(value="/getByIntervention", produces="application/json") public org.springframework.http.ResponseEntity<Collection<DTOMobileUserTasks>> getByIntervention(@RequestParam("filter") @Valid @NotNull @Valid @NotNull DTOMobileUserTasksSearchFilter filter) throws DAValidateException, DAException Retrieves the user tasks filtered by an intervention.TimesheetSearchEvent- Parameters:
filter- the specifiedDTOMobileUserTasksSearchFilterparameters- Returns:
- the response containing the result collection
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
buildMobileUserTasks
-
buildMobileTimesheetTask
protected DTOMobileTimesheetTask buildMobileTimesheetTask(BOTask task, String interventionDescription, M2Mapper mapper)
-