Class PolicyRegistration
java.lang.Object
org.alfresco.repo.policy.registration.PolicyRegistration
- Direct Known Subclasses:
AssociationPolicyRegistration,ClassPolicyRegistration
Bean that can be configured in spring to register a policy bahaviour
- Author:
- Roy Wetherall
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BehaviourThe behaviourprotected QNameThe class nameprotected PolicyComponentThe policy componenetThe policy names -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidregister()Registers the behaviour with the policy component for the policy and type specified.voidsetBehaviour(Behaviour behaviour) Set the behaviourvoidsetClassName(String className) Set the class namevoidsetPolicyComponent(PolicyComponent policyComponent) Set the policy componentvoidsetPolicyName(String policyName) Set the policy namevoidsetPolicyNames(List<String> policyNames) Set the policy names.
-
Field Details
-
policyComponent
The policy componenet -
policyNames
The policy names -
className
The class name -
behaviour
The behaviour
-
-
Constructor Details
-
PolicyRegistration
public PolicyRegistration()
-
-
Method Details
-
setPolicyComponent
Set the policy component- Parameters:
policyComponent- the policy componenet
-
setPolicyName
Set the policy name- Parameters:
policyName- the policy name
-
setPolicyNames
Set the policy names. The behaviour will be added for each for the policies.- Parameters:
policyNames- the policy names
-
setClassName
Set the class name- Parameters:
className- the class name
-
setBehaviour
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?
-