com.ptc.windchill.esi.ecn
Class ESIChangeOrder2Renderer

java.lang.Object
  extended bycom.ptc.windchill.esi.rnd.ResponseRendererImpl
      extended bycom.ptc.windchill.esi.ecn.ESIChangeOrder2Renderer
All Implemented Interfaces:
ChangeOrder2Renderer, ResponseRenderer

public class ESIChangeOrder2Renderer
extends ResponseRendererImpl
implements ChangeOrder2Renderer

Manages the generation of an ECN. This is the default implementation of ChangeOrder2Renderer.

Supported API: true

Extendable: true


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  ESIPartUtility partUtility
           
private  boolean referenceDesignators
           
private static String RESOURCE
           
private  boolean substitutes
           
private  String transactionID
           
private  ESITransactionUtility txnUtility
           
private  String wcAdapter
           
 
Fields inherited from class com.ptc.windchill.esi.rnd.ResponseRendererImpl
XML_META_NAME
 
Constructor Summary
ESIChangeOrder2Renderer()
           
 
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.
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 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)
          Provide the data required for the renderer to operate properly.
protected  void validate()
          Makes sure that WTChangeOrder2 is in proper state for release to ERP.
 
Methods inherited from class com.ptc.windchill.esi.rnd.ResponseRendererImpl
adjustEffectivities, adjustObjectID, adjustTargets, buildUfidString, getAttsFromMapFile, getBuilder, getEffectivityHandler, getGroupInfo, getMap, getMapInfo, getTargetsFromAssns, invokeQueryTask, logException, mapElement, mapObject, render, setBuilder, setEffectivityHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ptc.windchill.esi.rnd.ResponseRenderer
render
 

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

txnUtility

private ESITransactionUtility txnUtility

partUtility

private ESIPartUtility partUtility

bomUtility

private BOMUtility bomUtility
Constructor Detail

ESIChangeOrder2Renderer

public ESIChangeOrder2Renderer()
Method Detail

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 ResponseRendererImpl
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 ResponseRendererImpl
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)
             throws ESIRendererException
Provide the data required for the renderer to operate properly.

Supported API: true

Specified by:
setData in interface ChangeOrder2Renderer
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.
Throws:
ESIRendererException

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