|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.esi.rnd.ResponseRendererImpl
com.ptc.windchill.esi.bom.BOMRendererImpl
This class is the default implementation of BOMRenderer.
Supported API: true
Extendable: true
Nested Class Summary | |
protected class |
BOMRendererImpl.BomDiffResult
|
protected class |
BOMRendererImpl.PreviousExportedIterationKey
|
private class |
BOMRendererImpl.WarningPart
|
Field Summary | |
private String |
adapterName
|
private HashSet |
allRenderedPartsSet
|
private boolean |
alternates
|
private String |
authentication
|
private static String |
BOM_COMPONENT_CLASS
|
private boolean |
bomPart
|
private static String |
CLASSNAME
|
private boolean |
componentParts
|
private String |
configspec
|
private boolean |
delta
|
private boolean |
documents
|
private ESIEffectivityHandler |
effectivityHandler
|
protected static boolean |
enforceOrgs
|
private TaskHelper |
helper
|
private boolean |
lineNumbers
|
private int |
multilevel
|
private String |
obid
|
private boolean |
referenceDesignators
|
protected static boolean |
requireChange
|
private static String |
RESOURCE
|
private WTPart |
rootPart
|
private static String |
SUBSTITUTE_CLASS
|
private boolean |
substitutes
|
private ESITargetUtility |
targetUtility
|
private Integer |
transactionID
|
private ESITransactionUtility |
transactionUtility
|
Fields inherited from class com.ptc.windchill.esi.rnd.ResponseRendererImpl |
XML_META_NAME |
Constructor Summary | |
BOMRendererImpl()
|
Method Summary | |
protected void |
addRenderedPart(WTPart part)
|
protected void |
addRenderedParts(Collection parts)
|
protected boolean |
buildBom(WTPart part)
|
protected boolean |
buildBOMHeaderOutput(WTPart part,
Collection diffResults)
|
protected void |
buildGroups()
Builds the renderer output. |
private void |
configspecValidate(String a_Configspec)
|
protected Collection[] |
convertEnumArrayToCollectionArray(Enumeration[] enumArray)
|
protected boolean |
doRenderAssemblyPart()
|
protected boolean |
doRenderComponentParts()
|
private void |
generateWarningReleaseActivity(WTPartMaster partMaster,
BOMRendererImpl.BomDiffResult bdr)
|
private void |
generateWarnings(BOMRendererImpl.BomDiffResult bdr)
|
protected String |
getAdapterName()
Gets the value of the attribute: adapterName; The name of the Windchill Adapter to use when obtaining information from Windchill. |
private Collection |
getAffectedParts(BOMRendererImpl.BomDiffResult bdr)
|
protected String |
getAuthentication()
Gets the value of the attribute: authentication; Authentication information to use when using the Windchill Adapter for obtaining information. |
protected Collection |
getBomUfids()
|
protected String |
getConfigspec()
Gets the value of the attribute: configspec; The Config Spec. |
protected int |
getMultilevel()
Gets the value of the attribute: multilevel; How many levels are we to traverse when extracting multi-level BOMs? Supported API: true |
private BOMTreeNavigator |
getNavigator()
|
protected String |
getObid()
Gets the value of the attribute: obid; The UFID of the Windchill assembly part to be rendered. |
protected Map |
getOrgPreviousExportIterationAssociations(WTPart part,
Collection orgs,
boolean delta)
|
protected WTPart |
getRootPart()
|
protected ESITargetUtility |
getTargetUtility()
|
protected Integer |
getTransactionID()
Gets the value of the attribute: transactionID; The number of an ESI transaction. |
protected ESITransactionUtility |
getTransactionUtility()
|
protected boolean |
isAlternates()
Gets the value of the attribute: alternates; If parts = true, should the output also include the alternates of the parts? Supported API: true |
protected boolean |
isBomPart()
Gets the value of the attribute: bomPart; Should a part be created for the BOM? Supported API: true |
protected boolean |
isComponentParts()
Gets the value of the attribute: componentParts; Should parts be created for the BOM's components? Supported API: true |
protected boolean |
isDelta()
Gets the value of the attribute: delta; Should the output contain only items that have changed since the last time an object was released? Supported API: true |
protected boolean |
isDocuments()
Gets the value of the attribute: documents; Are documents to be included in the output? Supported API: true |
protected boolean |
isLineNumbers()
Gets the value of the attribute: lineNumbers; Are line numbers to be included in the output? Supported API: true |
protected boolean |
isReferenceDesignators()
Gets the value of the attribute: referenceDesignators; Are reference designators to be included in the output? Supported API: true |
protected boolean |
isSubstitutes()
Gets the value of the attribute: substitutes; Are substitutes to be included in the output? Supported API: true |
void |
setConfigspec(String a_Configspec)
Sets the value of the attribute: configspec; The Config Spec. |
void |
setData(String obid,
boolean provideDelta,
boolean buildBOMPart,
boolean buildComponentParts,
boolean buildAlternates,
boolean buildSubs,
boolean buildRefDes,
boolean useLineNumbers,
String multiLevel,
boolean buildDocs,
String configSpec,
String auth,
String wcAdapter,
String transactionID)
Provide the data required to render a BOM. |
void |
setDocuments(boolean a_Documents)
Sets the value of the attribute: documents; Are documents to be included in the output? Supported API: true |
private void |
updateWarningCollection(HashMap hm,
WTPartMaster wtpm)
|
protected void |
validate()
Make sure that obid is not null. |
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 |
private static final String RESOURCE
private static final String CLASSNAME
private String obid
private boolean delta
private boolean bomPart
private boolean componentParts
private boolean alternates
private boolean substitutes
private boolean referenceDesignators
private boolean lineNumbers
private int multilevel
private boolean documents
private String configspec
private String authentication
private String adapterName
private Integer transactionID
private static final String BOM_COMPONENT_CLASS
private static final String SUBSTITUTE_CLASS
protected static boolean requireChange
protected static boolean enforceOrgs
private TaskHelper helper
private ESITargetUtility targetUtility
private ESITransactionUtility transactionUtility
private ESIEffectivityHandler effectivityHandler
private WTPart rootPart
private HashSet allRenderedPartsSet
Constructor Detail |
public BOMRendererImpl()
Method Detail |
protected String getObid()
protected boolean isDelta()
protected boolean isBomPart()
protected boolean isComponentParts()
protected boolean isAlternates()
protected boolean isSubstitutes()
protected boolean isReferenceDesignators()
protected boolean isLineNumbers()
protected int getMultilevel()
protected boolean isDocuments()
public void setDocuments(boolean a_Documents) throws WTPropertyVetoException
a_Documents
-
WTPropertyVetoException
protected String getConfigspec()
public void setConfigspec(String a_Configspec) throws WTPropertyVetoException
a_Configspec
-
WTPropertyVetoException
private void configspecValidate(String a_Configspec) throws WTPropertyVetoException
a_Configspec
-
WTPropertyVetoException
protected String getAuthentication()
protected String getAdapterName()
protected Integer getTransactionID()
public void setData(String obid, boolean provideDelta, boolean buildBOMPart, boolean buildComponentParts, boolean buildAlternates, boolean buildSubs, boolean buildRefDes, boolean useLineNumbers, String multiLevel, boolean buildDocs, String configSpec, String auth, String wcAdapter, String transactionID) throws WTException
setData
in interface BOMRenderer
obid
- The UFID of the Windchill assembly part to be rendered.provideDelta
- Should the output contain only items that have changed since the last time an object was released?buildBOMPart
- Should a part be created for the BOM?buildComponentParts
- Should parts be created for the BOM's components?buildAlternates
- If buildParts = true, should the output also include the alternates of the parts?buildSubs
- Are substitutes to be included in the output?buildRefDes
- Are reference designators to be included in the output?useLineNumbers
- Are line numbers to be included in the output?multiLevel
- How many levels are we to traverse when extracting multi-level BOMs?buildDocs
- Are documents to be included in the output?configSpec
- The Config Spec. value to use when navigating the BOM. See the Query-Tree Webject documentation for acceptable and default values.auth
- Authentication information to use when using the Windchill Adapter for obtaining information.wcAdapter
- The name of the Windchill Adapter to use when obtaining information from Windchill.transactionID
- The number of an ESI transaction.
WTException
protected void validate() throws ESIRendererException
validate
in class ResponseRendererImpl
ESIRendererException
protected void buildGroups() throws ESIRendererException
buildGroups
in class ResponseRendererImpl
ESIRendererException
protected void addRenderedPart(WTPart part)
protected void addRenderedParts(Collection parts)
protected WTPart getRootPart() throws WTException
WTException
protected Collection getBomUfids() throws WTException
WTException
private BOMTreeNavigator getNavigator() throws ESIRendererException
ESIRendererException
protected boolean buildBom(WTPart part) throws ESIRendererException
ESIRendererException
protected Map getOrgPreviousExportIterationAssociations(WTPart part, Collection orgs, boolean delta) throws WTException
WTException
protected boolean buildBOMHeaderOutput(WTPart part, Collection diffResults) throws ESIRendererException
ESIRendererException
protected Collection[] convertEnumArrayToCollectionArray(Enumeration[] enumArray)
protected ESITargetUtility getTargetUtility()
protected ESITransactionUtility getTransactionUtility()
protected boolean doRenderAssemblyPart()
protected boolean doRenderComponentParts()
private void generateWarnings(BOMRendererImpl.BomDiffResult bdr) throws WTException
WTException
private Collection getAffectedParts(BOMRendererImpl.BomDiffResult bdr) throws WTException
WTException
private void updateWarningCollection(HashMap hm, WTPartMaster wtpm)
private void generateWarningReleaseActivity(WTPartMaster partMaster, BOMRendererImpl.BomDiffResult bdr) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |