Class BTModifyProjectStructure
java.lang.Object
overit.geocall.bl.BusinessTask<ModifyProjectStructureEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ModifyProjectStructureEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ModifyProjectStructureEvent>
overit.geocallapp.wfm.project.bl.task.BTModifyProjectStructure
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
- Direct Known Subclasses:
BTAddProjectActivity,BTAddWoOperationProjectActivities,BTCopyAndPasteProjectTree,BTCutAndPasteProjectTree,BTDeleteProjectTree,BTModifyProjectActivity
public abstract class BTModifyProjectStructure
extends ValidPermissionBusinessTask<ModifyProjectStructureEvent>
- See Also:
-
Field Summary
FieldsFields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ProjectTreeaddNodeToProjectTree(ProjectTree node, ProjectTree projectTree, BOProjectActivity pivotActivity, Long pivotMode, PoolKit pk) protected voidafterSaveProject(ModifyProjectStructureEvent event, ProjectSaveEvent saveEvent, PoolKit pk) protected voidprotected voidcheckBeforeModify(ModifyProjectStructureEvent event, PoolKit pk) protected voidcheckConstraintsByPivotMode(BOProjectActivity activity, Long pivotMode) protected voidcheckParentStatus(BOProjectActivity activity) protected voidcheckProjectActivityStatus(BOProjectActivity activity) protected voidprotected voidcheckStatusByPivotMode(BOProjectActivity pivotActivity, Long pivotMode) protected voidprotected voidexecute(ModifyProjectStructureEvent event, PoolKit pk) Executes the actual business logic after validation has passed.protected Longprotected voidinit(ModifyProjectStructureEvent event, PoolKit pk) booleanDetermines whether the current state is valid for execution.protected abstract voidmodifyProject(ProjectTree node, PoolKit pk) protected abstract ProjectTreeprotected abstract voidprotected ProjectTreeremoveNodeFromProjectTree(ProjectTree node, ProjectTree projectTree, PoolKit pk) protected ProjectSaveEventsaveProject(PoolKit pk) 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, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
project
-
projectTree
-
temporaryId
-
-
Constructor Details
-
BTModifyProjectStructure
public BTModifyProjectStructure()
-
-
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
-
execute
protected void execute(ModifyProjectStructureEvent event, PoolKit pk) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<ModifyProjectStructureEvent>- Parameters:
event- the input event to processpk- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
init
protected void init(ModifyProjectStructureEvent event, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
checkBeforeModify
protected void checkBeforeModify(ModifyProjectStructureEvent event, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
modifyProjectTree
protected abstract ProjectTree modifyProjectTree(PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
prepareActivityIds
-
modifyProject
protected abstract void modifyProject(ProjectTree node, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
removeNodeFromProjectTree
protected ProjectTree removeNodeFromProjectTree(ProjectTree node, ProjectTree projectTree, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
addNodeToProjectTree
protected ProjectTree addNodeToProjectTree(ProjectTree node, ProjectTree projectTree, BOProjectActivity pivotActivity, Long pivotMode, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getNextTemporaryId
-
alignProjectWBSandDFS
- Throws:
DAExceptionDAValidateException
-
evaluateProjectActivitiesStatus
- Throws:
DAExceptionDAValidateException
-
saveProject
- Throws:
DAExceptionDAValidateException
-
afterSaveProject
protected void afterSaveProject(ModifyProjectStructureEvent event, ProjectSaveEvent saveEvent, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
checkStatusByPivotMode
protected void checkStatusByPivotMode(BOProjectActivity pivotActivity, Long pivotMode) throws DAValidateException - Throws:
DAValidateException
-
checkParentStatus
- Throws:
DAValidateException
-
checkProjectActivityStatus
- Throws:
DAValidateException
-
checkProjectStatus
- Throws:
DAValidateException
-
checkConstraintsByPivotMode
protected void checkConstraintsByPivotMode(BOProjectActivity activity, Long pivotMode) throws DAValidateException - Throws:
DAValidateException
-