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
Delegate for a Class-level Policy. Provides access to Policy Interface implementations which invoke the appropriate bound behaviours.
- Author:
- David Caruana
-
Method Summary
Modifier and TypeMethodDescriptionGets the policy implementation for the given classes.Gets the policy implementation for the given classes.Gets the Policy implementation for the specified ClassGets 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.Gets the collection of Policy implementations for the given classesGets the collection of Policy implementations for the given classesGets the collection of Policy implementations for the specified ClassGets the collection of Policy implementations for the specified Class
-
Method Details
-
get
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
Gets the Policy implementation for the specified Class- Parameters:
nodeRef- the node referenceclassQName- the class name- Returns:
- the policy
-
getList
Gets the collection of Policy implementations for the specified Class- Parameters:
classQName- the class qualified name- Returns:
- the collection of policies
-
getList
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
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
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
Gets the collection of Policy implementations for the given classes- Parameters:
classQNames- the class qualified names- Returns:
- Returns the collection of policies
-
getList
Gets the collection of Policy implementations for the given classes- Parameters:
classQNames- the class qualified names- Returns:
- Returns the collection of policies
-