Package org.alfresco.repo.node
Class ReferenceableAspect
- java.lang.Object
-
- org.alfresco.repo.node.ReferenceableAspect
-
- All Implemented Interfaces:
CopyServicePolicies.OnCopyNodePolicy,ClassPolicy,Policy
public class ReferenceableAspect extends java.lang.Object implements CopyServicePolicies.OnCopyNodePolicy
Registers and contains the behaviour specific to thereferencable aspect.- Author:
- Derek Hulley
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg
-
-
Constructor Summary
Constructors Constructor Description ReferenceableAspect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CopyBehaviourCallbackgetCopyCallback(org.alfresco.service.namespace.QName classRef, CopyDetails copyDetails)Called for all types and aspects before copying a node.voidinit()Initialise the Referencable AspectvoidsetPolicyComponent(PolicyComponent policyComponent)
-
-
-
Method Detail
-
setPolicyComponent
public void setPolicyComponent(PolicyComponent policyComponent)
- Parameters:
policyComponent- the policy component to register behaviour with
-
init
public void init()
Initialise the Referencable AspectEnsures that the
referencable aspectcopy behaviour is disabled.
-
getCopyCallback
public CopyBehaviourCallback getCopyCallback(org.alfresco.service.namespace.QName classRef, CopyDetails copyDetails)
Description copied from interface:CopyServicePolicies.OnCopyNodePolicyCalled for all types and aspects before copying a node.- Specified by:
getCopyCallbackin interfaceCopyServicePolicies.OnCopyNodePolicy- Parameters:
classRef- the type or aspect qualified namecopyDetails- the details of the impending copy- Returns:
- Returns
DoNothingCopyBehaviourCallback - See Also:
CopyServicePolicies
-
-