Class BTDCTemplateVisibilityRuleRowDelete
java.lang.Object
overit.geocall.bl.BusinessTask<DCTemplateVisibilityRuleRowDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DCTemplateVisibilityRuleRowDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<DCTemplateVisibilityRuleRowDeleteEvent>
overit.geocallapp.wfm.mobileforms.bl.template.visibilityrules.rows.task.BTDCTemplateVisibilityRuleRowDelete
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DCTemplateVisibilityRuleRowDeleteEvent.class)
public class BTDCTemplateVisibilityRuleRowDelete
extends ValidPermissionBusinessTask<DCTemplateVisibilityRuleRowDeleteEvent>
Business task in order to delete a
When the
BODCTemplateVisibilityRuleHeader. When the
DCTemplateVisibilityRuleHeaderDeleteEvent is launched the BT notices the call and
deletes the BODCTemplateVisibilityRuleHeader basing on the event's input. Permission:
- Since:
- 22.0
- See Also:
- GCApi:
- task
-
Field Summary
FieldsFields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(DCTemplateVisibilityRuleRowDeleteEvent event, PoolKit poolKit) Deletes theBODCTemplateVisibilityRuleRowwith the ID provided in the input.booleanDetermines whether the current state is valid for execution.protected voidValidates the deletion.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
-
Field Details
-
ruleRow
-
-
Constructor Details
-
BTDCTemplateVisibilityRuleRowDelete
public BTDCTemplateVisibilityRuleRowDelete()
-
-
Method Details
-
execute
protected void execute(DCTemplateVisibilityRuleRowDeleteEvent event, PoolKit poolKit) throws DAException, DAValidateException Deletes theBODCTemplateVisibilityRuleRowwith the ID provided in the input.- Specified by:
executein classValidExecutionBusinessTask<DCTemplateVisibilityRuleRowDeleteEvent>- Parameters:
event- theDCTemplateVisibilityRuleRowDeleteEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
Validates the deletion.- Parameters:
id- theBODCTemplateVisibilityRuleHeaderobject's idpoolKit- thePoolKitpoolKit- Throws:
DAValidateException- if there is a data validation exceptionDAException
-
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
-