org.alfresco.repo.copy
Interface CopyServicePolicies.OnCopyCompletePolicy

All Superinterfaces:
ClassPolicy, Policy
All Known Implementing Classes:
ActionsAspect, ActionServiceImpl, DiscussableAspect, RulesAspect, TaggingServiceImpl
Enclosing interface:
CopyServicePolicies

public static interface CopyServicePolicies.OnCopyCompletePolicy
extends ClassPolicy

Final callback after the copy (including any cascading) has been completed. This should be used where post-copy manipulation of nodes is required in order to enforce adherence to a particular dictionary or business model.

The copy map contains all the nodes created during the copy, this helps to re-map any potentially relative associations.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg
 
Field Summary
static QName QNAME
           
 
Fields inherited from interface org.alfresco.repo.policy.Policy
NAMESPACE
 
Method Summary
 void onCopyComplete(QName classRef, NodeRef sourceNodeRef, NodeRef targetNodeRef, boolean copyToNewNode, java.util.Map copyMap)
           
 

Field Detail

QNAME

static final QName QNAME
Method Detail

onCopyComplete

void onCopyComplete(QName classRef,
                    NodeRef sourceNodeRef,
                    NodeRef targetNodeRef,
                    boolean copyToNewNode,
                    java.util.Map copyMap)
Parameters:
classRef - the type of the node that was copied
sourceNodeRef - the original node
targetNodeRef - the destination node
copyMap - a map containing all the nodes that have been created during the copy


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.