Class ESIOperationToPartLinkNewRenderer
java.lang.Object
com.ptc.windchill.esi.rnd.BasicESIRenderer
com.ptc.windchill.esi.mpml.processplan.operation.ESIOperationToPartLinkNewRenderer
- All Implemented Interfaces:
ESIRenderer
This class renders the output of
Supported API: true
Extendable: true
MPMOperationToPartLink (i.e. <OprBomAllocatedPart>
</OprBomAllocatedPart>) in ESI response.
This is new renderer for MPMOperationToPartLink
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 TypeMethodDescriptionprotected com.infoengine.object.factory.ElementadjustElement(com.infoengine.object.factory.Element elem, String group, MPMOperationToPartLink operationToPartLink, Collection<ESITarget> targets) Allows subclasses to fix the contents of the input I*E Element before it is added to the output group(s).voidPopulates the associated VdbBuilder instance with the response data for operation to part Links.voidsetData(Collection<ESITargetAssociation> tgtAssociations, Collection<MPMOperationToPartLink>[] operationToPartLinks, Map<MPMOperationToPartLink, com.ptc.windchill.esi.mpml.OperationToPartLinkInfo> linkToInfo, String auth, String apadter) Set data mention in argument on the renderer before it is called.protected voidvalidate()Force all subclasses to implement the method.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
-
buildGroups
Populates the associated VdbBuilder instance with the response data for operation to part Links. It creates a collection of all the added, changed and unchanged links which is further processed by the ESIOperationRenderer.- Calls adjustObjectID().
- Calls adjustTargets().
Supported API: true- Specified by:
buildGroupsin classBasicESIRenderer- Throws:
ESIRendererException- if any exception thrown by an ESIRenderer.
-
adjustElement
protected com.infoengine.object.factory.Element adjustElement(com.infoengine.object.factory.Element elem, String group, MPMOperationToPartLink operationToPartLink, Collection<ESITarget> targets) throws ESIRendererException Allows subclasses to fix the contents of the input I*E Element before it is added to the output group(s). Default behavior is to return the input Element itself.
Supported API: true- Parameters:
elem- - Input I*E Element to be updated.group- - Logical name of the group to which the Element will be added.operationToPartLink- - Operation to part link that is represented by the input Element.targets- - Collection of ESITarget objects.- Returns:
- Updated Element.
- Throws:
ESIRendererException
-
validate
Force all subclasses to implement the method. The concrete method is expected to examine the attributes of the object and throw an exception if they are not set properly.
Supported API: true- Specified by:
validatein classBasicESIRenderer
-
setData
public void setData(Collection<ESITargetAssociation> tgtAssociations, Collection<MPMOperationToPartLink>[] operationToPartLinks, Map<MPMOperationToPartLink, com.ptc.windchill.esi.mpml.OperationToPartLinkInfo> linkToInfo, String auth, String apadter) throws WTExceptionSet data mention in argument on the renderer before it is called.
Supported API: true- Parameters:
tgtAssociations- Collection ofESITargetAssociationoperationToPartLinks- Collection array[4] ofMPMOperationToPartLinklinkToInfo- Map ofMPMOperationToPartLinkvsOperationToPartLinkInfoauth- Authenticationapadter- Adapter- Throws:
WTException
-