Package org.alfresco.repo.policy
Class PropertyPolicyDelegate<P extends PropertyPolicy>
- java.lang.Object
-
- org.alfresco.repo.policy.PropertyPolicyDelegate<P>
-
- Type Parameters:
P- the policy interface
@AlfrescoPublicApi public class PropertyPolicyDelegate<P extends PropertyPolicy> extends java.lang.ObjectDelegate for a Class Feature-level (Property and Association) Policies. Provides access to Policy Interface implementations which invoke the appropriate bound behaviours.- Author:
- David Caruana
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pget(java.util.Set<org.alfresco.service.namespace.QName> classQNames, org.alfresco.service.namespace.QName propertyQName)Gets a Policy for all the given Class and PropertyPget(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Set<org.alfresco.service.namespace.QName> classQNames, org.alfresco.service.namespace.QName propertyQName)Gets a Policy for all the given Class and PropertyPget(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName classQName, org.alfresco.service.namespace.QName propertyQName)Gets the Policy implementation for the specified Class and Propery When multiple behaviours are bound to the policy for the class feature, an aggregate policy implementation is returned which invokes each policy in turn.Pget(org.alfresco.service.namespace.QName classQName, org.alfresco.service.namespace.QName propertyQName)Gets the Policy implementation for the specified Class and Propery When multiple behaviours are bound to the policy for the class feature, an aggregate policy implementation is returned which invokes each policy in turn.java.util.Collection<P>getList(java.util.Set<org.alfresco.service.namespace.QName> classQNames, org.alfresco.service.namespace.QName propertyQName)Gets the Policy instances for all the given Classes and Propertiesjava.util.Collection<P>getList(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Set<org.alfresco.service.namespace.QName> classQNames, org.alfresco.service.namespace.QName propertyQName)Gets the Policy instances for all the given Classes and Propertiesjava.util.Collection<P>getList(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName classQName, org.alfresco.service.namespace.QName propertyQName)Gets the collection of Policy implementations for the specified Class and Propertyjava.util.Collection<P>getList(org.alfresco.service.namespace.QName classQName, org.alfresco.service.namespace.QName propertyQName)Gets the collection of Policy implementations for the specified Class and Property
-
-
-
Method Detail
-
get
public P get(org.alfresco.service.namespace.QName classQName, org.alfresco.service.namespace.QName propertyQName)
Gets the Policy implementation for the specified Class and Propery When multiple behaviours are bound to the policy for the class feature, an aggregate policy implementation is returned which invokes each policy in turn.- Parameters:
classQName- the class qualified namepropertyQName- the property qualified name- Returns:
- the policy
-
get
public P get(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName classQName, org.alfresco.service.namespace.QName propertyQName)
Gets the Policy implementation for the specified Class and Propery When multiple behaviours are bound to the policy for the class feature, an aggregate policy implementation is returned which invokes each policy in turn.- Parameters:
nodeRef- the node referenceclassQName- the class qualified namepropertyQName- the property qualified name- Returns:
- the policy
-
getList
public java.util.Collection<P> getList(org.alfresco.service.namespace.QName classQName, org.alfresco.service.namespace.QName propertyQName)
Gets the collection of Policy implementations for the specified Class and Property- Parameters:
classQName- the class qualified namepropertyQName- the property qualified name- Returns:
- the collection of policies
-
getList
public java.util.Collection<P> getList(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName classQName, org.alfresco.service.namespace.QName propertyQName)
Gets the collection of Policy implementations for the specified Class and Property- Parameters:
nodeRef- the node referenceclassQName- the class qualified namepropertyQName- the property qualified name- Returns:
- the collection of policies
-
get
public P get(java.util.Set<org.alfresco.service.namespace.QName> classQNames, org.alfresco.service.namespace.QName propertyQName)
Gets a Policy for all the given Class and Property- Parameters:
classQNames- the class qualified namespropertyQName- the property qualified name- Returns:
- Return the policy
-
get
public P get(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Set<org.alfresco.service.namespace.QName> classQNames, org.alfresco.service.namespace.QName propertyQName)
Gets a Policy for all the given Class and Property- Parameters:
nodeRef- the node referenceclassQNames- the class qualified namespropertyQName- the property qualified name- Returns:
- Return the policy
-
getList
public java.util.Collection<P> getList(java.util.Set<org.alfresco.service.namespace.QName> classQNames, org.alfresco.service.namespace.QName propertyQName)
Gets the Policy instances for all the given Classes and Properties- Parameters:
classQNames- the class qualified namespropertyQName- the property qualified name- Returns:
- Return the policies
-
getList
public java.util.Collection<P> getList(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Set<org.alfresco.service.namespace.QName> classQNames, org.alfresco.service.namespace.QName propertyQName)
Gets the Policy instances for all the given Classes and Properties- Parameters:
nodeRef- the node referenceclassQNames- the class qualified namespropertyQName- the property qualified name- Returns:
- Return the policies
-
-