com.ptc.windchill.esi.ecn
Class ESIWTChangeOrder2Renderer

java.lang.Object
  extended bycom.ptc.windchill.esi.rnd.BasicESIRenderer
      extended bycom.ptc.windchill.esi.ecn.ESIWTChangeOrder2Renderer
All Implemented Interfaces:
ESIRenderer, Serializable

public class ESIWTChangeOrder2Renderer
extends BasicESIRenderer
implements Serializable

This class renders the output of ECN, which includes ECN header , part and BOM.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private  boolean alternates
           
private  String auth
           
private  BOMUtility bomUtility
           
private static String CLASSNAME
           
private  boolean componentParts
           
private  String configSpec
           
private  boolean delta
           
private  boolean documents
           
private  boolean lineNumbers
           
private  String multiLevel
           
private  String objectID
           
private  ESIChangeOrgFinder orgFinder
           
private  boolean referenceDesignators
           
private static String RESOURCE
           
private  boolean substitutes
           
private  String transactionID
           
private  String wcAdapter
           
 
Fields inherited from class com.ptc.windchill.esi.rnd.BasicESIRenderer
adapterName, PART_CLASS_NAME, TASK_URI, XML_META_NAME
 
Constructor Summary
ESIWTChangeOrder2Renderer()
           
 
Method Summary
protected  void buildDetail(Collection parts)
           
protected  void buildGroups()
          Calls ESIChangeHeaderRenderer to create the ECN header group.
protected  void buildHeader(WTChangeOrder2 changeOrder, Collection targets)
           
protected  String getAuth()
          Gets the value of the attribute: auth; Authentication information for Info*Engine tasks.
protected static Collection getChangeableParts(WTChangeOrder2 changeOrder)
           
protected static WTChangeOrder2 getChangeOrderByUfid(String ufid)
           
protected  String getConfigSpec()
          Gets the value of the attribute: configSpec; The Config Spec.
 IeCollection getECN(String objectID, boolean delta, boolean componentParts, boolean alternates, boolean substitutes, boolean referenceDesignators, boolean lineNumbers, String mulitLevel, boolean documents, String configSpec, String auth, String wcAdapter, String transactionID)
          getECN RPC processor.
protected  String getMultiLevel()
          Gets the value of the attribute: multiLevel; The number of levels of BOM.
protected  String getObjectID()
          Gets the value of the attribute: objectID; The UFID of a WTChangeOrder 2.
protected  String getTransactionID()
          Gets the value of the attribute: transactionID; The number of the transaction to associate with the output from renderer.
protected  String getWcAdapter()
          Gets the value of the attribute: wcAdapter; The name of the Windchill adapter.
protected  boolean isAlternates()
          Gets the value of the attribute: alternates; When parts are exported, should the alternates of the parts (if any are defined) be exported?

Supported API: true
protected  boolean isComponentParts()
          Gets the value of the attribute: componentParts; When BOMs are exported, should parts be created for BOM components?

Supported API: true
protected  boolean isDelta()
          Gets the value of the attribute: delta; Should RPC responses contain only information that has changed since the last time objects were released?

Supported API: true
protected  boolean isDocuments()
          Gets the value of the attribute: documents; If "true", returns associated documents info, default is "false".
protected  boolean isLineNumbers()
          Gets the value of the attribute: lineNumbers; If "true", returns line numbers info, otherwise no line numbers info is returned.
protected static boolean isNullString(String s)
           
protected  boolean isReferenceDesignators()
          Gets the value of the attribute: referenceDesignators; If "true", returns Reference Designator data.
protected  boolean isSubstitutes()
          Gets the value of the attribute: substitutes; If "true", returns substitute data.
 void setBuilder(VdbBuilder a_Builder)
          Sets the value of the attribute: builder.
 void setData(String objectID, boolean delta, boolean componentParts, boolean alternates, boolean substitutes, boolean referenceDesignators, boolean lineNumbers, String mulitLevel, boolean documents, String configSpec, String auth, String wcAdapter, String transactionID)
          

