org.alfresco.repo.forum
Class CommentsRollupAspect

java.lang.Object
  extended by org.alfresco.repo.forum.CommentsRollupAspect
All Implemented Interfaces:
CopyServicePolicies.OnCopyNodePolicy, ClassPolicy, Policy

public class CommentsRollupAspect
extends java.lang.Object
implements CopyServicePolicies.OnCopyNodePolicy

comments rollup aspect behaviour bean. This aspect should not be copied.

Since:
4.0
See Also:
for a {@link ForumModel#ASPECT_COMMENTS_ROLLUP}-related behaviour, which handles comment count recalculations.

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg
 
Field Summary
 
Fields inherited from interface org.alfresco.repo.copy.CopyServicePolicies.OnCopyNodePolicy
ARG_0, ARG_1, QNAME
 
Fields inherited from interface org.alfresco.repo.policy.Policy
NAMESPACE
 
Constructor Summary
CommentsRollupAspect()
           
 
Method Summary
 CopyBehaviourCallback getCopyCallback(org.alfresco.service.namespace.QName classRef, CopyDetails copyDetails)
          Called for all types and aspects before copying a node.
 void init()
          Initialise method
 void setPolicyComponent(PolicyComponent policyComponent)
          Set the policy component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentsRollupAspect

public CommentsRollupAspect()
Method Detail

setPolicyComponent

public void setPolicyComponent(PolicyComponent policyComponent)
Set the policy component

Parameters:
policyComponent - policy component

init

public void init()
Initialise method


getCopyCallback

public CopyBehaviourCallback getCopyCallback(org.alfresco.service.namespace.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 CommentsRollupAspectCopyBehaviourCallback
See Also:
CopyServicePolicies


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