Class BTHolidayDelete
java.lang.Object
overit.geocall.bl.BusinessTask<HolidayDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<HolidayDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<HolidayDeleteEvent>
overit.geocallapp.wfm.systemsettings.bl.calendar.holiday.task.BTHolidayDelete
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(HolidayDeleteEvent.class)
public class BTHolidayDelete
extends ValidPermissionBusinessTask<HolidayDeleteEvent>
Business task in order to delete the
When the
BOHoliday. When the
HolidayDeleteEvent is launched
the BT notices the call and deletes all the needed BOHoliday basing on the event's input. Required fields:
- Holiday 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 voidexecute(HolidayDeleteEvent event, PoolKit poolKit) Deletes the givenBOHolidayand the related team shift.booleanDetermines whether the current state is valid for execution.protected voidnotifyDelete(BOHoliday holiday, PoolKit poolKit) Delete holiday notificationprotected voidValidates the data before delete.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
-
BTHolidayDelete
public BTHolidayDelete()
-
-
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(HolidayDeleteEvent event, PoolKit poolKit) throws DAException, DAValidateException Deletes the givenBOHolidayand the related team shift.- Specified by:
executein classValidExecutionBusinessTask<HolidayDeleteEvent>- Parameters:
event- theHolidayDeleteEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
Validates the data before delete.- Parameters:
holidayId- the holiday idpoolKit- thePoolKit- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionis thrown
-
notifyDelete
protected void notifyDelete(BOHoliday holiday, PoolKit poolKit) throws DAException, DAValidateException Delete holiday notification- Parameters:
holiday- theBOHolidaypoolKit- thePoolKit- Throws:
DAExceptionDAValidateException
-