Class BTResourceForecastManagement<I>
java.lang.Object
overit.geocall.bl.BusinessTask<I>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<I>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<I>
overit.geocallapp.wfm.forecastcapacity.bl.forecast.resource.task.BTResourceForecastManagement<I>
- Type Parameters:
I- the generic type
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
- Direct Known Subclasses:
BTResourceForecastCopy,BTResourceForecastHeaderCancel,BTResourceForecastHeaderInsert,BTResourceForecastHeaderUpdate
Generic business task for Forecast Header entities.
Before executing its purpose, the task checks whether the Forecast Management module is active and if the current user has the required permissions
Before executing its purpose, the task checks whether the Forecast Management module is active and if the current user has the required permissions
- 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 TypeMethodDescriptionbooleanDetermines whether the current state is valid for execution.protected List<BOResourceForecastHeader> searchResourceForecastByCode(String code, PoolKit poolKit) protected voidValidates the forecast code: we cannot insert a new forecast with the same code of another forecastprotected voidprotected voidvalidateFieldsLength(BOResourceForecastHeader input, PoolKit pk) Validates the fields' length of theBOResourceForecastHeaderinput to be checked : code's length must not exceed 10 characters and the description's length must not exceed 255 characters.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, execute, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTResourceForecastManagement
public BTResourceForecastManagement()
-
-
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
-
validateDates
- Throws:
DAValidateException
-
validateCodeDuplication
protected void validateCodeDuplication(BOResourceForecastHeader input, PoolKit pk) throws DAException, DAValidateException Validates the forecast code: we cannot insert a new forecast with the same code of another forecast- Parameters:
input- theBOResourceForecastHeaderto checkpk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException
-
validateFieldsLength
protected void validateFieldsLength(BOResourceForecastHeader input, PoolKit pk) throws DAException, DAValidateException Validates the fields' length of theBOResourceForecastHeaderinput to be checked : code's length must not exceed 10 characters and the description's length must not exceed 255 characters.- Parameters:
input- theBOResourceForecastHeaderinput to be checkedpk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException
-
searchResourceForecastByCode
protected List<BOResourceForecastHeader> searchResourceForecastByCode(String code, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-