Package com.ptc.windchill.esi.mpml.pmi
Class ESIStandardCCUsageToEPMDDLinkRenderer
java.lang.Object
com.ptc.windchill.esi.rnd.BasicESIRenderer
com.ptc.windchill.esi.mpml.pmi.ESIStandardCCUsageToEPMDDLinkRenderer
- All Implemented Interfaces:
ESIRenderer
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptioncom.infoengine.object.factory.ElementadjustElement(com.infoengine.object.factory.Element elem, String group, ObjectToObjectLink sccResourceLink, EPMDocument resourceMaster, Collection targets) Allow subclasses to fix the contents of quality link element before it is added to the output group(s).voidPopulates the associated VdbBuilder instance with the response data for operation to part Links.Returns the set MPMWorkCenters rendered.protected Collection<MPMStandardCCUsageToEPMDDLink>[]Gets the value of the attribute: components.voidsetData(ObjectToObjectLink link, Collection<MPMStandardCCUsageToEPMDDLink>[] sccUsageToEPMDDLinks, String auth, String wcAdapter, VdbBuilder builder) Sets the state of this renderer appropriately.protected voidvalidate()Validates the attributes which are required for this renderer to execute properly.Methods inherited from class com.ptc.windchill.esi.rnd.BasicESIRenderer
adjustDateEffCxt, adjustDateEffectivities, adjustEffectivities, adjustLotNumberEffCxt, adjustLotNumberEffectivities, adjustObjectID, adjustSerialNumberEffCxt, adjustSerialNumberEffectivities, adjustTargets, buildUfidString, evaluateBussinessRule, getAdapterName, getAUMRenderer, getAuth, getBuilder, getPreviousObject, getTargetUtility, getUnwantedAttributes, invokeQueryTask, invokeQueryTask, invokeQueryTask, isGroupAvailable, isPublishAssocOptionSetFlagEnabled, mapDateEffectivities, mapEffectivities, mapEffectivityAttributes, mapElement, mapElement, mapElement, mapLotNumberEffectivities, mapObject, mapObject, mapSerialNumberEffectivities, mergeElements, overrideAttrValue, processBussinessRulesWithAnd, processBussinessRuleValidationResultSet, processNoMatchingVersionFound, removeAttributesNotRequired, render, setAttrValue, setAttrValues, setBuilder, shallPublishAssocOptionSet, 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:
ESIRendererExceptionWTException
-
adjustElement
public com.infoengine.object.factory.Element adjustElement(com.infoengine.object.factory.Element elem, String group, ObjectToObjectLink sccResourceLink, EPMDocument resourceMaster, Collection targets) throws ESIRendererException Allow subclasses to fix the contents of quality link element before it is added to the output group(s). Default behavior is to return the argument.
Supported API: true
- Parameters:
elem- - The element to be updated.group- - The logical name of the group to which the element will be added.qualityLink- - Quality link.controlCharacteristic- - Control characteristic.targets- - Collection of ESITarget objects.- Returns:
- Element
- Throws:
ESIRendererException- if any exception thrown by an ESIRenderer.
-
validate
Validates the attributes which are required for this renderer to execute properly.
Supported API: true- Specified by:
validatein classBasicESIRenderer- Throws:
ESIRendererException
-
setData
public void setData(ObjectToObjectLink link, Collection<MPMStandardCCUsageToEPMDDLink>[] sccUsageToEPMDDLinks, String auth, String wcAdapter, VdbBuilder builder) throws WTException Sets the state of this renderer appropriately.
Supported API: true
- Parameters:
root- - A persistable object whose associated Quality Links have to be rendered in to the response. This object can be a Part, process plan or operation.qualityLinksToCCMaps- - An array of maps whose keys are the quality links and the values are corresponding control characteristics. index 0 - added quality links, 1- deleted, 2- changed, 3- unchanged and corresponding control characteristics.auth- - Authentication to be used while fetching the corresponding info engine elements of the control characteristics to be rendered.wcAdapter- - Name of the Windchill adapter instance to use when executing a webject.builder- - VdbBuilder instance to be populated with the response data.- Throws:
WTException- if any of the invoked methods throws this exception.
-
getSccToResourceLinks
Gets the value of the attribute: components.
Supported API: true- Returns:
- Collection[]
-
getRenderedDocuments
Returns the set MPMWorkCenters rendered.
Supported API: true- Returns:
- the set MPMWorkCenters rendered.
-