Class PolicyRegistration

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

public abstract class PolicyRegistration extends Object
Bean that can be configured in spring to register a policy bahaviour
Author:
Roy Wetherall
  • Field Details

    • policyComponent

      protected PolicyComponent policyComponent
      The policy componenet
    • policyNames

      protected List<QName> policyNames
      The policy names
    • className

      protected QName className
      The class name
    • behaviour

      protected Behaviour behaviour
      The behaviour
  • Constructor Details

    • PolicyRegistration

      public PolicyRegistration()
  • Method Details

    • setPolicyComponent

      public void setPolicyComponent(PolicyComponent policyComponent)
      Set the policy component
      Parameters:
      policyComponent - the policy componenet
    • setPolicyName

      public void setPolicyName(String policyName)
      Set the policy name
      Parameters:
      policyName - the policy name
    • setPolicyNames

      public void setPolicyNames(List<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(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?