Class BTProjectActivityCreate
java.lang.Object
overit.geocall.bl.BusinessTask<ProjectActivityCreateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ProjectActivityCreateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ProjectActivityCreateEvent>
overit.geocallapp.wfm.project.bl.activity.task.BTProjectActivityCreate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ProjectActivityCreateEvent.class)
public class BTProjectActivityCreate
extends ValidPermissionBusinessTask<ProjectActivityCreateEvent>
- 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 voidconvertCalendarUnitFields(BOProjectActivity activity, PoolKit pk) protected voidexecute(ProjectActivityCreateEvent event, PoolKit pk) Executes the actual business logic after validation has passed.protected voidfillActivityData(BOProjectActivity activity, Project project, PoolKit pk) protected BOProjectProfilegetProjectProfile(Long projectId, PoolKit pk) protected BOProjectActivityinsertActivity(BOProjectActivity activity, PoolKit pk) 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
-
Constructor Details
-
BTProjectActivityCreate
public BTProjectActivityCreate()
-
-
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(ProjectActivityCreateEvent event, PoolKit pk) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<ProjectActivityCreateEvent>- Parameters:
event- the input event to processpk- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
fillActivityData
protected void fillActivityData(BOProjectActivity activity, Project project, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
convertCalendarUnitFields
protected void convertCalendarUnitFields(BOProjectActivity activity, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getProjectProfile
protected BOProjectProfile getProjectProfile(Long projectId, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
insertActivity
protected BOProjectActivity insertActivity(BOProjectActivity activity, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-