Class RateableAspect

java.lang.Object
org.alfresco.repo.rating.RateableAspect
All Implemented Interfaces:
CopyServicePolicies.OnCopyNodePolicy, ClassPolicy, Policy

public class RateableAspect extends Object implements CopyServicePolicies.OnCopyNodePolicy
Rateable aspect behaviour bean. When any node with the rateable aspect is copied, then ensure the ratings and roll ups are not copied.
Author:
Alex Miller
  • Constructor Details

    • RateableAspect

      public RateableAspect()
  • Method Details

    • setPolicyComponent

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

      public void setRatingSchemeRegistry(RatingSchemeRegistry ratingSchemeRegistry)
      Set the rating scheme registry
      Parameters:
      ratingSchemeRegistry - The rating scheme registry
    • setRatingNamingConventions

      public void setRatingNamingConventions(RatingNamingConventionsUtil ratingNamingConventions)
      Set the rating naming conventions service.
      Parameters:
      ratingNamingConventions - RatingNamingConventionsUtil
    • init

      public void init()
      Initialise method
    • getCopyCallback

      public CopyBehaviourCallback getCopyCallback(QName classRef, CopyDetails copyDetails)
      Description copied from interface: CopyServicePolicies.OnCopyNodePolicy
      Called for all types and aspects before copying a node.
      Specified by:
      getCopyCallback in interface CopyServicePolicies.OnCopyNodePolicy
      Parameters:
      classRef - the type or aspect qualified name
      copyDetails - the details of the impending copy
      Returns:
      Returns CopyBehaviourCallback
      See Also: