Class PolicyRegistration
- java.lang.Object
-
- org.alfresco.repo.policy.registration.PolicyRegistration
-
- Direct Known Subclasses:
AssociationPolicyRegistration,ClassPolicyRegistration
public abstract class PolicyRegistration extends java.lang.ObjectBean that can be configured in spring to register a policy bahaviour- Author:
- Roy Wetherall
-
-
Field Summary
Fields Modifier and Type Field Description protected BehaviourbehaviourThe behaviourprotected org.alfresco.service.namespace.QNameclassNameThe class nameprotected PolicyComponentpolicyComponentThe policy componenetprotected java.util.List<org.alfresco.service.namespace.QName>policyNamesThe policy names
-
Constructor Summary
Constructors Constructor Description PolicyRegistration()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidregister()Registers the behaviour with the policy component for the policy and type specified.voidsetBehaviour(Behaviour behaviour)Set the behaviourvoidsetClassName(java.lang.String className)Set the class namevoidsetPolicyComponent(PolicyComponent policyComponent)Set the policy componentvoidsetPolicyName(java.lang.String policyName)Set the policy namevoidsetPolicyNames(java.util.List<java.lang.String> policyNames)Set the policy names.
-
-
-
Field Detail
-
policyComponent
protected PolicyComponent policyComponent
The policy componenet
-
policyNames
protected java.util.List<org.alfresco.service.namespace.QName> policyNames
The policy names
-
className
protected org.alfresco.service.namespace.QName className
The class name
-
behaviour
protected Behaviour behaviour
The behaviour
-
-
Method Detail
-
setPolicyComponent
public void setPolicyComponent(PolicyComponent policyComponent)
Set the policy component- Parameters:
policyComponent- the policy componenet
-
setPolicyName
public void setPolicyName(java.lang.String policyName)
Set the policy name- Parameters:
policyName- the policy name
-
setPolicyNames
public void setPolicyNames(java.util.List<java.lang.String> policyNames)
Set the policy names. The behaviour will be added for each for the policies.- Parameters:
policyNames- the policy names
-
setClassName
public void setClassName(java.lang.String className)
Set the class name- Parameters:
className- the class name
-
setBehaviour
public void setBehaviour(Behaviour behaviour)
Set the behaviour- Parameters:
behaviour- the behaviour
-
register
public abstract void register()
Registers the behaviour with the policy component for the policy and type specified. Called as the init method of the bean. TODO supoort service registration?
-
-