Class BTTeamShiftResourceDelete
java.lang.Object
overit.geocall.bl.BusinessTask<TeamShiftResourceDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<TeamShiftResourceDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<TeamShiftResourceDeleteEvent>
overit.geocallapp.wfm.teams.bl.team.shift.resource.task.BTTeamShiftResourceDelete
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(TeamShiftResourceDeleteEvent.class)
public class BTTeamShiftResourceDelete
extends ValidPermissionBusinessTask<TeamShiftResourceDeleteEvent>
Business task in order to delete a
When the
BOTeamShiftResource. When the
TeamShiftResourceDeleteEvent is launched the BT notices the call and
deletes the BOTeamShiftResource basing on the event's input. Required fields:
- Team Shift Resource ID
- 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(TeamShiftResourceDeleteEvent event, PoolKit poolKit) Deletes the requestedBOTeamShiftResource.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
-
BTTeamShiftResourceDelete
public BTTeamShiftResourceDelete()
-
-
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(TeamShiftResourceDeleteEvent event, PoolKit poolKit) throws DAException, DAValidateException Deletes the requestedBOTeamShiftResource.- Specified by:
executein classValidExecutionBusinessTask<TeamShiftResourceDeleteEvent>- Parameters:
event- theTeamShiftResourceDeleteEventpoolKit- thePoolKit- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-