Package com.ptc.windchill.esi.rnd
Class ESIAbstractStructureRenderer
java.lang.Object
com.ptc.windchill.esi.rnd.BasicESIRenderer
com.ptc.windchill.esi.enterprisedata.ESIAbstractEDRenderer
com.ptc.windchill.esi.rnd.ESIAbstractStructureRenderer
- All Implemented Interfaces:
ESIRenderer
- Direct Known Subclasses:
AbstractResourceRenderer,ESIBOMRenderer
Renders the output of AbstractStructureRender in ESI response.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
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 TypeMethodDescriptionapplyBussinessRuleSetToAssemlyNodes(Set<WTPart> assemblyNodes) Method applies business rules to assembly node and returns the set of object after bussiness rules were applied.
OOTB implementation applies business rule that removes non production node from assembly node set to render them as BOM and render non production node as parts.filterNonProductionAssemblyNodes(Set<WTPart> assemblyNodes) Method removes all the nodes which satisfies the bussiness rule to publish assembly node as part node i.e.protected intGets the value of the attribute: multilevel; How many levels are we to traverse when extracting multi-level BOMs?
Supported API: trueprotected StringgetObid()Gets the value of the attribute: obid; The UFID of the Windchill assembly part to be rendered.protected WTPartGets the value of the attribute: rootPart; If the part being rendered is part of a tree of product structures, this attribute contains the top of the tree.protected StringDeprecated.protected booleanisDelta()Gets the value of the attribute: delta; Should the output contain only items that have changed since the last time an object was released?
Supported API: trueprotected booleanGets the value of the attribute: documents; Are documents to be included in the output?
Supported API: trueprotected booleanGets the value of the attribute: lineNumbers; Are line numbers to be included in the output?
Supported API: trueprotected booleanGets the value of the attribute: referenceDesignators; Are reference designators to be included in the output?
Supported API: trueMethods inherited from class com.ptc.windchill.esi.enterprisedata.ESIAbstractEDRenderer
adjustElementForPartVersions, adjustEnterpriseDataElement, adjustPFDElement, clearAdjustedPartGroupAfterMapping, configureED, getAddedGroupName, getAdjustedPartGroupAfterMapping, getChangedGroupName, getEnterpriseDataElementMap, getEnterpriseDataElementMap, getEnterpriseDataPlantFunctionalDataElementMap, getEnterpriseDataPlantFunctionalDataElementMap, getUnchangedGroupName, mapEnterpriseData, setAdjustedPartGroupAfterMappingMethods inherited from class com.ptc.windchill.esi.rnd.BasicESIRenderer
addAtt, adjustConfigurableAndCollapsibleAtts, adjustDateEffCxt, adjustDateEffectivities, adjustEffectivities, adjustLotNumberEffCxt, adjustLotNumberEffectivities, adjustObjectID, adjustSerialNumberEffCxt, adjustSerialNumberEffectivities, adjustTargets, buildGroups, 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, validate
-
Method Details
-
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.
-
getRootPart
Gets the value of the attribute: rootPart; If the part being rendered is part of a tree of product structures, this attribute contains the top of the tree.
Supported API: true- Returns:
- WTPart
- Throws:
ESIRendererException
-
getObid
Gets the value of the attribute: obid; The UFID of the Windchill assembly part to be rendered.
Supported API: true- Returns:
- String
-
isDocuments
protected boolean isDocuments()Gets the value of the attribute: documents; Are documents to be included in the output?
Supported API: true- Returns:
- boolean
-
isReferenceDesignators
protected boolean isReferenceDesignators()Gets the value of the attribute: referenceDesignators; Are reference designators to be included in the output?
Supported API: true- Returns:
- boolean
-
isLineNumbers
protected boolean isLineNumbers()Gets the value of the attribute: lineNumbers; Are line numbers to be included in the output?
Supported API: true- Returns:
- boolean
-
getMultiLevel
protected int getMultiLevel()Gets the value of the attribute: multilevel; How many levels are we to traverse when extracting multi-level BOMs?
Supported API: true- Returns:
- int
-
isDelta
protected boolean isDelta()Gets the value of the attribute: delta; Should the output contain only items that have changed since the last time an object was released?
Supported API: true- Returns:
- boolean
-
applyBussinessRuleSetToAssemlyNodes
protected Set<WTPart> applyBussinessRuleSetToAssemlyNodes(Set<WTPart> assemblyNodes) throws WTException Method applies business rules to assembly node and returns the set of object after bussiness rules were applied.
OOTB implementation applies business rule that removes non production node from assembly node set to render them as BOM and render non production node as parts. Calls APIfilterNonProductionAssemblyNodes(Set)which filters out non production node if businesss rule satisfies to qualify non production node in input set.
Supported API: true- Parameters:
assemblyNodes- - Set of parts which are assembly nodes i.e. parts having children.- Throws:
ESIRendererExceptionWTException
-
filterNonProductionAssemblyNodes
protected Set<WTPart> filterNonProductionAssemblyNodes(Set<WTPart> assemblyNodes) throws ESIRendererException Method removes all the nodes which satisfies the bussiness rule to publish assembly node as part node i.e. non assembly node. Filter the bom header i.e. assembly nodes based on bussiness rule. If the bussiness rule is valid for a assembly node, then render it as a part and not as BOM
Supported API: true- Parameters:
assemblyNodes- - Set of parts which are assembly nodes i.e. parts having children.- Returns:
- - The filtered set of nodes i.e WTPart to be rendered as BOM.
- Throws:
ESIRendererException
-
BasicESIRenderer.getAdapterName()instead.Supported API: true