1 17 package org.alfresco.repo.policy; 18 19 import java.util.Collection ; 20 21 import org.alfresco.service.namespace.QName; 22 23 24 41 public interface PolicyComponent 42 { 43 50 public <P extends ClassPolicy> ClassPolicyDelegate<P> registerClassPolicy(Class <P> policy); 51 52 59 public <P extends PropertyPolicy> PropertyPolicyDelegate<P> registerPropertyPolicy(Class <P> policy); 60 61 68 public <P extends AssociationPolicy> AssociationPolicyDelegate<P> registerAssociationPolicy(Class <P> policy); 69 70 75 public Collection <PolicyDefinition> getRegisteredPolicies(); 76 77 84 public PolicyDefinition getRegisteredPolicy(PolicyType policyType, QName policy); 85 86 93 public boolean isRegisteredPolicy(PolicyType policyType, QName policy); 94 95 102 public BehaviourDefinition<ClassBehaviourBinding> bindClassBehaviour(QName policy, QName classRef, Behaviour behaviour); 103 104 112 public BehaviourDefinition<ServiceBehaviourBinding> bindClassBehaviour(QName policy, Object service, Behaviour behaviour); 113 114 123 public BehaviourDefinition<ClassFeatureBehaviourBinding> bindPropertyBehaviour(QName policy, QName className, QName propertyName, Behaviour behaviour); 124 125 133 public BehaviourDefinition<ClassFeatureBehaviourBinding> bindPropertyBehaviour(QName policy, QName className, Behaviour behaviour); 134 135 143 public BehaviourDefinition<ServiceBehaviourBinding> bindPropertyBehaviour(QName policy, Object service, Behaviour behaviour); 144 145 154 public BehaviourDefinition<ClassFeatureBehaviourBinding> bindAssociationBehaviour(QName policy, QName className, QName assocName, Behaviour behaviour); 155 156 164 public BehaviourDefinition<ClassFeatureBehaviourBinding> bindAssociationBehaviour(QName policy, QName className, Behaviour behaviour); 165 166 174 public BehaviourDefinition<ServiceBehaviourBinding> bindAssociationBehaviour(QName policy, Object service, Behaviour behaviour); 175 176 } 177 178 179 | Popular Tags |