Class BTForecastResourceDetailEdit
java.lang.Object
overit.geocall.bl.BusinessTask<ForecastResourceDetailEditEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ForecastResourceDetailEditEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ForecastResourceDetailEditEvent>
overit.geocallapp.wfm.forecastcapacity.bl.forecast.resource.detail.task.BTForecastResourceDetailManagement<ForecastResourceDetailEditEvent>
overit.geocallapp.wfm.forecastcapacity.bl.forecast.resource.detail.task.BTForecastResourceDetailEdit
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ForecastResourceDetailEditEvent.class)
public class BTForecastResourceDetailEdit
extends BTForecastResourceDetailManagement<ForecastResourceDetailEditEvent>
Business task in order to calculate all the resources timeframes after editing
ForecastResourceDetailBuildPreview.
When the ForecastResourceDetailEditEvent is launched the BT notices the call and calculates
all the resources timeframes after editing 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 voidexecute(ForecastResourceDetailEditEvent event, PoolKit poolKit) Build multipleForecastResourceDetailBuildPreviewand writes the newly generated list of objects into the event journal.protected voidvalidateDates(Date forecastHeaderStartDate, Date forecastHeaderEndDate, Date inputStartDate, Date inputEndDate) Methods inherited from class overit.geocallapp.wfm.forecastcapacity.bl.forecast.resource.detail.task.BTForecastResourceDetailManagement
checkResourceWorktimeValidity, checkResourceWorktimeValidity, getForecastHeader, getNewValue, getResourceBuildPreview, isValidExecution, searchWorkshift, 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
-
BTForecastResourceDetailEdit
public BTForecastResourceDetailEdit()
-
-
Method Details
-
execute
protected void execute(ForecastResourceDetailEditEvent event, PoolKit poolKit) throws DAException, DAValidateException Build multipleForecastResourceDetailBuildPreviewand writes the newly generated list of objects into the event journal.- Specified by:
executein classValidExecutionBusinessTask<ForecastResourceDetailEditEvent>- Parameters:
event- theForecastResourceDetailEditEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validateDates
protected void validateDates(Date forecastHeaderStartDate, Date forecastHeaderEndDate, Date inputStartDate, Date inputEndDate) throws DAValidateException - Overrides:
validateDatesin classBTForecastResourceDetailManagement<ForecastResourceDetailEditEvent>- Throws:
DAValidateException
-