Class BTTimesheetEntitiesAggregateLoad
java.lang.Object
overit.geocall.bl.BusinessTask<TimesheetEntitiesAggregateLoadEvent>
overit.geocallapp.wfm.core.bl.timesheet.task.BTTimesheet<TimesheetEntitiesAggregateLoadEvent>
overit.geocallapp.wfm.core.bl.timesheet.task.BTTimesheetEntitiesAggregateLoad
- All Implemented Interfaces:
Serializable,Tool
@Event(TimesheetEntitiesAggregateLoadEvent.class)
public class BTTimesheetEntitiesAggregateLoad
extends BTTimesheet<TimesheetEntitiesAggregateLoadEvent>
Business task in order to load a
TimesheetEntitiesAggregate.
When the TimesheetEntitiesAggregateLoadEvent is launched
the BT notices the call and loads the TimesheetEntitiesAggregate basing on the event's input.- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(TimesheetEntitiesAggregateLoadEvent event, PoolKit poolKit) Writes the loaded time sheet entities aggregate into the event journal.protected List<BOOnCallShift> loadOnCallShifts(Timesheet timesheet, PoolKit poolKit) loadReceipts(Long shift, PoolKit poolKit) protected List<BOWorkShift> loadShifts(Timesheet timesheet, PoolKit poolKit) Methods inherited from class overit.geocallapp.wfm.core.bl.timesheet.task.BTTimesheet
body, checkTimesheetActivation, throwInactiveTimesheetExceptionMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTTimesheetEntitiesAggregateLoad
public BTTimesheetEntitiesAggregateLoad()
-
-
Method Details
-
execute
protected void execute(TimesheetEntitiesAggregateLoadEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the loaded time sheet entities aggregate into the event journal.- Specified by:
executein classBTTimesheet<TimesheetEntitiesAggregateLoadEvent>- Parameters:
event- theTimesheetEntitiesAggregateLoadEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadShifts
protected List<BOWorkShift> loadShifts(Timesheet timesheet, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadReceipts
protected List<BOReceipt> loadReceipts(Long shift, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadOnCallShifts
protected List<BOOnCallShift> loadOnCallShifts(Timesheet timesheet, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-