com.ptc.netmarkets.model
Class NmPasteInfo

java.lang.Object
  extended bycom.ptc.netmarkets.model.NmPasteInfo
All Implemented Interfaces:
Externalizable, Serializable

public class NmPasteInfo
extends Object
implements Externalizable

This class is a helper data model to drive the paste wizard. It will contain info to determine which options are available and which wizard to use.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private  boolean allowCopy
           
private  boolean allowLinks
           
private  boolean allowShare
           
private static String CLASSNAME
           
private  boolean doCopy
           
private  boolean doCreateLinks
           
private  boolean doCut
           
private  boolean doShare
           
static long EXTERNALIZATION_VERSION_UID
           
private  boolean multipleSourceContainers
           
private  ArrayList objects
           
protected static long OLD_FORMAT_VERSION_UID
           
private  boolean projectDestination
           
private static String RESOURCE
           
private  boolean sandbox
           
(package private) static long serialVersionUID
           
private  boolean showTypes
           
 
Constructor Summary
NmPasteInfo()
           
 
Method Summary
 ArrayList getObjects()
          Gets the value of the attribute: objects.
 boolean isAllowCopy()
          Gets the value of the attribute: allowCopy.
 boolean isAllowLinks()
          Gets the value of the attribute: allowLinks.
 boolean isAllowShare()
          Gets the value of the attribute: allowShare.
 boolean isDoCopy()
          Gets the value of the attribute: doCopy; Tells the ui to execute the copy code without displaying the ui and/or skip the first step in the wizard to pick the type of paste..
 boolean isDoCreateLinks()
          Gets the value of the attribute: doCreateLinks; Tells the ui to execute the create links code or skip the first step of the wizard to pick type.
 boolean isDoCut()
          Gets the value of the attribute: doCut; Tells the ui to execute the cut code.
 boolean isDoShare()
          Gets the value of the attribute: doShare; Tells the ui to execute the share code or skip the first step of the wizard to pick type.
 boolean isMultipleSourceContainers()
          Gets the value of the attribute: multipleSourceContainers.
 boolean isProjectDestination()
          Gets the value of the attribute: projectDestination; Tells the ui if the destination container is a project, helps determine if it's a sandbox scenario and what types will be available.
 boolean isSandbox()
          Gets the value of the attribute: sandbox.
 boolean isShowTypes()
          Gets the value of the attribute: showTypes; Tells the ui to show the pick types page or not.
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(NmPasteInfo thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setAllowCopy(boolean a_AllowCopy)
          Sets the value of the attribute: allowCopy.
 void setAllowLinks(boolean a_AllowLinks)
          Sets the value of the attribute: allowLinks.
 void setAllowShare(boolean a_AllowShare)
          Sets the value of the attribute: allowShare.
 void setDoCopy(boolean a_DoCopy)
          Sets the value of the attribute: doCopy; Tells the ui to execute the copy code without displaying the ui and/or skip the first step in the wizard to pick the type of paste..
 void setDoCreateLinks(boolean a_DoCreateLinks)
          Sets the value of the attribute: doCreateLinks; Tells the ui to execute the create links code or skip the first step of the wizard to pick type.
 void setDoCut(boolean a_DoCut)
          Sets the value of the attribute: doCut; Tells the ui to execute the cut code.
 void setDoShare(boolean a_DoShare)
          Sets the value of the attribute: doShare; Tells the ui to execute the share code or skip the first step of the wizard to pick type.
 void setMultipleSourceContainers(boolean a_MultipleSourceContainers)
          Sets the value of the attribute: multipleSourceContainers.
 void setObjects(ArrayList a_Objects)
          Sets the value of the attribute: objects.
 void setProjectDestination(boolean a_ProjectDestination)
          Sets the value of the attribute: projectDestination; Tells the ui if the destination container is a project, helps determine if it's a sandbox scenario and what types will be available.
 void setSandbox(boolean a_Sandbox)
          Sets the value of the attribute: sandbox.
 void setShowTypes(boolean a_ShowTypes)
          Sets the value of the attribute: showTypes; Tells the ui to show the pick types page or not.
 String toString()
           
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

allowShare

private boolean allowShare

allowLinks

private boolean allowLinks

allowCopy

private boolean allowCopy

doCut

private boolean doCut

doCopy

private boolean doCopy

doCreateLinks

private boolean doCreateLinks

sandbox

private boolean sandbox

multipleSourceContainers

private boolean multipleSourceContainers

objects

private ArrayList objects

doShare

private boolean doShare

showTypes

private boolean showTypes

projectDestination

private boolean projectDestination

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values
Constructor Detail

NmPasteInfo

public NmPasteInfo()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(NmPasteInfo thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

isAllowShare

public boolean isAllowShare()
Gets the value of the attribute: allowShare.

Supported API: false

Returns:
boolean

setAllowShare

public void setAllowShare(boolean a_AllowShare)
Sets the value of the attribute: allowShare.

Supported API: false

Parameters:
a_AllowShare -

isAllowLinks

public boolean isAllowLinks()
Gets the value of the attribute: allowLinks.

Supported API: false

Returns:
boolean

setAllowLinks

public void setAllowLinks(boolean a_AllowLinks)
Sets the value of the attribute: allowLinks.

Supported API: false

Parameters:
a_AllowLinks -

isAllowCopy

public boolean isAllowCopy()
Gets the value of the attribute: allowCopy.

Supported API: false

Returns:
boolean

setAllowCopy

public void setAllowCopy(boolean a_AllowCopy)
Sets the value of the attribute: allowCopy.

Supported API: false

Parameters:
a_AllowCopy -

isDoCut

public boolean isDoCut()
Gets the value of the attribute: doCut; Tells the ui to execute the cut code.

Supported API: false

Returns:
boolean

setDoCut

public void setDoCut(boolean a_DoCut)
Sets the value of the attribute: doCut; Tells the ui to execute the cut code.

Supported API: false

Parameters:
a_DoCut -

isDoCopy

public boolean isDoCopy()
Gets the value of the attribute: doCopy; Tells the ui to execute the copy code without displaying the ui and/or skip the first step in the wizard to pick the type of paste..

Supported API: false

Returns:
boolean

setDoCopy

public void setDoCopy(boolean a_DoCopy)
Sets the value of the attribute: doCopy; Tells the ui to execute the copy code without displaying the ui and/or skip the first step in the wizard to pick the type of paste..

Supported API: false

Parameters:
a_DoCopy -

isDoCreateLinks

public boolean isDoCreateLinks()
Gets the value of the attribute: doCreateLinks; Tells the ui to execute the create links code or skip the first step of the wizard to pick type.

Supported API: false

Returns:
boolean

setDoCreateLinks

public void setDoCreateLinks(boolean a_DoCreateLinks)
Sets the value of the attribute: doCreateLinks; Tells the ui to execute the create links code or skip the first step of the wizard to pick type.

Supported API: false

Parameters:
a_DoCreateLinks -

isSandbox

public boolean isSandbox()
Gets the value of the attribute: sandbox.

Supported API: false

Returns:
boolean

setSandbox

public void setSandbox(boolean a_Sandbox)
Sets the value of the attribute: sandbox.

Supported API: false

Parameters:
a_Sandbox -

isMultipleSourceContainers

public boolean isMultipleSourceContainers()
Gets the value of the attribute: multipleSourceContainers.

Supported API: false

Returns:
boolean

setMultipleSourceContainers

public void setMultipleSourceContainers(boolean a_MultipleSourceContainers)
Sets the value of the attribute: multipleSourceContainers.

Supported API: false

Parameters:
a_MultipleSourceContainers -

getObjects

public ArrayList getObjects()
Gets the value of the attribute: objects.

Supported API: false

Returns:
ArrayList

setObjects

public void setObjects(ArrayList a_Objects)
                throws WTPropertyVetoException
Sets the value of the attribute: objects.

Supported API: false

Parameters:
a_Objects -
Throws:
WTPropertyVetoException

isDoShare

public boolean isDoShare()
Gets the value of the attribute: doShare; Tells the ui to execute the share code or skip the first step of the wizard to pick type.

Supported API: false

Returns:
boolean

setDoShare

public void setDoShare(boolean a_DoShare)
Sets the value of the attribute: doShare; Tells the ui to execute the share code or skip the first step of the wizard to pick type.

Supported API: false

Parameters:
a_DoShare -

isShowTypes

public boolean isShowTypes()
Gets the value of the attribute: showTypes; Tells the ui to show the pick types page or not.

Supported API: false

Returns:
boolean

setShowTypes

public void setShowTypes(boolean a_ShowTypes)
Sets the value of the attribute: showTypes; Tells the ui to show the pick types page or not.

Supported API: false

Parameters:
a_ShowTypes -

isProjectDestination

public boolean isProjectDestination()
Gets the value of the attribute: projectDestination; Tells the ui if the destination container is a project, helps determine if it's a sandbox scenario and what types will be available.

Supported API: false

Returns:
boolean

setProjectDestination

public void setProjectDestination(boolean a_ProjectDestination)
Sets the value of the attribute: projectDestination; Tells the ui if the destination container is a project, helps determine if it's a sandbox scenario and what types will be available.

Supported API: false

Parameters:
a_ProjectDestination -

toString

public String toString()