com.ptc.windchill.enterprise.annotation.commands
Class PasteAnnotationCommands

java.lang.Object
  extended by com.ptc.windchill.enterprise.change2.commands.PasteCommands
      extended by com.ptc.windchill.enterprise.annotation.commands.PasteAnnotationCommands
All Implemented Interfaces:
Serializable, RemoteAccess

public class PasteAnnotationCommands
extends PasteCommands

A class to paste changeables and changeItems from the Change Management tables.

Supported API: true

Extendable: true

See Also:
Serialized Form

Constructor Summary
PasteAnnotationCommands(NmCommandBean cb)
          Constructor to create a PasteAnnotationCommands class.
 
Method Summary
static FormResult paste(NmCommandBean cb)
          Handler method for the Paste functionality.
static FormResult paste(NmCommandBean cb, boolean isPasteSelect)
          Handler method for the Paste and Paste Select functionality.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasteAnnotationCommands

public PasteAnnotationCommands(NmCommandBean cb)
Constructor to create a PasteAnnotationCommands class.

Supported API: true

Parameters:
cb - The command bean to set on the class.
Method Detail

paste

public static FormResult paste(NmCommandBean cb)
                        throws WTException
Handler method for the Paste functionality. Will process the objects in clipboard and add the valid objects to the table. The FormResult will contain any feedback messages related to items that could not be handled.

Supported API: true

Parameters:
cb - The current command bean.
Returns:
FormResult The result status along with any feedback messages from the operation.
Throws:
WTException

paste

public static FormResult paste(NmCommandBean cb,
                               boolean isPasteSelect)
                        throws WTException
Handler method for the Paste and Paste Select functionality. Will process the items in clipboard or selected from the clipboard and add the valid objects to the table. The FormResult will contain any feedback messages related to items that could not be handled.

Supported API: true

Parameters:
cb - The current command bean.
isPasteSelect - True from paste select.
Returns:
FormResult The result status along with any feedback messages from the operation.
Throws:
WTException