Class BTTimesheetAutomaticTaskCancel
java.lang.Object
overit.geocall.bl.BusinessTask<TimesheetAutomaticTaskCancelEvent>
overit.geocallapp.wfm.core.bl.timesheet.task.BTTimesheet<TimesheetAutomaticTaskCancelEvent>
overit.geocallapp.wfm.core.bl.timesheet.task.BTTimesheetAutomaticTaskCancel
- All Implemented Interfaces:
Serializable,Tool
@Event(TimesheetAutomaticTaskCancelEvent.class)
public class BTTimesheetAutomaticTaskCancel
extends BTTimesheet<TimesheetAutomaticTaskCancelEvent>
Business task in order to cancel or update the end entity of an automatic
When the
BOTask. When the
TimesheetAutomaticTaskCancelEvent is launched
the BT notices the call and deletes or updates the BOTask basing on the event's input. - Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcalculateDuration(Timesheet timesheet, PoolKit poolKit) protected voidcalculateWarnings(Timesheet timesheet, PoolKit poolKit) protected LongcancelTask(BOTask task, TimesheetPermissionCheck permissionCheck, TimesheetTaskEventCache cache, PoolKit poolKit) cancelTasks(TimesheetAutomaticTaskCancelInput input, PoolKit poolKit) protected voidexecute(TimesheetAutomaticTaskCancelEvent event, PoolKit poolKit) protected List<BOEventEntity> loadEventEntities(TimesheetAutomaticTaskCancelInput input, PoolKit poolKit) protected BOTaskloadTasksByEndEventEntity(Long eventType, Collection<Long> eventEntity, PoolKit poolKit) loadTasksByEndShift(Long eventType, Long shift, PoolKit poolKit) loadTasksByStartEventEntity(Long eventType, Collection<Long> eventEntity, PoolKit poolKit) loadTasksByStartShift(Long eventType, Long shift, PoolKit poolKit) protected TimesheetloadTimesheet(TimesheetTaskEventCache cache, Long timesheetId, PoolKit poolKit) protected LongmodifyTask(BOTask task, Timesheet timesheet, PoolKit poolKit) modifyTasks(TimesheetAutomaticTaskCancelInput input, PoolKit poolKit) protected voidupdateTaskData(BOTask task) 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
-
BTTimesheetAutomaticTaskCancel
public BTTimesheetAutomaticTaskCancel()
-
-
Method Details
-
execute
protected void execute(TimesheetAutomaticTaskCancelEvent event, PoolKit poolKit) throws DAException, DAValidateException - Specified by:
executein classBTTimesheet<TimesheetAutomaticTaskCancelEvent>- Throws:
DAExceptionDAValidateException
-
cancelTasks
protected List<Long> cancelTasks(TimesheetAutomaticTaskCancelInput input, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
modifyTasks
protected List<Long> modifyTasks(TimesheetAutomaticTaskCancelInput input, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadEventEntities
protected List<BOEventEntity> loadEventEntities(TimesheetAutomaticTaskCancelInput input, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadTasksByStartEventEntity
protected List<BOTask> loadTasksByStartEventEntity(Long eventType, Collection<Long> eventEntity, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadTasksByEndEventEntity
protected List<BOTask> loadTasksByEndEventEntity(Long eventType, Collection<Long> eventEntity, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadTasksByStartShift
protected List<BOTask> loadTasksByStartShift(Long eventType, Long shift, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadTasksByEndShift
protected List<BOTask> loadTasksByEndShift(Long eventType, Long shift, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
cancelTask
protected Long cancelTask(BOTask task, TimesheetPermissionCheck permissionCheck, TimesheetTaskEventCache cache, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
modifyTask
protected Long modifyTask(BOTask task, Timesheet timesheet, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateTaskData
-
loadTimesheet
-
loadTask
- Throws:
DAValidateExceptionDAException
-
calculateDuration
protected void calculateDuration(Timesheet timesheet, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
calculateWarnings
protected void calculateWarnings(Timesheet timesheet, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-