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