|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.esi.rnd.BasicESIRenderer
com.ptc.windchill.esi.esidoc.ESIDocumentsRenderer
Supported API: true
Extendable: false
Nested Class Summary | |
private class |
ESIDocumentsRenderer.Delta
|
Fields inherited from class com.ptc.windchill.esi.rnd.BasicESIRenderer |
adapterName, PART_CLASS_NAME, XML_META_NAME |
Constructor Summary | |
ESIDocumentsRenderer()
|
Method Summary | |
protected Element |
adjustDocLinkElement(Element element,
String group,
ObjectToObjectLink documentLink,
Collection targets)
Allow subclasses to fix the contents of an element. |
protected Element |
adjustDocumentElement(Element element,
String group,
Document document,
Collection targets)
Allow subclasses to fix the contents of an element. |
private void |
buildDocument(PartDocInfo pdi,
Map docElements,
Collection targets,
String linkGroupName,
boolean deletedDocLink)
|
private Collection |
buildDocumentLink(int pdiType,
WTPart previous,
PartDocInfo pdi,
Map docLinkElements,
Hashtable docElements,
Collection targets)
|
protected void |
buildGroups()
Creates the Document output. |
private void |
buildGroups(WTPart current,
WTPart previous,
Collection targets)
|
private void |
buildUnchangedLink(PartDocInfo pdi,
WTPart previous,
Hashtable docElements,
Map docLinkElements,
Collection targets,
boolean unchangedPart)
|
private void |
buildUnchangedRefLink(PartDocInfo pdi,
Map docElements,
Map docLinkElements,
Collection targets,
boolean unchangedPart)
Add any revised documents that are identified by unchanged Reference links. |
private Collection |
createDeltas(HashMap map)
|
private String |
findLatestPublishedRefDoc(WTPartReferenceLink link,
ESITarget tgt)
|
private QueryResult |
getAllActivity(Iterated iterated)
|
protected String |
getAuth()
Gets the value of the attribute: auth; The authentication information to pass to the Windchill Adapter when executing a query-objects task. |
protected WTPart |
getCurrentPartIteration()
Gets the value of the attribute: currentPartIteration; The current iteration of the part associated with this document. |
private Hashtable |
getDocElements(Collection allDocs)
|
private Hashtable |
getDocLinkElements(Collection allDocLinks)
|
private Collection[] |
getDocumentDeltas(Document document,
Collection targets)
|
protected ESIDocUtility |
getDocUtility()
Gets the value of the attribute: docUtility; Reference to a ESIDocUtility. |
private Hashtable |
getElements(Collection objects,
Class objectType)
|
void |
getESIDoc(Collection previousParts,
Collection currentParts,
Collection targetOrgs,
String wcAdapter,
String authorization,
VdbBuilder builder)
match the previous parts with the current parts and call the document renderer once for each match. |
IeCollection |
getESIDoc(WTPart previousPart,
WTPart currentPart,
Collection targetOrgs,
String wcAdapter,
String authorization,
String transactionID)
Given the current and previous iteration of a part this method will call the DocumentRenderer and create the elements in VdbBuilder Supported API: true |
private Collection[] |
getPartDocInfo(WTPart current,
WTPart previous)
|
private Collection |
getPreviouslyReleased(Iterated iterated,
Collection targets)
|
protected WTPart |
getPreviousPartIteration()
Gets the value of the attribute: previousPartIteration; The last release iteration of the part associated with this document. |
private Collection |
getReleasedTargets(Persistable persistable,
ReleaseActivityAction action,
Collection targets)
|
protected Collection |
getTargets()
Gets the value of the attribute: targets; A collection ESITarget objects. |
protected TaskHelper |
getTaskHelper()
Gets the value of the attribute: taskHelper; Reference to a TaskHelper. |
protected ESITransactionUtility |
getTransactionUtility()
Gets the value of the attribute: transactionUtility; Reference to a ESITransactionUtility. |
private Collection |
getUnreleasedTargets(Persistable persistable,
ReleaseActivityAction action,
Collection targets)
|
protected String |
getWcAdapter()
Gets the value of the attribute: wcAdapter; The name of the Windchill Adapter where query-object tasks are to be executed. |
private Element |
mapDocument(String groupName,
Element e,
PartDocInfo pdi,
Collection targets,
Document previous)
|
private Element |
mapDocumentLink(String groupName,
Element e,
PartDocInfo pdi,
Collection targets)
|
private void |
processRefDoc(ESIRefLink refLink,
PartDocInfo pdi,
Map docElements,
Map docLinkElements)
|
void |
setData(WTPart currentPart,
WTPart previousPart,
Collection targetOrgs,
String wcAdapter,
String authorization)
Provide all necessary data to a DocumentRenderer. |
protected void |
validate()
Throws an exception if currentPart or targets attributes are null. |
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, setBuilder, setEffectivityHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private WTPart currentPartIteration
private WTPart previousPartIteration
private Collection targets
private String wcAdapter
private String auth
private TaskHelper taskHelper
private ESIDocUtility docUtility
private ESITransactionUtility transactionUtility
protected static final int PARTDOCINFO_ADDED
protected static final int PARTDOCINFO_DELETED
protected static final int PARTDOCINFO_UNCHANGED
protected static final String ADDEDDOCGROUP_NAME
protected static final String CHANGEDDOCGROUP_NAME
protected static final String UNCHANGEDDOCGROUP_NAME
protected static final String ADDED_DOCLINK_GROUP_NAME
protected static final String DELETED_DOCLINK_GROUP_NAME
protected static final Class DOC_CLASS
protected static final Class EPMDOC_CLASS
protected static final Class DOC_DESCLINK_CLASS
protected static final Class DOC_REFLINK_CLASS
protected static final Class EPMDOC_LINK_CLASS
protected static final Class EPM_BUILD_HISTORY_CLASS
protected static final String TASK_URI
protected static final ReleaseActivityAction RA_CREATE
protected static final ReleaseActivityAction RA_DELETE
Constructor Detail |
public ESIDocumentsRenderer()
Method Detail |
protected WTPart getCurrentPartIteration()
protected WTPart getPreviousPartIteration()
protected Collection getTargets()
protected String getWcAdapter()
protected String getAuth()
protected TaskHelper getTaskHelper()
protected ESIDocUtility getDocUtility()
protected ESITransactionUtility getTransactionUtility()
public void setData(WTPart currentPart, WTPart previousPart, Collection targetOrgs, String wcAdapter, String authorization)
currentPart
- Current part iterationpreviousPart
- previous part iteration.targetOrgs
- Contains the ESITargets that this document is being exported to.wcAdapter
- The name of the Windchill adapter where the query-object task will be executed.authorization
- The authorization for executing the query-object task.protected void validate() throws ESIRendererException
validate
in class BasicESIRenderer
ESIRendererException
protected void buildGroups() throws ESIRendererException
buildGroups
in class BasicESIRenderer
ESIRendererException
protected Element adjustDocumentElement(Element element, String group, Document document, Collection targets) throws ESIRendererException
element
- The element to be adjusted.group
- the logical group name of the VdbGroup that will contain the element.document
- The document object that is being processsedtargets
- Collection of ESITarget objects.
ESIRendererException
protected Element adjustDocLinkElement(Element element, String group, ObjectToObjectLink documentLink, Collection targets) throws ESIRendererException
element
- The element to be updated.group
- The logical group name. Used by the VdbBuilder to identify a VdbGroup.documentLink
- The object being mapped for output.targets
- Collection of ESITarget objects.
ESIRendererException
public IeCollection getESIDoc(WTPart previousPart, WTPart currentPart, Collection targetOrgs, String wcAdapter, String authorization, String transactionID) throws WTException
previousPart
- currentPart
- targetOrgs
- wcAdapter
- authorization
- transactionID
- The id of a transaction to be associated with the VDB builder created by this method.
WTException
public void getESIDoc(Collection previousParts, Collection currentParts, Collection targetOrgs, String wcAdapter, String authorization, VdbBuilder builder) throws WTException
previousParts
- currentParts
- targetOrgs
- wcAdapter
- authorization
- builder
-
WTException
private void buildGroups(WTPart current, WTPart previous, Collection targets) throws WTException
WTException
private void buildUnchangedLink(PartDocInfo pdi, WTPart previous, Hashtable docElements, Map docLinkElements, Collection targets, boolean unchangedPart) throws WTException
WTException
private void buildUnchangedRefLink(PartDocInfo pdi, Map docElements, Map docLinkElements, Collection targets, boolean unchangedPart) throws WTException
pdi
- The PartDocInfo that points to the link of interest.docElements
- The collection of Elements of the already mapped documents.docLinkElements
- The collection of mapped DocumentLink objects.targets
- The collection of targets of interest for this operation.
WTException
private void processRefDoc(ESIRefLink refLink, PartDocInfo pdi, Map docElements, Map docLinkElements) throws WTException
WTException
private String findLatestPublishedRefDoc(WTPartReferenceLink link, ESITarget tgt) throws WTException
WTException
private Collection buildDocumentLink(int pdiType, WTPart previous, PartDocInfo pdi, Map docLinkElements, Hashtable docElements, Collection targets) throws WTException
WTException
private void buildDocument(PartDocInfo pdi, Map docElements, Collection targets, String linkGroupName, boolean deletedDocLink) throws WTException
WTException
private Collection getPreviouslyReleased(Iterated iterated, Collection targets) throws WTException
WTException
private Collection[] getPartDocInfo(WTPart current, WTPart previous) throws WTException
WTException
private Hashtable getDocElements(Collection allDocs) throws WTException
WTException
private Hashtable getDocLinkElements(Collection allDocLinks) throws WTException
WTException
private Hashtable getElements(Collection objects, Class objectType) throws WTException
WTException
private Collection getUnreleasedTargets(Persistable persistable, ReleaseActivityAction action, Collection targets) throws WTException
WTException
private Collection getReleasedTargets(Persistable persistable, ReleaseActivityAction action, Collection targets) throws WTException
WTException
private Element mapDocument(String groupName, Element e, PartDocInfo pdi, Collection targets, Document previous) throws ESIRendererException
ESIRendererException
private Element mapDocumentLink(String groupName, Element e, PartDocInfo pdi, Collection targets) throws ESIRendererException
ESIRendererException
private Collection[] getDocumentDeltas(Document document, Collection targets) throws WTException
WTException
private Collection createDeltas(HashMap map)
private QueryResult getAllActivity(Iterated iterated) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |