Class BTForecastResourceDetailApplyTemplate
java.lang.Object
overit.geocall.bl.BusinessTask<ForecastResourceDetailApplyTemplateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ForecastResourceDetailApplyTemplateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ForecastResourceDetailApplyTemplateEvent>
overit.geocallapp.wfm.forecastcapacity.bl.forecast.resource.detail.task.BTForecastResourceDetailManagement<ForecastResourceDetailApplyTemplateEvent>
overit.geocallapp.wfm.forecastcapacity.bl.forecast.resource.detail.task.BTForecastResourceDetailApplyTemplate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ForecastResourceDetailApplyTemplateEvent.class)
public class BTForecastResourceDetailApplyTemplate
extends BTForecastResourceDetailManagement<ForecastResourceDetailApplyTemplateEvent>
Business task in order to apply the template to get all the resources timeframes
ForecastResourceDetailBuildPreview.
When the ForecastResourceDetailApplyTemplateEvent is launched
the BT notices the call and calculates all the resources timeframes ForecastResourceDetailBuildPreview 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 intadaptDay(int dayOfTheWeek) protected voidexecute(ForecastResourceDetailApplyTemplateEvent event, PoolKit poolKit) Build multipleForecastResourceDetailBuildPreviewbased on the input template and writes the newly generated BO into the event journal.Methods inherited from class overit.geocallapp.wfm.forecastcapacity.bl.forecast.resource.detail.task.BTForecastResourceDetailManagement
checkResourceWorktimeValidity, checkResourceWorktimeValidity, getForecastHeader, getNewValue, getResourceBuildPreview, isValidExecution, searchWorkshift, validateDates, validateInput, zeroOrNegativeToNullMethods 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
-
BTForecastResourceDetailApplyTemplate
public BTForecastResourceDetailApplyTemplate()
-
-
Method Details
-
execute
protected void execute(ForecastResourceDetailApplyTemplateEvent event, PoolKit poolKit) throws DAException, DAValidateException Build multipleForecastResourceDetailBuildPreviewbased on the input template and writes the newly generated BO into the event journal.- Specified by:
executein classValidExecutionBusinessTask<ForecastResourceDetailApplyTemplateEvent>- Parameters:
event- theForecastResourceDetailApplyTemplateEventpoolKit- thePoolKit- Throws:
DAExceptionDAValidateException
-
adaptDay
protected int adaptDay(int dayOfTheWeek)
-