Class BTYearCalendarInvalidate
java.lang.Object
overit.geocall.bl.BusinessTask<HolidayNotificationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<HolidayNotificationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<HolidayNotificationEvent>
overit.geocallapp.wfm.systemsettings.bl.calendar.task.BTYearCalendarInvalidate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(HolidayNotificationEvent.class)
public class BTYearCalendarInvalidate
extends ValidPermissionBusinessTask<HolidayNotificationEvent>
Business task in order that invalidates the
YearCalendar related to the given operation center.
If no operation center is passed in the input, it invalidate the YearCalendar related to the company. - 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(HolidayNotificationEvent event, PoolKit poolKit) Invalidates the neededYearCalendar.booleanDetermines whether the current state is valid for execution.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
-
BTYearCalendarInvalidate
public BTYearCalendarInvalidate()
-
-
Method Details
-
execute
protected void execute(HolidayNotificationEvent event, PoolKit poolKit) throws DAException, DAValidateException Invalidates the neededYearCalendar.- Specified by:
executein classValidExecutionBusinessTask<HolidayNotificationEvent>- Parameters:
event- theHolidayNotificationEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
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
-