Interface AutomationRuleManagementService
- All Known Implementing Classes:
AutomationRuleManagementServiceImpl
public interface AutomationRuleManagementService
OSGi-exported facade for external plugins to disable or delete A4J rules.
- Since:
- v10.3
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteRule(ApplicationUser initiator, long ruleId) Permanently delete the rule with the given ID.voiddisableRule(ApplicationUser initiator, long ruleId, String reason) Disable the rule with the given ID.
-
Method Details
-
disableRule
Disable the rule with the given ID.- Parameters:
initiator- the user performing the operationruleId- the A4J rule IDreason- optional reason recorded in the audit log- Throws:
RuleManagementForbiddenException- ifinitiatoris not authorizedRuleManagementNotFoundException- if no rule exists forruleIdIllegalArgumentException- ifinitiatoris null
-
deleteRule
Permanently delete the rule with the given ID.- Parameters:
initiator- the user performing the operationruleId- the A4J rule ID- Throws:
RuleManagementForbiddenException- ifinitiatoris not authorizedRuleManagementNotFoundException- if no rule exists forruleIdIllegalArgumentException- ifinitiatoris null
-