Class ESIResourceUsageLinkRenderer
java.lang.Object
com.ptc.windchill.esi.rnd.BasicESIRenderer
com.ptc.windchill.esi.bom.ESIBOMSubordinateRenderer
com.ptc.windchill.esi.bom.ESIBOMComponentRenderer
com.ptc.windchill.esi.mpml.resource.ESIResourceUsageLinkRenderer
- All Implemented Interfaces:
ESIRenderer
Renders the output of
Supported API: true
Extendable: true
WTPartUsageLink (i.e. <ResourceUsageLink> </ResourceUsageLink>) in ESI
DataResponse.
Supported API: true
Extendable: true
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ptc.windchill.esi.bom.ESIBOMComponentRenderer
ESIBOMComponentRenderer.AdjustActions -
Field Summary
Fields inherited from class com.ptc.windchill.esi.bom.ESIBOMComponentRenderer
ADDED_BOM_COMPONENTS, CHANGED_BOM_COMPONENTS, DELETED_BOM_COMPONENTS, NULL_STRING, PART_USAGE_CLASS, RAW_MATERIAL_CLASS, UNCHANGED_BOM_COMPONENTS, VERSION_OBJECT_LINK_CLASS, wcAttListFields inherited from class com.ptc.windchill.esi.bom.ESIBOMSubordinateRenderer
currToPrevUsageLinks, delParts, part, partUsageLinksWithSubstitutes, partUsagesToTargetAssocsMap, renderedParts, rmDelParts, root, targetAssociationsFields 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 groupName, WTPartUsageLink usageLink, MPMPlantOwned plantOwnedObj, MPMResource resource, WTPart roleBResource, Collection<ESITarget> targets) Allow subclasses to fix the contents of an element before it's added to the output group(s).protected booleangetter for enforceLineNumbers attribute.protected voidRenders the usage link between two resources as added, deleted, changed and unchanged object appropriately.voidsetData(MPMPlantOwned plantOwnedObj, MPMResource resource, Map<WTPartUsageLink, WTPart>[] delta, Collection<ESITargetAssociation> tgtAssociations, String auth, String adapter) Set this renderer's member variables that are necessary for rendering usage links i.e.protected voidvalidate()Ensures that the data needed to execute this renderer is set appropriately usingsetData(MPMPlantOwned, MPMResource, Map[], Collection, String, String)API.Methods inherited from class com.ptc.windchill.esi.bom.ESIBOMComponentRenderer
adjustBOMComponents, adjustBOMComponents, adjustChangedBOMComponents, adjustDeletedCPLinkElement, adjustDeletedRawMaterialLinkElement, adjustElement, adjustElement, adjustElement, adjustMadeFromLinkElementsInBOMComponent, adjustUnitEffectivities, adjustUsageAndAlternate, buildACoProduceDeltaGroup, buildCoProduceDeltaGroups, compareUsageLinks, getAlternateMadeFromLinkForMFS, getBomPart, getComponentParts, getContextToFetchOptionSetInfo, getCoProduceDelta, getRootToFetchOptionSetInfo, getTreeNavigator, mapPartUsageInfo, mapRawMaterialLink, setBomPart, setComponentParts, setCoProduceDelta, setData, setData, setData, setData, setMadeFromSetMaps, setTreeNavigatorMethods inherited from class com.ptc.windchill.esi.bom.ESIBOMSubordinateRenderer
addRenderedPart, addRenderedPart, addRenderedPart, addRenderedPart, addRenderedParts, areComponentQuantitiesRequired, getAigManager, getCaller, getCurrToPrevUsageLinks, getDelParts, getDeltaParts, getPartUsageLinksWithSubstitutes, getRenderedParts, getRenderedParts, getRmDelParts, getRoot, getTargetAssocsForPartUsageLink, isDefaultFilter, isLineNumberEnabled, setData, setData, setData, setData, setData, setPartUsageLinksWithSubstitutes, setPartUsagesToTargetAssocsMap, setRoot, shouldConsolidateComponentQuantityMethods 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
Renders the usage link between two resources as added, deleted, changed and unchanged object appropriately.
Supported API: true- Overrides:
buildGroupsin classESIBOMComponentRenderer- Throws:
ESIRendererException- See Also:
-
adjustElement
protected com.infoengine.object.factory.Element adjustElement(com.infoengine.object.factory.Element elem, String groupName, WTPartUsageLink usageLink, MPMPlantOwned plantOwnedObj, MPMResource resource, WTPart roleBResource, 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- - The element to be updated.groupName- - The logical name of the group to which the element will be added.usageLink- - Link between two resources.plantOwnedObj- - process plan/part to which the input plant is associated.resource- - Resource which is the RoleA of the input usage link.roleBResource- RoleB iteration of the input usage link.targets- - Collection targets.- Returns:
- Updated element.
-
validate
Ensures that the data needed to execute this renderer is set appropriately usingsetData(MPMPlantOwned, MPMResource, Map[], Collection, String, String)API.
Supported API: true- Overrides:
validatein classESIBOMSubordinateRenderer- Throws:
ESIRendererException- See Also:
-
setData
public void setData(MPMPlantOwned plantOwnedObj, MPMResource resource, Map<WTPartUsageLink, WTPart>[] delta, Collection<ESITargetAssociation> tgtAssociations, String auth, String adapter) throws ESIRendererExceptionSet this renderer's member variables that are necessary for rendering usage links i.e.WTPartUsageLink.
Supported API: true- Parameters:
plantOwnedObj- - Object to which the plants are assigned. part/process plan etc.resource- - Resource which is the RoleA of the input usage links.delta- - Collection of resource usage links i.e.WTPartUsageLinkobjects. The collection at index-0 is expected to contain the links which are newly added to the input resource object , index-1 deleted links, index-2 changed links and index-3 unchanged links.tgtAssociations- - Collection of target assignments with the plant owned.auth- - Info*Engine authentication information to be used when invoking a query task.adapter- - Windchill adapter instance name to be used when executing a info*engine webject.- Throws:
ESIRendererException- - if any exception thrown by an ESIRenderer.
-
areLineNumbersEnforced
protected boolean areLineNumbersEnforced()getter for enforceLineNumbers attribute.
Supported API: true- Overrides:
areLineNumbersEnforcedin classESIBOMSubordinateRenderer- Returns:
- boolean
-