1 17 package org.alfresco.service.cmr.rule; 18 19 import java.util.List ; 20 21 import org.alfresco.service.cmr.repository.NodeRef; 22 23 28 public interface RuleService 29 { 30 35 public List <RuleType> getRuleTypes(); 36 37 43 public RuleType getRuleType(String name); 44 45 52 public boolean rulesEnabled(NodeRef nodeRef); 53 54 60 public void disableRules(NodeRef nodeRef); 61 62 68 public void enableRules(NodeRef nodeRef); 69 70 75 public void disableRule(Rule rule); 76 77 82 public void enableRule(Rule rule); 83 84 90 public boolean hasRules(NodeRef nodeRef); 91 92 102 public List <Rule> getRules(NodeRef nodeRef); 103 104 117 public List <Rule> getRules(NodeRef nodeRef, boolean includeInhertied); 118 119 129 public List <Rule> getRules(NodeRef nodeRef, boolean includeInhertiedRuleType, String ruleTypeName); 130 131 137 public int countRules(NodeRef nodeRef); 138 139 146 public Rule getRule(NodeRef nodeRef, String ruleId); 147 148 157 public Rule createRule(String ruleTypeName); 158 159 168 public void saveRule(NodeRef nodeRef, Rule rule); 169 170 175 public void removeRule(NodeRef nodeRef, Rule rule); 176 177 182 public void removeAllRules(NodeRef nodeRef); 183 } 184 | Popular Tags |