public class TemporaryAspect extends Object implements CopyServicePolicies.OnCopyNodePolicy
temporary aspect
.Policy.Arg
ARG_0, ARG_1, QNAME
Constructor and Description |
---|
TemporaryAspect() |
Modifier and Type | Method and Description |
---|---|
CopyBehaviourCallback |
getCopyCallback(org.alfresco.service.namespace.QName classRef,
CopyDetails copyDetails)
The
sys:temporary aspect is only copied
if the copy is clean i.e. |
void |
init()
Initialise the Temporary Aspect
|
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
|
void |
setPolicyComponent(PolicyComponent policyComponent) |
public void setPolicyComponent(PolicyComponent policyComponent)
policyComponent
- the policy component to register behaviour withpublic void init()
Ensures that the temporary aspect
copy behaviour is disabled when update copies are performed.
public CopyBehaviourCallback getCopyCallback(org.alfresco.service.namespace.QName classRef, CopyDetails copyDetails)
sys:temporary
aspect is only copied
if the copy is clean i.e. not to an existing node.getCopyCallback
in interface CopyServicePolicies.OnCopyNodePolicy
classRef
- the type or aspect qualified namecopyDetails
- the details of the impending copyCopyServicePolicies
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)
Copyright © 2005–2017 Alfresco Software. All rights reserved.