Class BTDCTemplateVisibilityRuleHeaderDelete
java.lang.Object
overit.geocall.bl.BusinessTask<DCTemplateVisibilityRuleHeaderDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DCTemplateVisibilityRuleHeaderDeleteEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<DCTemplateVisibilityRuleHeaderDeleteEvent>
overit.geocallapp.wfm.mobileforms.bl.template.visibilityrules.header.task.BTDCTemplateVisibilityRuleHeaderDelete
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DCTemplateVisibilityRuleHeaderDeleteEvent.class)
public class BTDCTemplateVisibilityRuleHeaderDelete
extends ValidPermissionBusinessTask<DCTemplateVisibilityRuleHeaderDeleteEvent>
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(DCTemplateVisibilityRuleHeaderDeleteEvent event, PoolKit poolKit) Executes the deletion of a template visibility rule header.booleanDetermines whether the current state is valid for execution.protected voidValidates the deletion.protected voidvalidateNoAssociatedRows(Long id, PoolKit poolKit) Validates that theBODCTemplateVisibilityRuleHeaderhas no associated rows.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
-
ruleHeader
-
-
Constructor Details
-
BTDCTemplateVisibilityRuleHeaderDelete
public BTDCTemplateVisibilityRuleHeaderDelete()
-
-
Method Details
-
execute
protected void execute(DCTemplateVisibilityRuleHeaderDeleteEvent event, PoolKit poolKit) throws DAException, DAValidateException Executes the deletion of a template visibility rule header.This method validates the input and deletion constraints before performing the actual deletion operation.
- Specified by:
executein classValidExecutionBusinessTask<DCTemplateVisibilityRuleHeaderDeleteEvent>- Parameters:
event- the delete event containing the ID of the header to deletepoolKit- the pool kit for database operations- Throws:
DAException- if a database access error occursDAValidateException- if validation fails
-
validate
Validates the deletion.- Parameters:
id- theBODCTemplateVisibilityRuleHeaderobject's idpoolKit- thePoolKitpoolKit- Throws:
DAValidateException- if there is a data validation exceptionDAException
-
validateNoAssociatedRows
protected void validateNoAssociatedRows(Long id, PoolKit poolKit) throws DAException, DAValidateException Validates that theBODCTemplateVisibilityRuleHeaderhas no associated rows.- Parameters:
id- theBODCTemplateVisibilityRuleHeaderidpoolKit- thePoolKit- Throws:
DAException- if a database access error occursDAValidateException- if validation fails
-
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
-