Class BTDragDropDailyWorkshift
java.lang.Object
overit.geocall.bl.BusinessTask<DailyWorkshiftDragDropEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DailyWorkshiftDragDropEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<DailyWorkshiftDragDropEvent>
overit.geocallapp.wfm.core.ux.crewshell.workshift.task.BTDragDropDailyWorkshift
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DailyWorkshiftDragDropEvent.class)
public class BTDragDropDailyWorkshift
extends ValidPermissionBusinessTask<DailyWorkshiftDragDropEvent>
Business task to drag and drop the workshift from a day to another day
When the
When the
DailyWorkshiftDragDropEvent event is launched
the BT notices the call and copy the workshift from a day to another day. - Since:
- 16.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 voidaddMessage(DBView dbvMessages, Long idAute, Date data, String message) protected voidexecute(DailyWorkshiftDragDropEvent event, PoolKit pk) Executes the actual business logic after validation has passed.static List<BOCrewShellDraftComposition> getCrewShellTechniciansByDummyUser(Long dummyUser, Date day, PoolKit pk) protected voidinitDBViewMessages(DBView dbvMessages) booleanDetermines whether the current state is valid for execution.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
-
BTDragDropDailyWorkshift
public BTDragDropDailyWorkshift()
-
-
Method Details
-
execute
protected void execute(DailyWorkshiftDragDropEvent event, PoolKit pk) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<DailyWorkshiftDragDropEvent>- Parameters:
event- the input event to processpk- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
getCrewShellTechniciansByDummyUser
public static List<BOCrewShellDraftComposition> getCrewShellTechniciansByDummyUser(Long dummyUser, Date day, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
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
-
initDBViewMessages
-
addMessage
-