Class BTWorkShiftTimeLineLoad
java.lang.Object
overit.geocall.bl.BusinessTask<WorkShiftTimeLineLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WorkShiftTimeLineLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WorkShiftTimeLineLoadEvent>
overit.geocallapp.wfm.calendars.bl.workshift.task.BTWorkShiftTimeLineLoad
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WorkShiftTimeLineLoadEvent.class)
public class BTWorkShiftTimeLineLoad
extends ValidPermissionBusinessTask<WorkShiftTimeLineLoadEvent>
Business task in order to load the
TimeLine of a BOWorkShifts.
When the WorkShiftTimeLineLoadEvent is launched the BT notices the call and
loads the timeline basing on the event's input. - Since:
- 17.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(WorkShiftTimeLineLoadEvent event, PoolKit poolKit) Writes the loadedTimeLineinto the event journal.protected List<BOWorkShiftException> getExceptions(List<BOWorkShiftException> shiftExceptions, Long classType, PoolKit poolKit) booleanDetermines whether the current state is valid for execution.protected List<BOWorkShiftException> searchWorkShiftExceptionWorkShift(BOWorkShift workShift, PoolKit poolKit) Loads absences and extra presences overlapping a givenBOWorkShift.Methods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTWorkShiftTimeLineLoad
public BTWorkShiftTimeLineLoad()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise
-
execute
protected void execute(WorkShiftTimeLineLoadEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the loadedTimeLineinto the event journal.- Specified by:
executein classValidExecutionBusinessTask<WorkShiftTimeLineLoadEvent>- Parameters:
event- theWorkShiftTimeLineLoadEventpoolKit- thePoolKit- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-
searchWorkShiftExceptionWorkShift
protected List<BOWorkShiftException> searchWorkShiftExceptionWorkShift(BOWorkShift workShift, PoolKit poolKit) throws DAException, DAValidateException Loads absences and extra presences overlapping a givenBOWorkShift.- Parameters:
workShift- theBOWorkShiftpoolKit- thePoolKitpool kit- Returns:
- the list of work shift exceptions overlapping a given work shift
- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
getExceptions
protected List<BOWorkShiftException> getExceptions(List<BOWorkShiftException> shiftExceptions, Long classType, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-