Class BTForecastResourceDetailPeriodDelete
java.lang.Object
overit.geocall.bl.BusinessTask<ForecastResourceDetailPeriodDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ForecastResourceDetailPeriodDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ForecastResourceDetailPeriodDeleteEvent>
overit.geocallapp.wfm.forecastcapacity.bl.forecast.resource.detail.task.BTForecastResourceDetailPeriodDelete
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ForecastResourceDetailPeriodDeleteEvent.class)
public class BTForecastResourceDetailPeriodDelete
extends ValidPermissionBusinessTask<ForecastResourceDetailPeriodDeleteEvent>
Business task in order to delete a list of
When the
BOForecastResourceDetail. When the
ForecastResourceDetailPeriodDeleteEvent is launched
the BT notices the call and deletes all the BOForecastResourceDetail basing on the event's input. - Since:
- 15.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(ForecastResourceDetailPeriodDeleteEvent event, PoolKit poolKit) Deletes all theBOForecastResourceDetailrelated to the input.protected LonggetForecastHeader(Long resource, PoolKit poolKit) 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
-
BTForecastResourceDetailPeriodDelete
public BTForecastResourceDetailPeriodDelete()
-
-
Method Details
-
execute
protected void execute(ForecastResourceDetailPeriodDeleteEvent event, PoolKit poolKit) throws DAException, DAValidateException Deletes all theBOForecastResourceDetailrelated to the input.- Specified by:
executein classValidExecutionBusinessTask<ForecastResourceDetailPeriodDeleteEvent>- Parameters:
event- theForecastResourceDetailPeriodDeleteEventpoolKit- 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
-
getForecastHeader
protected Long getForecastHeader(Long resource, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-