Class BTForecastResourceManagement<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.forecastresource.task.BTForecastResourceManagement<I>
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
- Direct Known Subclasses:
BTForecastResourceInsert,BTForecastResourceUpdate
- See Also:
-
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 voidvalidateCode(BOForecastResource input, PoolKit pk) Validates the key of a resource: code is mandatory and uniqueprotected voidValidates the forecast header: status must be draftprotected voidvalidateInput(BOForecastResource input, PoolKit pk) Validates the input.protected voidprotected voidvalidateName(BOForecastResource input) Validates the key of a resource: at least one of name and surname is mandatoryMethods 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
-
BTForecastResourceManagement
public BTForecastResourceManagement()
-
-
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
-
validateInput
protected void validateInput(BOForecastResource input, PoolKit pk) throws DAValidateException, DAException Validates the input.- Parameters:
input- theBOForecastResourceto insertpk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException
-
validateName
Validates the key of a resource: at least one of name and surname is mandatory- Parameters:
input- theBOForecastResourceto insert- Throws:
DAValidateException- the DA validate exception
-
validateMandatoryFields
- Throws:
DAValidateException
-
validateCode
protected void validateCode(BOForecastResource input, PoolKit pk) throws DAValidateException, DAException Validates the key of a resource: code is mandatory and unique- Parameters:
input- theBOForecastResourceto insert- Throws:
DAValidateException- the DA validate exceptionDAException
-
validateForecastHeaderStatus
protected void validateForecastHeaderStatus(BOForecastResource input, PoolKit pk) throws DAException, DAValidateException Validates the forecast header: status must be draft- Parameters:
input- theBOForecastResourceto insertpk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException
-