Class BTRoughPlanningManagement<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.roughplanning.bl.task.BTRoughPlanningManagement<I>
- Type Parameters:
I- the generic type
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
- Direct Known Subclasses:
BTRoughPlanningApplyShifts,BTRoughPlanningCancel,BTRoughPlanningCreate,BTRoughPlanningInsert,BTRoughPlanningUpdate,BTWorkloadAnalysisCopy,BTWorkloadAnalysisValidate
Generic business task for Rough Planning 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:
- 18.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Longprotected static final Longprotected static final intprotected static final LongFields 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<BORoughPlanning> searchRoughPlanningByCode(String code, PoolKit poolKit) protected voidvalidateCodeDuplication(BORoughPlanning input, PoolKit pk) Validates the rough planning code: we cannot insert a new rough planning with the same code of another rough planningprotected voidvalidateDateSpan(BORoughPlanning input) Validates the time span of start and end date of theBORoughPlanninginput to be checked : it must be less than a year period.protected voidValidates the fields' length of theBORoughPlanninginput to be checked : code's length must not exceed 50 characters and the description's length must not exceed 255 characters.protected voidprotected voidvalidateTimeSize(BORoughPlanning input) Validates the time size of theBORoughPlanninginput to be checked : it must be a positive value.protected voidvalidateTimeUnit(BORoughPlanning input) Validates the time unit of theBORoughPlanninginput to be checked : it must be a positive value.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
-
Field Details
-
CODE_LENGTH
-
DESCRIPTION_LENGTH
-
TIME_SIZE_LOWER_LIMIT
-
OVERSIZED_LIMIT
protected static final int OVERSIZED_LIMIT- See Also:
-
-
Constructor Details
-
BTRoughPlanningManagement
public BTRoughPlanningManagement()
-
-
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
-
validateCodeDuplication
protected void validateCodeDuplication(BORoughPlanning input, PoolKit pk) throws DAException, DAValidateException Validates the rough planning code: we cannot insert a new rough planning with the same code of another rough planning- Parameters:
input- theBORoughPlanningto checkpk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException
-
searchRoughPlanningByCode
protected List<BORoughPlanning> searchRoughPlanningByCode(String code, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
validateFieldsLength
Validates the fields' length of theBORoughPlanninginput to be checked : code's length must not exceed 50 characters and the description's length must not exceed 255 characters.- Parameters:
input- theBORoughPlanninginput to be checked- Throws:
DAValidateException- the DA validate exception
-
validateTimeSize
Validates the time size of theBORoughPlanninginput to be checked : it must be a positive value.- Parameters:
input- theBORoughPlanninginput to be checked- Throws:
DAValidateException- the DA validate exception
-
validateTimeUnit
Validates the time unit of theBORoughPlanninginput to be checked : it must be a positive value.- Parameters:
input- theBORoughPlanninginput to be checked- Throws:
DAValidateException- the DA validate exception
-
validateDateSpan
Validates the time span of start and end date of theBORoughPlanninginput to be checked : it must be less than a year period.- Parameters:
input- theBORoughPlanninginput to be checked- Throws:
DAValidateException- the DA validate exception
-
validateOversizedLimit
- Throws:
DAValidateException
-