org.alfresco.repo.policy.registration
Class PolicyRegistration

java.lang.Object
  extended by org.alfresco.repo.policy.registration.PolicyRegistration
Direct Known Subclasses:
AssociationPolicyRegistration, ClassPolicyRegistration

public abstract class PolicyRegistration
extends java.lang.Object

Bean that can be configured in spring to register a policy bahaviour


Field Summary
protected  Behaviour behaviour
          The behaviour
protected  org.alfresco.service.namespace.QName className
          The class name
protected  PolicyComponent policyComponent
          The policy componenet
protected  java.util.List policyNames
          The policy names
 
Constructor Summary
PolicyRegistration()
           
 
Method Summary
abstract  void register()
          Registers the behaviour with the policy component for the policy and type specified.
 void setBehaviour(Behaviour behaviour)
          Set the behaviour
 void setClassName(java.lang.String className)
          Set the class name
 void setPolicyComponent(PolicyComponent policyComponent)
          Set the policy component
 void setPolicyName(java.lang.String policyName)
          Set the policy name
 void setPolicyNames(java.util.List policyNames)
          Set the policy names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

policyComponent

protected PolicyComponent policyComponent
The policy componenet


policyNames

protected java.util.List policyNames
The policy names


className

protected org.alfresco.service.namespace.QName className
The class name


behaviour

protected Behaviour behaviour
The behaviour

Constructor Detail

PolicyRegistration

public PolicyRegistration()
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 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?



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