public class TemporaryAspect extends java.lang.Object implements CopyServicePolicies.OnCopyNodePolicy
temporary aspect.Policy.ArgARG_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.OnCopyNodePolicyclassRef - the type or aspect qualified namecopyDetails - the details of the impending copyCopyServicePoliciespublic 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 - 2010 Alfresco Software, Inc. All Rights Reserved.