Package org.alfresco.repo.node
Class TemporaryAspect
- java.lang.Object
-
- org.alfresco.repo.node.TemporaryAspect
-
- All Implemented Interfaces:
CopyServicePolicies.OnCopyNodePolicy,ClassPolicy,Policy
public class TemporaryAspect extends java.lang.Object implements CopyServicePolicies.OnCopyNodePolicy
Registers and contains the behaviour specific to thetemporary aspect.- Author:
- gavinc
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg
-
-
Constructor Summary
Constructors Constructor Description TemporaryAspect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CopyBehaviourCallbackgetCopyCallback(org.alfresco.service.namespace.QName classRef, CopyDetails copyDetails)Thesys:temporaryaspect is only copied if the copy is clean i.e.voidinit()Initialise the Temporary AspectvoidonCopyNode(org.alfresco.service.namespace.QName classRef, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.StoreRef destinationStoreRef, boolean copyToNewNode, PolicyScope copyDetails)Does nothingvoidsetPolicyComponent(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 Temporary AspectEnsures that the
temporary aspectcopy behaviour is disabled when update copies are performed.
-
getCopyCallback
public CopyBehaviourCallback getCopyCallback(org.alfresco.service.namespace.QName classRef, CopyDetails copyDetails)
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:
CopyServicePolicies
-
onCopyNode
public void onCopyNode(org.alfresco.service.namespace.QName classRef, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.StoreRef destinationStoreRef, boolean copyToNewNode, PolicyScope copyDetails)Does nothing
-
-