org.alfresco.repo.policy
Class ClassPolicyDelegate

java.lang.Object
  extended by org.alfresco.repo.policy.ClassPolicyDelegate

public class ClassPolicyDelegate
extends java.lang.Object

Delegate for a Class-level Policy. Provides access to Policy Interface implementations which invoke the appropriate bound behaviours.


Method Summary
 ClassPolicy get(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName classQName)
          Gets the Policy implementation for the specified Class
 ClassPolicy get(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Set classQNames)
          Gets the policy implementation for the given classes.
 ClassPolicy 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.
 ClassPolicy get(java.util.Set classQNames)
          Gets the policy implementation for the given classes.
 java.util.Collection getList(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName classQName)
          Gets the collection of Policy implementations for the specified Class
 java.util.Collection getList(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Set classQNames)
          Gets the collection of Policy implementations for the given classes
 java.util.Collection getList(org.alfresco.service.namespace.QName classQName)
          Gets the collection of Policy implementations for the specified Class
 java.util.Collection getList(java.util.Set classQNames)
          Gets the collection of Policy implementations for the given classes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public ClassPolicy 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 ClassPolicy 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 reference
classQName - the class name
Returns:
the policy

getList

public java.util.Collection 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 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 reference
classQName - the class qualified name
Returns:
the collection of policies

get

public ClassPolicy get(java.util.Set 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 ClassPolicy get(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                       java.util.Set classQNames)
Gets the policy implementation for the given classes. The single Policy will be a wrapper of multiple appropriate policies.

Parameters:
nodeRef - the node reference
classQNames - the class qualified names
Returns:
Returns the policy

getList

public java.util.Collection getList(java.util.Set 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 getList(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                    java.util.Set classQNames)
Gets the collection of Policy implementations for the given classes

Parameters:
classQNames - the class qualified names
Returns:
Returns the collection of policies


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.