Class BTProjectHeaderClose
java.lang.Object
overit.geocall.bl.BusinessTask<ProjectHeaderCloseEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ProjectHeaderCloseEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ProjectHeaderCloseEvent>
overit.geocallapp.wfm.project.bl.header.task.BTProjectHeaderClose
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ProjectHeaderCloseEvent.class)
public class BTProjectHeaderClose
extends ValidPermissionBusinessTask<ProjectHeaderCloseEvent>
- See Also:
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckProjectData(Project project, PoolKit pk) protected voidexecute(ProjectHeaderCloseEvent event, PoolKit pk) Executes the actual business logic after validation has passed.protected LongSetbooleanDetermines whether the current state is valid for execution.protected ProjectloadProject(Long projectId, PoolKit pk) protected voidprepareProjectData(BOProjectHeader header, PoolKit pk) protected BOProjectHeaderupdateProjectHeader(BOProjectHeader header, 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
-
Constructor Details
-
BTProjectHeaderClose
public BTProjectHeaderClose()
-
-
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(ProjectHeaderCloseEvent event, PoolKit pk) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<ProjectHeaderCloseEvent>- Parameters:
event- the input event to processpk- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
loadProject
- Throws:
DAExceptionDAValidateException
-
checkProjectData
protected void checkProjectData(Project project, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getValidActivityStatuses
-
prepareProjectData
protected void prepareProjectData(BOProjectHeader header, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
updateProjectHeader
protected BOProjectHeader updateProjectHeader(BOProjectHeader header, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-