1 17 package org.alfresco.repo.rule; 18 19 import java.io.Serializable ; 20 21 import org.alfresco.repo.action.CompositeActionImpl; 22 import org.alfresco.service.cmr.repository.NodeRef; 23 import org.alfresco.service.cmr.rule.Rule; 24 import org.alfresco.util.ParameterCheck; 25 26 34 public class RuleImpl extends CompositeActionImpl implements Serializable , Rule 35 { 36 39 private static final long serialVersionUID = 3544385898889097524L; 40 41 44 private String ruleTypeName; 45 46 50 private boolean isAppliedToChildren = false; 51 52 57 public RuleImpl(String id, String ruleTypeName, NodeRef owningNodeRef) 58 { 59 super(id, owningNodeRef); 60 ParameterCheck.mandatory("ruleTypeName", ruleTypeName); 61 62 this.ruleTypeName = ruleTypeName; 63 } 64 65 68 public boolean isAppliedToChildren() 69 { 70 return this.isAppliedToChildren; 71 } 72 73 76 public void applyToChildren(boolean isAppliedToChildren) 77 { 78 this.isAppliedToChildren = isAppliedToChildren; 79 } 80 81 84 public String getRuleTypeName() 85 { 86 return this.ruleTypeName; 87 } 88 } 89 90 | Popular Tags |