Class AssociationPolicyDelegate<P extends AssociationPolicy>

java.lang.Object
org.alfresco.repo.policy.AssociationPolicyDelegate<P>
Type Parameters:
P - the policy interface

@AlfrescoPublicApi public class AssociationPolicyDelegate<P extends AssociationPolicy> extends Object
Delegate 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

    Modifier and Type
    Method
    Description
    get(Set<QName> classQNames, QName assocTypeQName)
    Gets a Policy for all the given Class and Association
    get(NodeRef nodeRef, Set<QName> classQNames, QName assocTypeQName)
    Gets a Policy for all the given Class and Association
    get(NodeRef nodeRef, QName classQName, QName assocTypeQName)
    Gets the Policy implementation for the specified Class and Association When multiple behaviours are bound to the policy for the class feature, an aggregate policy implementation is returned which invokes each policy in turn.
    get(QName classQName, QName assocTypeQName)
    Gets the Policy implementation for the specified Class and Association When multiple behaviours are bound to the policy for the class feature, an aggregate policy implementation is returned which invokes each policy in turn.
    getList(Set<QName> classQNames, QName assocTypeQName)
    Gets the Policy instances for all the given Classes and Associations
    getList(NodeRef nodeRef, Set<QName> classQNames, QName assocTypeQName)
    Gets the Policy instances for all the given Classes and Associations
    getList(NodeRef nodeRef, QName classQName, QName assocTypeQName)
    Gets the collection of Policy implementations for the specified Class and Association
    getList(QName classQName, QName assocTypeQName)
    Gets the collection of Policy implementations for the specified Class and Association

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • get

      public P get(QName classQName, QName assocTypeQName)
      Gets the Policy implementation for the specified Class and Association 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 name
      assocTypeQName - the association type qualified name
      Returns:
      the policy
    • get

      public P get(NodeRef nodeRef, QName classQName, QName assocTypeQName)
      Gets the Policy implementation for the specified Class and Association 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 reference
      classQName - the class qualified name
      assocTypeQName - the association type qualified name
      Returns:
      the policy
    • getList

      public Collection<P> getList(QName classQName, QName assocTypeQName)
      Gets the collection of Policy implementations for the specified Class and Association
      Parameters:
      classQName - the class qualified name
      assocTypeQName - the association type qualified name
      Returns:
      the collection of policies
    • getList

      public Collection<P> getList(NodeRef nodeRef, QName classQName, QName assocTypeQName)
      Gets the collection of Policy implementations for the specified Class and Association
      Parameters:
      nodeRef - the node reference
      classQName - the class qualified name
      assocTypeQName - the association type qualified name
      Returns:
      the collection of policies
    • get

      public P get(Set<QName> classQNames, QName assocTypeQName)
      Gets a Policy for all the given Class and Association
      Parameters:
      classQNames - the class qualified names
      assocTypeQName - the association type qualified name
      Returns:
      Return the policy
    • get

      public P get(NodeRef nodeRef, Set<QName> classQNames, QName assocTypeQName)
      Gets a Policy for all the given Class and Association
      Parameters:
      nodeRef - the node reference
      classQNames - the class qualified names
      assocTypeQName - the association type qualified name
      Returns:
      Return the policy
    • getList

      public Collection<P> getList(Set<QName> classQNames, QName assocTypeQName)
      Gets the Policy instances for all the given Classes and Associations
      Parameters:
      classQNames - the class qualified names
      assocTypeQName - the association type qualified name
      Returns:
      Return the policies
    • getList

      public Collection<P> getList(NodeRef nodeRef, Set<QName> classQNames, QName assocTypeQName)
      Gets the Policy instances for all the given Classes and Associations
      Parameters:
      nodeRef - the node reference
      classQNames - the class qualified names
      assocTypeQName - the association type qualified name
      Returns:
      Return the policies