com.ptc.windchill.enterprise.copy.server
Class ContextUtility

java.lang.Object
  extended bycom.ptc.windchill.enterprise.copy.server.ContextUtility

public class ContextUtility
extends Object

Provides common methods for factories to select delegates based on what is installed or which container is being used.

Supported API: false

Extendable: false


Field Summary
static String CLASSIC
           
private static String CLASSNAME
           
static String PDMLINK
           
static String PROJECTLINK
           
private static String RESOURCE
           
 
Constructor Summary
ContextUtility()
           
 
Method Summary
static WTContainer getContainer(HashMap nameValueData)
          Retrieve the container string from a hashmap using either context or container as the key and then convert the string container value to a WTContainer.
static String getUIType(Persistable object)
          Retrieve the solution/container type that this object is or is in.
static String getUIType(WTContainer container)
          Retrieve the solution/container type that this object is.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

PDMLINK

public static final String PDMLINK
See Also:
Constant Field Values

CLASSIC

public static final String CLASSIC
See Also:
Constant Field Values

PROJECTLINK

public static final String PROJECTLINK
See Also:
Constant Field Values
Constructor Detail

ContextUtility

public ContextUtility()
Method Detail

getContainer

public static WTContainer getContainer(HashMap nameValueData)
                                throws WTException
Retrieve the container string from a hashmap using either context or container as the key and then convert the string container value to a WTContainer.

Supported API: false

Parameters:
nameValueData - The HashMap of the data from the UI.
Returns:
WTContainer
Throws:
WTException

getUIType

public static String getUIType(Persistable object)
                        throws WTException
Retrieve the solution/container type that this object is or is in. Is it PDMLink, ProjectLink, or Windchill PDM?

Supported API: false

Parameters:
object - May be the container or the contained, that is the best. Otherwise will use what is installed.
Returns:
String
Throws:
WTException

getUIType

public static String getUIType(WTContainer container)
                        throws WTException
Retrieve the solution/container type that this object is. Is it PDMLink, ProjectLink, or Windchill PDM?

Supported API: false

Parameters:
container - Must be the container the operation will take place in.
Returns:
String
Throws:
WTException