Package org.alfresco.repo.policy
Class ClassPolicyDelegate<P extends ClassPolicy>
- java.lang.Object
-
- org.alfresco.repo.policy.ClassPolicyDelegate<P>
-
- Type Parameters:
P- the policy interface
@AlfrescoPublicApi public class ClassPolicyDelegate<P extends ClassPolicy> extends java.lang.ObjectDelegate for a Class-level Policy. 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)Gets the policy implementation for the given classes.Pget(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Set<org.alfresco.service.namespace.QName> classQNames)Gets the policy implementation for the given classes.Pget(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName classQName)Gets the Policy implementation for the specified ClassPget(org.alfresco.service.namespace.QName classQName)Gets the Policy implementation for the specified Class When multiple behaviours are bound to the policy for the class, 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)Gets the collection of Policy implementations for the given classesjava.util.Collection<P>getList(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Set<org.alfresco.service.namespace.QName> classQNames)Gets the collection of Policy implementations for the given classesjava.util.Collection<P>getList(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName classQName)Gets the collection of Policy implementations for the specified Classjava.util.Collection<P>getList(org.alfresco.service.namespace.QName classQName)Gets the collection of Policy implementations for the specified Class
-
-
-
Method Detail
-
get
public P get(org.alfresco.service.namespace.QName classQName)
Gets the Policy implementation for the specified Class When multiple behaviours are bound to the policy for the class, an aggregate policy implementation is returned which invokes each policy in turn.- Parameters:
classQName- the class qualified name- Returns:
- the policy
-
get
public P get(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName classQName)
Gets the Policy implementation for the specified Class- Parameters:
nodeRef- the node referenceclassQName- the class name- Returns:
- the policy
-
getList
public java.util.Collection<P> getList(org.alfresco.service.namespace.QName classQName)
Gets the collection of Policy implementations for the specified Class- Parameters:
classQName- the class 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)
Gets the collection of Policy implementations for the specified Class- Parameters:
nodeRef- the node referenceclassQName- the class qualified name- Returns:
- the collection of policies
-
get
public P get(java.util.Set<org.alfresco.service.namespace.QName> classQNames)
Gets the policy implementation for the given classes. The single Policy will be a wrapper of multiple appropriate policies.- Parameters:
classQNames- the class qualified names- Returns:
- Returns the policy
-
get
public P get(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Set<org.alfresco.service.namespace.QName> classQNames)
Gets the policy implementation for the given classes. The single Policy will be a wrapper of multiple appropriate policies.- Parameters:
nodeRef- the node referenceclassQNames- the class qualified names- Returns:
- Returns the policy
-
getList
public java.util.Collection<P> getList(java.util.Set<org.alfresco.service.namespace.QName> classQNames)
Gets the collection of Policy implementations for the given classes- Parameters:
classQNames- the class qualified names- Returns:
- Returns the collection of policies
-
getList
public java.util.Collection<P> getList(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Set<org.alfresco.service.namespace.QName> classQNames)
Gets the collection of Policy implementations for the given classes- Parameters:
classQNames- the class qualified names- Returns:
- Returns the collection of policies
-
-