wt.enterprise
Class CopyVersionToVersionLinkDelegate

java.lang.Object
  extended by wt.enterprise.CopyVersionToVersionLinkDelegate
All Implemented Interfaces:
Externalizable, Serializable, CopyBinaryLinkDelegate

public class CopyVersionToVersionLinkDelegate
extends Object
implements CopyBinaryLinkDelegate, Externalizable

Delegate for version to version link copies.

Supported API: true

Extendable: false

See Also:
Serialized Form

Method Summary
 BinaryLink copyRelationship(WTObject original, WTObject copy, BinaryLink link, String role)
          Copy the relationship from the original object to the new object, returning the newly created BinaryLink.
 BinaryLink copyRelationship(WTObject original, WTObject copyA, WTObject copyB, BinaryLink link, String role)
          Copy the relationship from the original object to the new object, returning the newly created BinaryLink.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyRelationship

public BinaryLink copyRelationship(WTObject original,
                                   WTObject copy,
                                   BinaryLink link,
                                   String role)
                            throws WTException
Copy the relationship from the original object to the new object, returning the newly created BinaryLink.

Supported API: true

Specified by:
copyRelationship in interface CopyBinaryLinkDelegate
Parameters:
original - Original object that was copied.
copy - New copy of the original object.
link - The link from the original that needs to be copied.
role - Designates which role to copy to the new object. For example orig uses part a would be copied to new uses part b if the role is uses.
Returns:
BinaryLink
Throws:
WTException

copyRelationship

public BinaryLink copyRelationship(WTObject original,
                                   WTObject copyA,
                                   WTObject copyB,
                                   BinaryLink link,
                                   String role)
                            throws WTException
Copy the relationship from the original object to the new object, returning the newly created BinaryLink.

Supported API: true

Specified by:
copyRelationship in interface CopyBinaryLinkDelegate
Parameters:
original - Original object that was copied.
copyA - New copy of the original object.
copyB - Multi-copy object related to original.
link - The link from the original that needs to be copied.
role - Designates which role to copy to the new object. For example orig uses part a would be copied to new uses part b if the role is uses.
Returns:
BinaryLink
Throws:
WTException