Class BTProjectHeaderUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<ProjectHeaderUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ProjectHeaderUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ProjectHeaderUpdateEvent>
overit.geocallapp.wfm.project.bl.header.task.BTProjectHeaderUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ProjectHeaderUpdateEvent.class)
public class BTProjectHeaderUpdate
extends ValidPermissionBusinessTask<ProjectHeaderUpdateEvent>
- 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(BOProjectHeader header, PoolKit pk) protected voidconvertCalendarUnitFields(BOProjectHeader header, PoolKit pk) protected voidexecute(ProjectHeaderUpdateEvent event, PoolKit pk) Executes the actual business logic after validation has passed.protected BOProjectProfilegetProjectProfile(Long projectId, PoolKit pk) booleanDetermines whether the current state is valid for execution.prepareFilterData(BOProjectHeader header) prepareUpdateData(BOProjectHeader header) protected BOProjectHeaderupdateHeader(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
-
BTProjectHeaderUpdate
public BTProjectHeaderUpdate()
-
-
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(ProjectHeaderUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<ProjectHeaderUpdateEvent>- Parameters:
event- the input event to processpk- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
checkProjectData
protected void checkProjectData(BOProjectHeader header, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
updateHeader
protected BOProjectHeader updateHeader(BOProjectHeader header, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
prepareFilterData
-
prepareUpdateData
-
convertCalendarUnitFields
protected void convertCalendarUnitFields(BOProjectHeader header, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getProjectProfile
protected BOProjectProfile getProjectProfile(Long projectId, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-