org.alfresco.repo.copy
Class CopyBehaviourCallback.CopyChildAssociationDetails

java.lang.Object
  extended by org.alfresco.repo.copy.CopyBehaviourCallback.CopyChildAssociationDetails
Enclosing interface:
CopyBehaviourCallback

public static final class CopyBehaviourCallback.CopyChildAssociationDetails
extends java.lang.Object

A simple bean class to convey information to the callback methods dealing with copying of child associations.

Since:
3.2
See Also:
CopyBehaviourCallback#getChildAssociationCopyAction(QName, CopyDetails, ChildAssociationRef, NodeRef, boolean), CopyBehaviourCallback#getChildAssociationRecurseAction(QName, CopyDetails, ChildAssociationRef, boolean)

Constructor Summary
CopyBehaviourCallback.CopyChildAssociationDetails(ChildAssociationRef childAssocRef, NodeRef targetNodeRef, boolean targetNodeIsNew, boolean copyChildren)
           
 
Method Summary
 ChildAssociationRef getChildAssocRef()
           
 NodeRef getTargetNodeRef()
           
 boolean isCopyChildren()
          Get the current recursion behaviour.
 boolean isTargetNodeIsNew()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CopyBehaviourCallback.CopyChildAssociationDetails

public CopyBehaviourCallback.CopyChildAssociationDetails(ChildAssociationRef childAssocRef,
                                                         NodeRef targetNodeRef,
                                                         boolean targetNodeIsNew,
                                                         boolean copyChildren)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getChildAssocRef

public final ChildAssociationRef getChildAssocRef()
Returns:
Returns the association being examined

getTargetNodeRef

public final NodeRef getTargetNodeRef()
Returns:
Returns the target node that will be the new parent if the association is copied

isTargetNodeIsNew

public final boolean isTargetNodeIsNew()
Returns:
Returns true if the target node has been newly created by the copy process or false if it is a node that existed prior to the copy

isCopyChildren

public final boolean isCopyChildren()
Get the current recursion behaviour. This can be ignored and even altered, if required.

Returns:
Returns true if the copy process is currently recursing to child associations or false if not.


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