Class BTLoadProject
java.lang.Object
overit.geocall.bl.BusinessTask<ProjectLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ProjectLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ProjectLoadEvent>
overit.geocallapp.wfm.project.bl.task.BTLoadProject
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ProjectLoadEvent.class)
public class BTLoadProject
extends ValidPermissionBusinessTask<ProjectLoadEvent>
- 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 voidexecute(ProjectLoadEvent event, PoolKit pk) Executes the actual business logic after validation has passed.booleanDetermines whether the current state is valid for execution.protected ProjectloadProject(Long projectId, PoolKit pk) protected DBViewloadProjectActivities(Long projectId, PoolKit pk) protected DBViewloadProjectActivitiesRelations(Long projectId, PoolKit pk) protected BOProjectHeaderloadProjectHeader(Long projectId, 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
-
BTLoadProject
public BTLoadProject()
-
-
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
Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<ProjectLoadEvent>- 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
-
loadProjectHeader
protected BOProjectHeader loadProjectHeader(Long projectId, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
loadProjectActivities
protected DBView loadProjectActivities(Long projectId, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
loadProjectActivitiesRelations
protected DBView loadProjectActivitiesRelations(Long projectId, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-