|
|||||||||||
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.esipart.ESIPartRenderer
Default implementation of PartRenderer.
Supported API: true
Extendable: true
Field Summary | |
protected static String |
ADDED_ALTERNATEGROUP_NAME
|
protected static String |
ADDEDGROUP_NAME
|
protected static String |
ALT_TASK_URI
|
private boolean |
alternatesRequired
|
private String |
auth
|
protected static String |
CHANGEDGROUP_NAME
|
private static String |
CLASSNAME
|
protected static String |
DELETED_ALTERNATEGROUP_NAME
|
protected static String |
DELETEDGROUP_NAME
|
private boolean |
documentsRequired
|
private boolean |
isBom
|
protected static Class |
PART_CLASS
|
protected static String |
PART_MAP
|
protected static Class |
PARTALTLINK_CLASS
|
private Collection |
parts
|
protected static String |
PARTUFID_GROUP_NAME
|
protected static boolean |
requireChange
|
private static String |
RESOURCE
|
private WTPart |
root
|
private ESITargetUtility |
targetUtility
|
protected static String |
TASK_URI
|
private TaskHelper |
taskHelper
|
private String |
transactionID
|
private ESITransactionUtility |
transactionUtility
|
protected static String |
UNCHANGEDGROUP_NAME
|
private ESIPartUtility |
utility
|
private String |
wcAdapter
|
Fields inherited from class com.ptc.windchill.esi.rnd.ResponseRendererImpl |
XML_META_NAME |
Fields inherited from interface com.ptc.windchill.esi.esipart.PartRenderer |
UTILITY |
Constructor Summary | |
ESIPartRenderer()
|
Method Summary | |
private void |
addAlternateToElement(String grpName,
Group grp,
Collection partTargetAssociation)
|
private void |
addPartToElement(String grpName,
Group grp,
Collection partTargetAssociation)
|
protected Element |
adjustAlternateElement(Element element,
String group,
WTPart part,
Collection targets)
Allow subclasses to fix the contents of an element. |
protected Element |
adjustPartElement(Element element,
String group,
WTPart part,
Eff eff,
Collection targets)
Allow subclasses to fix the contents of an element. |
protected void |
buildGroups()
Output generator for the class. |
protected Collection[] |
findChangedParts(Collection currAssoc,
Collection previousAssoc)
|
protected String |
getAuth()
Gets the value of the attribute: auth; Authentication information to pass to Windchill Adapter when executing query webjects. |
private Eff |
getLatestEffectivity(WTPart part)
|
protected Collection |
getParts()
Gets the value of the attribute: parts; The list of parts that are to be rendered. |
protected WTPart |
getRoot()
Gets the value of the attribute: root; The base part of a tree of product structures. |
protected String |
getTransactionID()
Gets the value of the attribute: transactionID; The idNumber attribute value of an ESITransaction that is to be associated with this renderer. |
ESIPartUtility |
getUtility()
Gets the object for the association that plays role: utility. |
protected String |
getWcAdapter()
Gets the value of the attribute: wcAdapter; The name of the Windchill Adapter where query object webjects are to execute. |
void |
initialize()
Perform any required initialization processing. |
protected boolean |
isAlternatesRequired()
Gets the value of the attribute: alternatesRequired; Should the renderer obtain the alternates to the parts that are to be rendered? Supported API: true |
protected boolean |
isDocumentsRequired()
Gets the value of the attribute: documentsRequired; Should the renderer call the document renderer? Supported API: true |
private Element |
mapAlternateElement(String grpName,
Element e,
WTPart part,
Collection targets)
|
private Element |
mapPartElement(String grpName,
Element e,
WTPart part,
Eff eff,
Collection targets)
|
void |
setData(WTPart root,
Collection parts,
boolean buildAlts,
boolean buildDocs,
String auth,
String wcAdapter,
String transactionID)
Establish the renderer's state so that it can process requests. |
void |
setMetaValues(Group group)
|
void |
setUtility(ESIPartUtility a_Utility)
Sets the object for the association that plays role: utility. |
private void |
utilityValidate(ESIPartUtility a_Utility)
|
protected void |
validate()
Make sure the object is ready to process. |
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 Collection parts
private WTPart root
private boolean alternatesRequired
private boolean documentsRequired
private String auth
private String wcAdapter
private String transactionID
private ESIPartUtility utility
protected static final boolean requireChange
protected static final Class PART_CLASS
protected static final Class PARTALTLINK_CLASS
protected static final String TASK_URI
protected static final String ALT_TASK_URI
protected static final String PARTUFID_GROUP_NAME
protected static final String PART_MAP
protected static final String ADDEDGROUP_NAME
protected static final String CHANGEDGROUP_NAME
protected static final String DELETEDGROUP_NAME
protected static final String UNCHANGEDGROUP_NAME
protected static final String ADDED_ALTERNATEGROUP_NAME
protected static final String DELETED_ALTERNATEGROUP_NAME
private boolean isBom
private TaskHelper taskHelper
private ESITargetUtility targetUtility
private ESITransactionUtility transactionUtility
Constructor Detail |
public ESIPartRenderer()
Method Detail |
protected Collection getParts()
protected WTPart getRoot()
protected boolean isAlternatesRequired()
protected boolean isDocumentsRequired()
protected String getAuth()
protected String getWcAdapter()
protected String getTransactionID()
protected void validate() throws ESIRendererException
validate
in class ResponseRendererImpl
ESIRendererException
protected void buildGroups() throws ESIRendererException
buildGroups
in class ResponseRendererImpl
ESIRendererException
protected Element adjustPartElement(Element element, String group, WTPart part, Eff eff, Collection targets) throws ESIRendererException
element
- group
- part
- eff
- May be null.targets
- Collection of ESITarget objects.
ESIRendererException
protected Element adjustAlternateElement(Element element, String group, WTPart part, Collection targets) throws ESIRendererException
element
- group
- part
- targets
- Collection of ESITarget objects.
ESIRendererException
public void setData(WTPart root, Collection parts, boolean buildAlts, boolean buildDocs, String auth, String wcAdapter, String transactionID)
setData
in interface PartRenderer
root
- The primary part to process. May not be null. If multiple parts are to be processed, the renderer will use the root as the base part for target determination.parts
- A collection of additional parts to process. May be empty.buildAlts
- Are alternates to be returned by the renderer?buildDocs
- Are documents associated with the part to be returned by the renderer?auth
- Info*Engine authorization for invoking a webject.wcAdapter
- Windchill adapter instance to run the webjecttransactionID
- Optional transaction ID to pass to the VDB builder.public void initialize()
initialize
in interface PartRenderer
public ESIPartUtility getUtility()
getUtility
in interface PartRenderer
public void setUtility(ESIPartUtility a_Utility) throws WTPropertyVetoException
setUtility
in interface PartRenderer
a_Utility
-
WTPropertyVetoException
private void utilityValidate(ESIPartUtility a_Utility) throws WTPropertyVetoException
a_Utility
-
WTPropertyVetoException
public void setMetaValues(Group group)
private void addPartToElement(String grpName, Group grp, Collection partTargetAssociation) throws ESIRendererException
ESIRendererException
protected Collection[] findChangedParts(Collection currAssoc, Collection previousAssoc) throws ESIRendererException
ESIRendererException
private void addAlternateToElement(String grpName, Group grp, Collection partTargetAssociation) throws ESIRendererException
ESIRendererException
private Element mapAlternateElement(String grpName, Element e, WTPart part, Collection targets) throws ESIRendererException
ESIRendererException
private Element mapPartElement(String grpName, Element e, WTPart part, Eff eff, Collection targets) throws ESIRendererException
ESIRendererException
private Eff getLatestEffectivity(WTPart part) throws ESIRendererException
ESIRendererException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |