Class BTWorkShiftExceptionClassInsert
java.lang.Object
overit.geocall.bl.BusinessTask<WorkShiftExceptionClassInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WorkShiftExceptionClassInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WorkShiftExceptionClassInsertEvent>
overit.geocallapp.wfm.calendars.bl.workshift.exception.exceptionclass.task.BTWorkShiftExceptionClassInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WorkShiftExceptionClassInsertEvent.class)
public class BTWorkShiftExceptionClassInsert
extends ValidPermissionBusinessTask<WorkShiftExceptionClassInsertEvent>
Business task in order to insert a
When the
BOWorkShiftExceptionClass. When the
WorkShiftExceptionClassInsertEvent is launched the BT notices the call
and inserts the BOWorkShiftExceptionClass 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 voidafterInsert(BOWorkShiftExceptionClass workShiftExceptionClass, PoolKit poolKit) Actions to be performed after the insertion (e.g., invalidation of the static view).protected voidexecute(WorkShiftExceptionClassInsertEvent event, PoolKit poolKit) Writes the ID of the insertedBOWorkShiftExceptionClassinto the event journal.booleanDetermines whether the current state is valid for execution.protected voidvalidate(BOWorkShiftExceptionClass input, PoolKit poolKit) Checks whether the insertion is possible by performing some validations on the givenBOWorkShiftExceptionClassinput, i.e. the work shift exception class to 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
-
BTWorkShiftExceptionClassInsert
public BTWorkShiftExceptionClassInsert()
-
-
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(WorkShiftExceptionClassInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the ID of the insertedBOWorkShiftExceptionClassinto the event journal.- Specified by:
executein classValidExecutionBusinessTask<WorkShiftExceptionClassInsertEvent>- Parameters:
event- theWorkShiftExceptionClassInsertEventpoolKit- thePoolKit- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-
validate
protected void validate(BOWorkShiftExceptionClass input, PoolKit poolKit) throws DAValidateException, DAException Checks whether the insertion is possible by performing some validations on the givenBOWorkShiftExceptionClassinput, i.e. the work shift exception class to be inserted.- Parameters:
input- theBOWorkShiftExceptionClasspoolKit- thePoolKit- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-
afterInsert
Actions to be performed after the insertion (e.g., invalidation of the static view).- Parameters:
workShiftExceptionClass- the insertedBOWorkShiftExceptionClasspoolKit- thePoolKit
-