Class BTRoughPlanningResourceCancel
java.lang.Object
overit.geocall.bl.BusinessTask<RoughPlanningResourceCancelEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<RoughPlanningResourceCancelEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<RoughPlanningResourceCancelEvent>
overit.geocallapp.wfm.roughplanning.bl.resource.task.BTRoughPlanningResourceCancel
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(RoughPlanningResourceCancelEvent.class)
public class BTRoughPlanningResourceCancel
extends ValidPermissionBusinessTask<RoughPlanningResourceCancelEvent>
Business task in order to cancel a
When the
BORoughPlanningResource. When the
RoughPlanningResourceCancelEvent is launched
the BT notices the call and cancels the BORoughPlanningResource basing on the event's input. - Since:
- 18.0
- 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 voidcancelRoughPlanningResource(Long roughPlanningResourceId, PoolKit pk) Cancels the rough planning resource.protected voidexecute(RoughPlanningResourceCancelEvent event, PoolKit pk) Cancels the givenBORoughPlanningResource.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
-
BTRoughPlanningResourceCancel
public BTRoughPlanningResourceCancel()
-
-
Method Details
-
execute
protected void execute(RoughPlanningResourceCancelEvent event, PoolKit pk) throws DAException, DAValidateException Cancels the givenBORoughPlanningResource.- Specified by:
executein classValidExecutionBusinessTask<RoughPlanningResourceCancelEvent>- Parameters:
event- theRoughPlanningResourceCancelEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
cancelRoughPlanningResource
protected void cancelRoughPlanningResource(Long roughPlanningResourceId, PoolKit pk) throws DAValidateException, DAException Cancels the rough planning resource. The cancellation is physical, i.e. delete of the record from the database table- Parameters:
roughPlanningResourceId- theBORoughPlanningResourceidpk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
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
-