Class BTForecastResourceDetailCopy
java.lang.Object
overit.geocall.bl.BusinessTask<ForecastResourceDetailCopyEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ForecastResourceDetailCopyEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ForecastResourceDetailCopyEvent>
overit.geocallapp.wfm.forecastcapacity.bl.forecast.resource.detail.task.BTForecastResourceDetailCopy
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ForecastResourceDetailCopyEvent.class)
public class BTForecastResourceDetailCopy
extends ValidPermissionBusinessTask<ForecastResourceDetailCopyEvent>
Business task used to apply the copied resource's details (i.e., the copied resource's calendars) to the target resources (i.e., the selected resources) of the same forecast
When the
When the
ForecastResourceDetailCopyEvent is launched
the BT notices the call and apply the copied resource's details (i.e., the copied resource's calendars) to the target resources
(i.e., the selected resources) of the same forecast, by using the params contained within the ForecastResourceDetailCopyInput. - 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(ForecastResourceDetailCopyEvent event, PoolKit pk) Apply the copied resource's details (i.e., the copied resource's calendars) to the target resources (i.e., the selected resources) of the same forecastbooleanDetermines 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
-
BTForecastResourceDetailCopy
public BTForecastResourceDetailCopy()
-
-
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(ForecastResourceDetailCopyEvent event, PoolKit pk) throws DAException, DAValidateException Apply the copied resource's details (i.e., the copied resource's calendars) to the target resources (i.e., the selected resources) of the same forecast- Specified by:
executein classValidExecutionBusinessTask<ForecastResourceDetailCopyEvent>- Parameters:
event- theForecastResourceDetailCopyEventpk- thePoolKit- Throws:
DAExceptionDAValidateException
-