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 the
temporary aspect
.
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy |
Policy.Arg |
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemporaryAspect
public TemporaryAspect()
setPolicyComponent
public void setPolicyComponent(PolicyComponent policyComponent)
- Parameters:
policyComponent
- the policy component to register behaviour with
init
public void init()
- Initialise the Temporary Aspect
Ensures that the temporary aspect
copy behaviour is disabled when update copies are performed.
getCopyCallback
public CopyBehaviourCallback getCopyCallback(org.alfresco.service.namespace.QName classRef,
CopyDetails copyDetails)
- The
sys:temporary
aspect is only copied
if the copy is clean i.e. not to an existing node.
- Specified by:
getCopyCallback
in interface CopyServicePolicies.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
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.