Class BTForecastShiftModelDetailMassiveUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<ForecastShiftModelDetailMassiveUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ForecastShiftModelDetailMassiveUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ForecastShiftModelDetailMassiveUpdateEvent>
overit.geocallapp.wfm.forecastcapacity.bl.forecast.resource.shiftmodel.detail.task.BTForecastShiftModelDetailMassiveUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ForecastShiftModelDetailMassiveUpdateEvent.class)
public class BTForecastShiftModelDetailMassiveUpdate
extends ValidPermissionBusinessTask<ForecastShiftModelDetailMassiveUpdateEvent>
Business task in order to update multiple instances of
When the
BOForecastShiftModelDetail at the same time.. When the
ForecastShiftModelDetailMassiveUpdateEvent is launched the BT notices the
call and updates all the BOForecastShiftModelDetail instances basing on the event's input. Required fields:
- Forecast Shift Model Detail
- Forecast Shift Model Detail Ids
Permission:
Error Code:
- 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(ForecastShiftModelDetailMassiveUpdateEvent event, PoolKit poolKit) Updates all theBOForecastShiftModelDetailinstances.booleanDetermines whether the current state is valid for execution.protected voidupdateForecastShiftModelDetail(BOForecastShiftModelDetail forecastShiftModelDetail, PoolKit poolKit) Update an existing forecast shift model detail.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
-
BTForecastShiftModelDetailMassiveUpdate
public BTForecastShiftModelDetailMassiveUpdate()
-
-
Method Details
-
execute
protected void execute(ForecastShiftModelDetailMassiveUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates all theBOForecastShiftModelDetailinstances.- Specified by:
executein classValidExecutionBusinessTask<ForecastShiftModelDetailMassiveUpdateEvent>- Parameters:
event- theForecastShiftModelDetailMassiveUpdateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
updateForecastShiftModelDetail
protected void updateForecastShiftModelDetail(BOForecastShiftModelDetail forecastShiftModelDetail, PoolKit poolKit) throws DAException, DAValidateException Update an existing forecast shift model detail.- Parameters:
forecastShiftModelDetail- theBOForecastShiftModelDetailpoolKit- 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
-