Class BTProjectActivityRelationsManager
java.lang.Object
overit.geocall.bl.BusinessTask<ProjectActivityRelationManagerEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ProjectActivityRelationManagerEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ProjectActivityRelationManagerEvent>
overit.geocallapp.wfm.project.bl.activityrelation.task.BTProjectActivityRelationsManager
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ProjectActivityRelationManagerEvent.class)
public class BTProjectActivityRelationsManager
extends ValidPermissionBusinessTask<ProjectActivityRelationManagerEvent>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckBeforeProcess(List<BOActivityRelation> relations, PoolKit pk) protected voidcheckProjectActivityStatus(BOProjectActivity activity) protected voidexecute(ProjectActivityRelationManagerEvent event, PoolKit pk) Executes the actual business logic after validation has passed.booleanDetermines whether the current state is valid for execution.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
-
MODE_INSERT
public static final int MODE_INSERT- See Also:
-
MODE_EDIT
public static final int MODE_EDIT- See Also:
-
MODE_CANCEL
public static final int MODE_CANCEL- See Also:
-
-
Constructor Details
-
BTProjectActivityRelationsManager
public BTProjectActivityRelationsManager()
-
-
Method Details
-
execute
protected void execute(ProjectActivityRelationManagerEvent event, PoolKit pk) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<ProjectActivityRelationManagerEvent>- Parameters:
event- the input event to processpk- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
checkBeforeProcess
protected void checkBeforeProcess(List<BOActivityRelation> relations, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
checkProjectActivityStatus
- Throws:
DAValidateException
-
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
-