Class BTBundleRequirementDelete
java.lang.Object
overit.geocall.bl.BusinessTask<BundleRequirementDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<BundleRequirementDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<BundleRequirementDeleteEvent>
overit.geocallapp.wfm.bundler.bl.bundleRequirement.task.BTBundleRequirementDelete
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(BundleRequirementDeleteEvent.class)
public class BTBundleRequirementDelete
extends ValidPermissionBusinessTask<BundleRequirementDeleteEvent>
Business task in order to delete a
When the
BOBundleRequirement. When the
BundleRequirementDeleteEvent is launched the BT notices the call and
deletes the BOBundleRequirement basing on the event's input.- Since:
- 22.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(BundleRequirementDeleteEvent event, PoolKit poolKit) Deletes the bundle requirement.booleanDetermines if the execution of this task is valid.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
-
BTBundleRequirementDelete
public BTBundleRequirementDelete()
-
-
Method Details
-
execute
protected void execute(BundleRequirementDeleteEvent event, PoolKit poolKit) throws DAException, DAValidateException Deletes the bundle requirement.- Specified by:
executein classValidExecutionBusinessTask<BundleRequirementDeleteEvent>- Parameters:
event- theBundleRequirementDeleteEventcontaining the requirement ID to deletepoolKit- thePoolKitfor database operations- Throws:
DAException- if a database error occursDAValidateException- if validation fails
-
isValidExecution
public boolean isValidExecution()Determines if the execution of this task is valid.- Returns:
- true
-