Class ESIStandardProcedureLinkRenderer
java.lang.Object
com.ptc.windchill.esi.rnd.BasicESIRenderer
com.ptc.windchill.esi.mpml.processplan.ESIStandardProcedureLinkRenderer
- All Implemented Interfaces:
ESIRenderer
This class renders the output of
Supported API: true
Extendable: true
MPMStandardProcedureLink (i.e. <StandardProcedureLink>
</StandardProcedureLink>) in ESI response. Supported API: true
Extendable: true
-
Field Summary
Fields inherited from class com.ptc.windchill.esi.rnd.BasicESIRenderer
adapterName, authentication, currentTarget, DELIMITER, objectTypeDefs, OPTIONSVARIANTS_HELPER_CLASS_STRING, SEPARATOR, taskHelper, XML_META_NAME -
Method Summary
Modifier and TypeMethodDescriptioncom.infoengine.object.factory.ElementadjustElement(com.infoengine.object.factory.Element elem, String group, MPMStandardProcedureLink mpmStandardProcedureLink, Collection<ESITarget> targets) Allow subclasses to fix the contents of an element before it's added to the output group(s).protected voidPopulates the associated VdbBuilder instance with the response data for Standard Procedure Links.protected PersistableReturns the context object to be used for fetching the option set information.protected MPMOperationHoldergetRoot()Gets the value of the attribute: root.Returns the top level process plan.protected PersistableReturns the root object to be used for fetching option set information.protected Collection<ESITargetAssociation> Gets the value of the attribute: targetAssociations; A collection ESITargetAssociation objects.protected CollectionDeprecated.protected Collection<MPMStandardProcedureLink>[]Gets the value of the attribute: usageLinks.protected StringDeprecated.voidsetData(MPMOperationHolder root, MPMOperationHolder prevExportedRoot, Collection<MPMStandardProcedureLink>[] standardProcedureLinks, Collection<ESITargetAssociation> tgtAssocs, String auth, String wcAdapter, ViewReference defaultView) Initializes this renderer instance appropriately.voidsetOperationLabelToOperationInfoMap(TreeMap<String, OperationInfo> opLabelToOperationInfoMap) Sets the operation label to operation object information map.voidsetRootProcessPlan(MPMProcessPlan processPlan) Sets the top level process plan.protected voidvalidate()Throws an exception if the attribute root, targets or the Collection usageLinks is null or contains null objects.Methods inherited from class com.ptc.windchill.esi.rnd.BasicESIRenderer
addAtt, adjustConfigurableAndCollapsibleAtts, adjustDateEffCxt, adjustDateEffectivities, adjustEffectivities, adjustLotNumberEffCxt, adjustLotNumberEffectivities, adjustObjectID, adjustSerialNumberEffCxt, adjustSerialNumberEffectivities, adjustTargets, buildUfidString, evaluateBussinessRule, fetchLatestEffectivities, formatDateEffectivityElement, getAdapterName, getAssignedVariantSpec, getAssignedVariantSpec, getAUMRenderer, getAuth, getBuilder, getEffectivityElementMap, getEffectivityHandler, getEffectivityTargetAttributes, getElements, getERPMaterialAttributeList, getERPMaterialAttributeList, getERPMaterialTargetAttributes, getFormatedDate, getGroupInfo, getGroupInfo, getGroupInfo, getMap, getMap, getMapInfo, getMapInfo, getMapInfo, getNavigationFilter, getObjectTypeDefs, getPlantSpecificAttributeList, getPlantSpecificAttributeList, getPlantSpecificTargetAttributes, getPreviousObject, getPreviousPublishedEffectivity, getTargetsFromAssns, getTargetUtility, getTransactionUtility, getUnwantedAttributes, getVersionRefObjectRefMap, getWCAttributeList, getWCAttributeList, initEffectivityHandler, initializeElementForGroup, invokeQueryTask, invokeQueryTask, invokeQueryTask, invokeQueryTaskForObjects, isExpressionToBePublished, isGroupAvailable, isPublishAssocOptionSetFlagEnabled, mapDateEffectivities, mapEffectivities, mapEffectivityAttributes, mapEffectivityElement, mapEffectivityParentElement, mapElement, mapElement, mapElement, mapElementWithEffectivityAttrs, mapLotNumberEffectivities, mapObject, mapObject, mapSerialNumberEffectivities, mergeElements, overrideAttrValue, populateDateEffectivityInfo, populateEffectivityInfo, processBussinessRulesWithAnd, processBussinessRuleValidationResultSet, processNoMatchingVersionFound, removeAttributesNotRequired, removeUnwantedEffectivityAttributes, render, renderAssociatedSkinnyVariantSpec, renderAssociatedVariantSpec, renderAssocOptionSetLinks, renderAssocSkinnyVariantSpec, renderAssocVariantSpec, renderATONavigationFilter, renderChoiceRules, renderEffectivities, renderEffectivities, renderExpressions, renderOptionSets, renderRoleBObjectOfModuleVariantLink, setAttrValue, setAttrValue, setAttrValues, setBuilder, setCurrentTarget, setCurrentTarget, setCurrentTargetFromTgtAssocs, setEffectivityHandler, setObjectTypeDefs, setObjectTypeDefs, setObjectTypeDefsFromObj, setStartEndEffAttr, setTransactionUtility, shallPublishAssocOptionSet, shouldRenderEffectivityElementInPartElement, shouldUseOldEffectivityBehaviour, storeCurrentAndItsPreviousObject, storeCurrentAndItsPreviousObject
-
Method Details
-
getTargets
Deprecated.Gets the value of the attribute: targetAssociations; A collection ESITargetAssociation objects.- Returns:
- Collection
-
getTargetAssociations
Gets the value of the attribute: targetAssociations; A collection ESITargetAssociation objects.
Supported API: true- Returns:
- Collection
-
getUsageLinks
Gets the value of the attribute: usageLinks.
Supported API: true- Returns:
- Collection[]
-
getRoot
Gets the value of the attribute: root.
Supported API: true- Returns:
- MPMOperationHolder
-
getWcAdapter
Deprecated.Returns the value of the attribute adapterName. This attribute holds the name of the Windchill Adapter instance where the Query-Objects webject is to be executed.- Returns:
- The value stored in the field adapterName.
-
buildGroups
Populates the associated VdbBuilder instance with the response data for Standard Procedure Links. It creates a collection of all the added, changed and unchanged standard procedures which is further processed by the ESIProcessPlanRenderer.- Calls adjustObjectID().
- Calls adjustTargets().
- Calls adjustElement().
Supported API: true- Specified by:
buildGroupsin classBasicESIRenderer- Throws:
ESIRendererException- if any exception thrown by an ESIRenderer.
-
setData
public void setData(MPMOperationHolder root, MPMOperationHolder prevExportedRoot, Collection<MPMStandardProcedureLink>[] standardProcedureLinks, Collection<ESITargetAssociation> tgtAssocs, String auth, String wcAdapter, ViewReference defaultView) throws ESIRendererException Initializes this renderer instance appropriately.
Supported API: true- Parameters:
root- Process plan for which to render standard procedure links.prevExportedRoot- Previously exported operation holder (process plan/operation/sequence). Can be null.standardProcedureLinks- Array of collections of added, deleted, changed and unchanged standard procedure links.tgtAssocs- Collection of ESITargetAssociation objects.auth- I*E authentication information to use when executing a query task.wcAdapter- Windchill adapter instance name to use when executing a webject.defaultView- ViewReference object representing the Windchill view that the process plan resides in.- Throws:
ESIRendererException- if any of the invoked methods threw this exception.
-
adjustElement
public com.infoengine.object.factory.Element adjustElement(com.infoengine.object.factory.Element elem, String group, MPMStandardProcedureLink mpmStandardProcedureLink, Collection<ESITarget> targets) Allow subclasses to fix the contents of an element before it's added to the output group(s). Default behavior is to return the argument.
Supported API: true- Parameters:
elem- elementgroup- output groupmpmStandardProcedureLink- instance of MPMStandardProcedureLink.targets- Collection of ESITarget objects.- Returns:
- Element
-
validate
Throws an exception if the attribute root, targets or the Collection usageLinks is null or contains null objects.
Supported API: true- Specified by:
validatein classBasicESIRenderer- Throws:
ESIRendererException- , if any of the said instance members are null, or are invalid.
-
setRootProcessPlan
Sets the top level process plan.
Supported API: true- Parameters:
processPlan- - process plan which is the root of the process plan structure.
-
getRootProcessPlan
Returns the top level process plan.
Supported API: true- Returns:
- process plan which is the root of the process plan structure.
-
getRootToFetchOptionSetInfo
Returns the root object to be used for fetching option set information. This method is intended to be overridden by a customizer if they want to use a different root than the default one. By default, it returns the process plan obtained from the APIgetRootProcessPlan()if it is not null, and that returned fromgetRoot()otherwise. The renderer "com.ptc.windchill.esi.ov.ChoiceMappableChoiceLinkRenderer" uses this object to find the appropriate option set for the current standard procedure link being rendered. Check the java doc of this renderer for more information.
Supported API: true- Returns:
- the root object to be used for fetching option set information.
-
getContextToFetchOptionSetInfo
Returns the context object to be used for fetching the option set information. This method is intended to be overridden by a customizer if they want to use a different context than the default one. By default, it returns the process plan obtained from the APIgetRootProcessPlan()if it is not null, and that returned fromgetRoot()otherwise. The renderer "com.ptc.windchill.esi.ov.ChoiceMappableChoiceLinkRenderer" uses this object to render appropriate context information in the response. Check the java doc of this renderer for more information.
Supported API: true- Returns:
- the context object to be used for fetching the option set information.
-
setOperationLabelToOperationInfoMap
public void setOperationLabelToOperationInfoMap(TreeMap<String, OperationInfo> opLabelToOperationInfoMap) Sets the operation label to operation object information map. Which can be used to render the branching and returning operation for the standard procedure
Supported API: true- Parameters:
opLabelToOperationInfoMap- operation label to operation object information map.
-
getTargetAssociations()Supported API: true