Package org.alfresco.repo.node
Class TemporaryAspect
java.lang.Object
org.alfresco.repo.node.TemporaryAspect
- All Implemented Interfaces:
CopyServicePolicies.OnCopyNodePolicy,ClassPolicy,Policy
Registers and contains the behaviour specific to the
temporary aspect.- Author:
- gavinc
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCopyCallback(QName classRef, CopyDetails copyDetails) Thesys:temporaryaspect is only copied if the copy is clean i.e. not to an existing node.voidinit()Initialise the Temporary AspectvoidonCopyNode(QName classRef, NodeRef sourceNodeRef, StoreRef destinationStoreRef, boolean copyToNewNode, PolicyScope copyDetails) Does nothingvoidsetPolicyComponent(PolicyComponent policyComponent)
-
Constructor Details
-
TemporaryAspect
public TemporaryAspect()
-
-
Method Details
-
setPolicyComponent
- Parameters:
policyComponent- the policy component to register behaviour with
-
init
public void init()Initialise the Temporary AspectEnsures that the
temporary aspectcopy behaviour is disabled when update copies are performed. -
getCopyCallback
Thesys:temporaryaspect is only copied if the copy is clean i.e. not to an existing node.- Specified by:
getCopyCallbackin interfaceCopyServicePolicies.OnCopyNodePolicy- Parameters:
classRef- the type or aspect qualified namecopyDetails- the details of the impending copy- Returns:
- Return the callback that will be used to modify the copy behaviour for this dictionary class. Return null to assume the default.
- See Also:
-
onCopyNode
public void onCopyNode(QName classRef, NodeRef sourceNodeRef, StoreRef destinationStoreRef, boolean copyToNewNode, PolicyScope copyDetails) Does nothing
-