Class BTWorkShiftExceptionClassUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<WorkShiftExceptionClassUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WorkShiftExceptionClassUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WorkShiftExceptionClassUpdateEvent>
overit.geocallapp.wfm.calendars.bl.workshift.exception.exceptionclass.task.BTWorkShiftExceptionClassUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WorkShiftExceptionClassUpdateEvent.class)
public class BTWorkShiftExceptionClassUpdate
extends ValidPermissionBusinessTask<WorkShiftExceptionClassUpdateEvent>
Business task in order to update a
When the
BOWorkShiftExceptionClass. When the
WorkShiftExceptionClassUpdateEvent is launched the BT notices the call
and updates the BOWorkShiftExceptionClass basing on the event's input. Required fields:
- Work Shift Exception Class 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 voidafterUpdate(BOWorkShiftExceptionClass workShiftExceptionClass, PoolKit poolKit) Actions to be performed after the update (e.g., invalidation of the static view).protected voidexecute(WorkShiftExceptionClassUpdateEvent event, PoolKit poolKit) Writes the updatedBOWorkShiftExceptionClassinto the event journal.booleanDetermines whether the current state is valid for execution.protected voidvalidate(BOWorkShiftExceptionClass input, PoolKit poolKit) Checks whether the update is possible by performing some validations on the givenBOWorkShiftExceptionClassto 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
-
BTWorkShiftExceptionClassUpdate
public BTWorkShiftExceptionClassUpdate()
-
-
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(WorkShiftExceptionClassUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the updatedBOWorkShiftExceptionClassinto the event journal.- Specified by:
executein classValidExecutionBusinessTask<WorkShiftExceptionClassUpdateEvent>- Parameters:
event- theWorkShiftExceptionClassUpdateEventpoolKit- 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 update is possible by performing some validations on the givenBOWorkShiftExceptionClassto be updated.- Parameters:
input- theBOWorkShiftExceptionClasspoolKit- thePoolKit- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
afterUpdate
Actions to be performed after the update (e.g., invalidation of the static view).- Parameters:
workShiftExceptionClass- the updatedBOWorkShiftExceptionClasspoolKit- thePoolKit
-