Class BTTeamShiftInsert
java.lang.Object
overit.geocall.bl.BusinessTask<TeamShiftInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<TeamShiftInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<TeamShiftInsertEvent>
overit.geocallapp.wfm.teams.bl.team.shift.task.BTTeamShiftInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(TeamShiftInsertEvent.class)
public class BTTeamShiftInsert
extends ValidPermissionBusinessTask<TeamShiftInsertEvent>
Business task in order to insert a
When the
BOTeamShift. When the
TeamShiftInsertEvent is launched the BT notices the call
and inserts the BOTeamShift basing on the event's input. Error Code:
- 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(TeamShiftInsertEvent event, PoolKit poolKit) Writes the ID of the insertedBOTeamShiftinto the event journal.booleanDetermines whether the current state is valid for execution.protected voidvalidate(BOTeamShift input, PoolKit poolKit) Checks whether the insertion is possible by performing some validations on the given input, i.e. theBOTeamShiftto be inserted.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
-
BTTeamShiftInsert
public BTTeamShiftInsert()
-
-
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(TeamShiftInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the ID of the insertedBOTeamShiftinto the event journal.- Specified by:
executein classValidExecutionBusinessTask<TeamShiftInsertEvent>- Parameters:
event- theTeamShiftInsertEventpoolKit- thePoolKit- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-
validate
Checks whether the insertion is possible by performing some validations on the given input, i.e. theBOTeamShiftto be inserted.- Parameters:
input- theBOTeamShiftpoolKit- thePoolKit- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-