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