org.alfresco.repo.node
Class TemporaryAspect

java.lang.Object
  extended by 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 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
 
Fields inherited from interface org.alfresco.repo.policy.Policy
NAMESPACE
 
Constructor Summary
TemporaryAspect()
           
 
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
 

Constructor Detail

TemporaryAspect

public TemporaryAspect()
Method Detail

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 name
copyDetails - 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.