Class ESIWorkCenterRenderer
java.lang.Object
com.ptc.windchill.esi.rnd.BasicESIRenderer
com.ptc.windchill.esi.enterprisedata.ESIAbstractEDRenderer
com.ptc.windchill.esi.rnd.ESIAbstractStructureRenderer
com.ptc.windchill.esi.mpml.resource.AbstractResourceRenderer
com.ptc.windchill.esi.mpml.resource.ESIWorkCenterRenderer
- All Implemented Interfaces:
ESIRenderer,com.ptc.windchill.esi.translation.ESITranslationRenderer
This class renders the output of
Supported API: true
Extendable: true
MPMWorkCenter (i.e. <WorkCenter> </WorkCenter>) in ESI response.
Supported API: true
Extendable: true
-
Field Summary
Fields inherited from class com.ptc.windchill.esi.mpml.resource.AbstractResourceRenderer
ADDED_MPM_RESOURCE, ADDED_RESOURCES_BOM, CHANGED_MPM_RESOURCE, CHANGED_RESOURCES_BOM, currentAndPreviousResourceMap, DELETED_RESOURCES_BOM, prevTargetAssoc, UNCHANGED_MPM_RESOURCE, UNCHANGED_RESOURCES_BOMFields inherited from class com.ptc.windchill.esi.rnd.ESIAbstractStructureRenderer
ADDED_STRUCTURE, allRenderedBOMsSet, businessRuleSet, CHANGED_STRUCTURE, delta, documents, factory, lineNumbers, navigator, obid, publishProductionBOM, referenceDesignators, rootPart, transactionID, UNCHANGED_STRUCTUREFields 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 void/** Output generator for the class.protected voidprocessWorkCenters(MPMResource workCenterHeader, Collection<MPMResource> workCentersInStructure, Collection<MPMResource>[] workCenterDelta, ESITarget tgt) Processes work center rendering.Methods inherited from class com.ptc.windchill.esi.mpml.resource.AbstractResourceRenderer
adjustElement, adjustElement, adjustElement, adjustElement, adjustElement, buildBOMHeader, buildMPMResource, getBOMAndPartCollection, getContextToFetchOptionSetInfo, getCurrentAndPreviousPublishedObjectMap, getEnforceOrgs, getLevels, getMpmResources, getOperation, getOperationHolder, getPlantOwned, getPreviousExportedIterations, getRendererForSubsOrAltBOM, getResourceParent, getRootToFetchOptionSetInfo, getTgtAssociations, getTransactionID, getTreeNavigator, mapMPMResourceElement, mapMPMResourceElement, processUsageLinks, renderAssocOptionSet, renderExpressions, renderLeafParts, setData, setData, setData, setData, setOperation, validateMethods inherited from class com.ptc.windchill.esi.rnd.ESIAbstractStructureRenderer
applyBussinessRuleSetToAssemlyNodes, filterNonProductionAssemblyNodes, getAllRenderedBOMsSet, getBasePart, getMultiLevel, getObid, getRootPart, getTreeNavigator, getWcAdapter, isDelta, isDocuments, isLineNumbers, isReferenceDesignators, setMultiLevelMethods inherited from class com.ptc.windchill.esi.enterprisedata.ESIAbstractEDRenderer
adjustElementForPartVersions, adjustEnterpriseDataElement, adjustPFDElement, clearAdjustedPartGroupAfterMapping, configureED, getAdjustedPartGroupAfterMapping, getEnterpriseDataElementMap, getEnterpriseDataElementMap, getEnterpriseDataPlantFunctionalDataElementMap, getEnterpriseDataPlantFunctionalDataElementMap, mapEnterpriseData, setAdjustedPartGroupAfterMappingMethods 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, storeCurrentAndItsPreviousObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ptc.windchill.esi.translation.ESITranslationRenderer
adjustElementForTranslationSpecificAttrs
-
Method Details
-
buildGroups
/** Output generator for the class. Does the following:- Obtains the contents of the work center collection.
- Finds the ESI targets associated with the work centers.
- Finds the most current released version of the work center for each target.
- Compares the current version to the most current version. If they are the same and the effectivity has not changed, the work center is ignored.
- If the work center is not ignored, calls the Windchill Adapter to obtain all the attributes of the work center.
- Maps the result of the Windchill Adapter call.
- Calls adjustElement()
- If documents are required, calls the document renderer.
Supported API: true- Specified by:
buildGroupsin classBasicESIRenderer- Throws:
ESIRendererException- if any exception thrown by an ESIRenderer.
-
processWorkCenters
protected void processWorkCenters(MPMResource workCenterHeader, Collection<MPMResource> workCentersInStructure, Collection<MPMResource>[] workCenterDelta, ESITarget tgt) throws ESIRendererException Processes work center rendering.
Does the following:
- Checks the target associations of input work center objects. Throws exception and the aborts the response generation if a work center object doesn't have targets associated and the enforce orgs preference has a value true.
- Finds the most current released version of the work center for the input target.
- Compares the current version to the most current version. If they are the same and the effectivity has not changed, the work center is rendered as unchanged object.
- Collects the links between work center header and child work centers appropriately and invokes the
ESIResourceUsageLinkRendererrenderer to render them.
Supported API: true- Parameters:
workCenterHeader- - The work center having child work centers i.e. work center structure.workCentersInStructure- - The collection containing work centers object that belongs to perticular work center structure.workCenterDelta- - Array of work center collection containing added, changed and unchanged work centerstgt- - The current distribution target for which response need to be generated.- Throws:
ESIRendererException- if any exception thrown by an ESIRenderer.
-