Class BTForecastResourceDetailInsert
java.lang.Object
overit.geocall.bl.BusinessTask<ForecastResourceDetailInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ForecastResourceDetailInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ForecastResourceDetailInsertEvent>
overit.geocallapp.wfm.forecastcapacity.bl.forecast.resource.detail.task.BTForecastResourceDetailManagement<ForecastResourceDetailInsertEvent>
overit.geocallapp.wfm.forecastcapacity.bl.forecast.resource.detail.task.BTForecastResourceDetailInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ForecastResourceDetailInsertEvent.class)
public class BTForecastResourceDetailInsert
extends BTForecastResourceDetailManagement<ForecastResourceDetailInsertEvent>
Business task to insert new
When the
BOForecastResourceDetail. When the
ForecastResourceDetailInsertEvent is launched
the BT notices the call and insert the new BOForecastResourceDetail basing on the 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(ForecastResourceDetailInsertEvent event, PoolKit poolKit) Inserts the givenBOForecastResourceDetailand writes the newly generated id into the event journal.booleanDetermines whether the current state is valid for execution.Methods inherited from class overit.geocallapp.wfm.forecastcapacity.bl.forecast.resource.detail.task.BTForecastResourceDetailManagement
checkResourceWorktimeValidity, checkResourceWorktimeValidity, getForecastHeader, getNewValue, getResourceBuildPreview, 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
-
BTForecastResourceDetailInsert
public BTForecastResourceDetailInsert()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Specified by:
isValidExecutionin interfaceValidExecution- Overrides:
isValidExecutionin classBTForecastResourceDetailManagement<ForecastResourceDetailInsertEvent>- Returns:
- true if execution is valid, false otherwise
-
execute
protected void execute(ForecastResourceDetailInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the givenBOForecastResourceDetailand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<ForecastResourceDetailInsertEvent>- Parameters:
event- theForecastResourceDetailInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-