Class BTTeamUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<TeamUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<TeamUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<TeamUpdateEvent>
overit.geocallapp.wfm.teams.bl.team.task.BTTeamUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(TeamUpdateEvent.class)
public class BTTeamUpdate
extends ValidPermissionBusinessTask<TeamUpdateEvent>
Business task in order to update a
When the
BOTeam. When the
TeamUpdateEvent is launched the BT notices the call and
updates the BOTeam basing on the event's input. Permission:
- resource edit
- 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 voidexecute(TeamUpdateEvent event, PoolKit poolKit) Updates theBOTeamwith all its needed components.booleanDetermines whether the current state is valid for execution.protected voidValidates the data before the update.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
-
BTTeamUpdate
public BTTeamUpdate()
-
-
Method Details
-
execute
protected void execute(TeamUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates theBOTeamwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<TeamUpdateEvent>- Parameters:
event- theTeamUpdateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
Validates the data before the update.- Parameters:
input- the inputBOTeampoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException
-
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
-