Class BTWorkShiftExceptionWorkShiftDelete
java.lang.Object
overit.geocall.bl.BusinessTask<WorkShiftExceptionWorkShiftDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WorkShiftExceptionWorkShiftDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WorkShiftExceptionWorkShiftDeleteEvent>
overit.geocallapp.wfm.calendars.bl.workshift.workshiftexceptionworkshift.task.BTWorkShiftExceptionWorkShiftDelete
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WorkShiftExceptionWorkShiftDeleteEvent.class)
public class BTWorkShiftExceptionWorkShiftDelete
extends ValidPermissionBusinessTask<WorkShiftExceptionWorkShiftDeleteEvent>
Business task in order to delete a
When the
BOWorkShiftExceptionWorkShift. When the
WorkShiftExceptionWorkShiftDeleteEvent is launched the BT notices the call and
deletes the BOWorkShiftExceptionWorkShift basing on the event's input. Required fields:
- 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(WorkShiftExceptionWorkShiftDeleteEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.booleanDetermines whether the current state is valid for execution.protected List<BOWorkShiftExceptionWorkShift> loadRelations(Long workShiftExceptionId, PoolKit poolKit) protected voidworkShiftDelete(Long workShiftId, PoolKit poolKit) Deleting the relationship caused by the deletion of the work shift.protected voidworkShiftExceptionDelete(Long workShiftExceptionId, PoolKit poolKit) Deleting the relationship caused by the deletion of the work shift exception.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
-
BTWorkShiftExceptionWorkShiftDelete
public BTWorkShiftExceptionWorkShiftDelete()
-
-
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(WorkShiftExceptionWorkShiftDeleteEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<WorkShiftExceptionWorkShiftDeleteEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
workShiftDelete
protected void workShiftDelete(Long workShiftId, PoolKit poolKit) throws DAException, DAValidateException Deleting the relationship caused by the deletion of the work shift.- Parameters:
workShiftId- the work shift idpoolKit- thePoolKit- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-
workShiftExceptionDelete
protected void workShiftExceptionDelete(Long workShiftExceptionId, PoolKit poolKit) throws DAException, DAValidateException Deleting the relationship caused by the deletion of the work shift exception.- Parameters:
workShiftExceptionId- the work shift exception idpoolKit- thePoolKit- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-
loadRelations
protected List<BOWorkShiftExceptionWorkShift> loadRelations(Long workShiftExceptionId, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-