com.ptc.windchill.esi.esipart
Class ESIDefaultConfigSpec

java.lang.Object
  extended bywt.part.WTPartStandardConfigSpec
      extended bycom.ptc.windchill.esi.esipart.ESIDefaultConfigSpec
All Implemented Interfaces:
ConfigSpec, Externalizable, NetFactor, ObjectMappable, Serializable

public class ESIDefaultConfigSpec
extends WTPartStandardConfigSpec

See Also:
Serialized Form

Field Summary
protected static ESIPropertyRequest CONFIGSPEC_STATE
           
 
Fields inherited from class wt.part.WTPartStandardConfigSpec
EXTERNALIZATION_VERSION_UID, LIFE_CYCLE_STATE, OLD_FORMAT_VERSION_UID, VIEW, WORKING_INCLUDED
 
Constructor Summary
ESIDefaultConfigSpec()
           
 
Method Summary
 WTPartStandardConfigSpec getConfigSpec(String rootViewName)
          This class uses the esi.properties file to get the view and state.
 
Methods inherited from class wt.part.WTPartStandardConfigSpec
appendSearchCriteria, getClassInfo, getConceptualClassname, getLifeCycleState, getView, initialize, initialize, isWorkingIncluded, newWTPartStandardConfigSpec, newWTPartStandardConfigSpec, process, readExternal, readExternal, readVersion, setLifeCycleState, setView, setWorkingIncluded, toString, writeExternal, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONFIGSPEC_STATE

protected static final ESIPropertyRequest CONFIGSPEC_STATE
Constructor Detail

ESIDefaultConfigSpec

public ESIDefaultConfigSpec()
Method Detail

getConfigSpec

public WTPartStandardConfigSpec getConfigSpec(String rootViewName)
                                       throws WTException,
                                              WTPropertyVetoException
This class uses the esi.properties file to get the view and state. If the view property is null or empty string then it will return the latest iteration of a part not associated to a view. If a invalid view property is set then it display a error message stating that couldn't find that view. For state, if the property is missing then the default RELEASE state is used. If the value is specified in the properties then that state is used to retrieve the part iteration. If state property has a empty string then a exception is thrown.

Throws:
WTException
WTPropertyVetoException