Supported API: false
protected  void validate()
          Makes sure that WTChangeOrder2 is in proper state for release to ERP.
 
Methods inherited from class com.ptc.windchill.esi.rnd.BasicESIRenderer
adjustEffectivities, adjustObjectID, adjustTargets, buildUfidString, getAdapterName, getAttsFromMapFile, getBuilder, getEffectivityHandler, getGroupInfo, getMap, getMapInfo, getTargetsFromAssns, getWCAttributeList, invokeQueryTask, invokeQueryTask, invokeQueryTask, mapElement, mapObject, render, setEffectivityHandler
 
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

objectID

private String objectID

delta

private boolean delta

componentParts

private boolean componentParts

alternates

private boolean alternates

substitutes

private boolean substitutes

referenceDesignators

private boolean referenceDesignators

lineNumbers

private boolean lineNumbers

multiLevel

private String multiLevel

documents

private boolean documents

configSpec

private String configSpec

auth

private String auth

wcAdapter

private String wcAdapter

transactionID

private String transactionID

orgFinder

private ESIChangeOrgFinder orgFinder

bomUtility

private BOMUtility bomUtility
Constructor Detail

ESIWTChangeOrder2Renderer

public ESIWTChangeOrder2Renderer()
Method Detail

setBuilder

public void setBuilder(VdbBuilder a_Builder)
Sets the value of the attribute: builder.

Supported API: true

Overrides:
setBuilder in class BasicESIRenderer
Parameters:
a_Builder -

getObjectID

protected String getObjectID()
Gets the value of the attribute: objectID; The UFID of a WTChangeOrder 2.

Supported API: true

Returns:
String

isDelta

protected boolean isDelta()
Gets the value of the attribute: delta; Should RPC responses contain only information that has changed since the last time objects were released?

Supported API: true

Returns:
boolean

isComponentParts

protected boolean isComponentParts()
Gets the value of the attribute: componentParts; When BOMs are exported, should parts be created for BOM components?

Supported API: true

Returns:
boolean

isAlternates

protected boolean isAlternates()
Gets the value of the attribute: alternates; When parts are exported, should the alternates of the parts (if any are defined) be exported?

Supported API: true

Returns:
boolean

isSubstitutes

protected boolean isSubstitutes()
Gets the value of the attribute: substitutes; If "true", returns substitute data.

Supported API: true

Returns:
boolean

isReferenceDesignators

protected boolean isReferenceDesignators()
Gets the value of the attribute: referenceDesignators; If "true", returns Reference Designator data.

Supported API: true

Returns:
boolean

isLineNumbers

protected boolean isLineNumbers()
Gets the value of the attribute: lineNumbers; If "true", returns line numbers info, otherwise no line numbers info is returned.

Supported API: true

Returns:
boolean

getMultiLevel

protected String getMultiLevel()
Gets the value of the attribute: multiLevel; The number of levels of BOM.

Supported API: true

Returns:
String

isDocuments

protected boolean isDocuments()
Gets the value of the attribute: documents; If "true", returns associated documents info, default is "false".

Supported API: true

Returns:
boolean

getConfigSpec

protected String getConfigSpec()
Gets the value of the attribute: configSpec; The Config Spec. value to use when navigating BOMs. See the Query-Tree Webject documentation for acceptable and default values.

Supported API: true

Returns:
String

getAuth

protected String getAuth()
Gets the value of the attribute: auth; Authentication information for Info*Engine tasks.

Supported API: true

Returns:
String

getWcAdapter

protected String getWcAdapter()
Gets the value of the attribute: wcAdapter; The name of the Windchill adapter.

Supported API: true

Returns:
String

getTransactionID

protected String getTransactionID()
Gets the value of the attribute: transactionID; The number of the transaction to associate with the output from renderer.

Supported API: true

Returns:
String

validate

protected void validate()
                 throws ESIRendererException
Makes sure that WTChangeOrder2 is in proper state for release to ERP.

Supported API: true

Specified by:
validate in class BasicESIRenderer
Throws:
ESIRendererException

buildGroups

protected void buildGroups()
                    throws ESIRendererException
Calls ESIChangeHeaderRenderer to create the ECN header group. Calls ESIChangeEvaluator to determine whether change items are parts or BOMs. Calls ESIWTPartRenderer with the list of parts. Calls BOMRenderer recursively with BOMs.

Supported API: true

Specified by:
buildGroups in class BasicESIRenderer
Throws:
ESIRendererException

setData

public void setData(String objectID,
                    boolean delta,
                    boolean componentParts,
                    boolean alternates,
                    boolean substitutes,
                    boolean referenceDesignators,
                    boolean lineNumbers,
                    String mulitLevel,
                    boolean documents,
                    String configSpec,
                    String auth,
                    String wcAdapter,
                    String transactionID)


Supported API: false

Parameters:
objectID - The UFID of a WTChangeOrder 2.
delta - Should RPC responses contain only information that has changed since the last time objects were released?
componentParts - When BOMs are exported, should parts be created for BOM components?
alternates - When parts are exported, should the alternates of the parts (if any are defined) be exported?
substitutes - If "true", returns substitute data.
referenceDesignators - If "true", returns Reference Designator data.
lineNumbers - If "true", returns line numbers info, otherwise no line numbers info is returned.
mulitLevel - The number of levels of BOM.
documents - If "true", returns associated documents info, default is "false". Only operative if "Parts" = "true".
configSpec - The Config Spec. value to use when navigating BOMs. See the Query-Tree Webject documentation for acceptable and default values.
auth - Authentication information for Info*Engine tasks.
wcAdapter - The name of the Windchill adapter.
transactionID - The number of the transaction to associate with the output from renderer.

getECN

public IeCollection getECN(String objectID,
                           boolean delta,
                           boolean componentParts,
                           boolean alternates,
                           boolean substitutes,
                           boolean referenceDesignators,
                           boolean lineNumbers,
                           String mulitLevel,
                           boolean documents,
                           String configSpec,
                           String auth,
                           String wcAdapter,
                           String transactionID)
                    throws WTException
getECN RPC processor. Obtains a VdbBuilder from the VdbBuilder factory. Invokes the render() method on the renderer. Returns the result of VdbBuilder asVDB().

Supported API: true

Parameters:
objectID - The UFID of a WTChangeOrder2.
delta - If true, return only the objects that have changed since the last release of the changeables on the ECN.
componentParts - if true, invoke getPart for each BOM component.
alternates - If true, return the alternate parts for BOMs, parts and component parts.
substitutes - If "true", returns substitute data
referenceDesignators - If "true", returns Reference Designator data.
lineNumbers - If "true", returns line numbers info, no line numbers info otherwise.
mulitLevel - The number of levels of BOM, default is 1.
documents - If "true", returns associated documents info, default is "false".Only operative if "Parts" = "true".
configSpec - The Config Spec. value to use when navigating BOMs. See the Query-Tree Webject documentation for acceptable and default values.
auth - This parameter contains authentication information from I*E.
wcAdapter - This parameter contains the name of the Windchill adapter.
transactionID - The TransactionID for this ObjectID.
Returns:
IeCollection
Throws:
WTException

buildHeader

protected void buildHeader(WTChangeOrder2 changeOrder,
                           Collection targets)
                    throws WTException
Throws:
WTException

buildDetail

protected void buildDetail(Collection parts)
                    throws WTException,
                           WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

isNullString

protected static boolean isNullString(String s)

getChangeOrderByUfid

protected static WTChangeOrder2 getChangeOrderByUfid(String ufid)
                                              throws WTException
Throws:
WTException

getChangeableParts

protected static Collection getChangeableParts(WTChangeOrder2 changeOrder)
                                        throws WTException
Throws:
WTException