Class ESIPlantAssignmentLinkRenderer
java.lang.Object
com.ptc.windchill.esi.rnd.BasicESIRenderer
com.ptc.windchill.esi.mpml.processplan.ESIPlantAssignmentLinkRenderer
- All Implemented Interfaces:
ESIRenderer
Renders the output of
Supported API: true
Extendable: true
MPMPlantAssignmentLink (i.e. <PlantAssignmentLink> </PlantAssignmentLink>)
in ESI DataResponse.
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 TypeMethodDescriptionvoidaddToPlantsToBeRendered(MPMPlant plant) Adds the input plant to a collection which can be fetched using the APIgetPlantsToBeRendered()
Supported API: trueprotected com.infoengine.object.factory.ElementadjustElement(com.infoengine.object.factory.Element elem, String groupName, MPMPlantAssignmentLink plantAssignmentLink, MPMPlant plant, MPMPlantOwned mpmPlantOwned, Collection<ESITarget> targets) Allow subclasses to fix the contents of an element before it's added to the output group(s).protected voidRendersMPMPlantAssignmentLinkobjects as added, deleted, changed and unchanged objects appropriately.Returns an array of plant assignment links.Returns the plant owned (process plan/part) object.Returns collection of plants.Returns collection of target associations.voidsetData(MPMPlantOwned plantOwnedObj, Collection<MPMPlantAssignmentLink>[] plantAssignmentLinks, Collection<ESITargetAssociation> tgtAssociations, String auth, String adapter) Set this renderer's member variables that are necessary for rendering plant assignment links i.e.protected voidvalidate()Ensures that the data needed to execute this renderer is set appropriately usingsetData(MPMPlantOwned, Collection[], Collection, String, String)API.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
RendersMPMPlantAssignmentLinkobjects as added, deleted, changed and unchanged objects appropriately. Invokes the APIgetPlantAndAssignmentLinks(MPMPlantOwned)to fetch the plants associated with the inputMPMPlantOwnedobject, in case the array of collections passed in as input to thesetData(MPMPlantOwned, Collection[], Collection, String, String)API is empty.
Supported API: true- Specified by:
buildGroupsin classBasicESIRenderer- Throws:
ESIRendererException- See Also:
-
adjustElement
protected com.infoengine.object.factory.Element adjustElement(com.infoengine.object.factory.Element elem, String groupName, MPMPlantAssignmentLink plantAssignmentLink, MPMPlant plant, MPMPlantOwned mpmPlantOwned, 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.plantAssignmentLink- - link between plant owned(process plan/part) and plant.plant- - plant which is the roleB iteration of the input plant assignment link.mpmPlantOwned- - process plan/part to which the input plant is associated.targets- - Collection targets.- Returns:
- Updated element.
-
validate
Ensures that the data needed to execute this renderer is set appropriately usingsetData(MPMPlantOwned, Collection[], Collection, String, String)API.
Supported API: true- Specified by:
validatein classBasicESIRenderer- Throws:
ESIRendererException- See Also:
-
setData
public void setData(MPMPlantOwned plantOwnedObj, Collection<MPMPlantAssignmentLink>[] plantAssignmentLinks, Collection<ESITargetAssociation> tgtAssociations, String auth, String adapter) throws ESIRendererException Set this renderer's member variables that are necessary for rendering plant assignment links i.e.MPMPlantAssignmentLink.
Supported API: true- Parameters:
plantOwnedObj- - Object to which the plants are assigned. part/process plan etc.plantAssignmentLinks- - Collection of plant assignment links i.e.MPMPlantAssignmentLinkobjects. The collection at index-0 is expected to contain the links which are newly added to the input plant owned object , index-1 deleted links, index-2 changed links and index-3 unchanged links. If all these collections are empty, then this renderer queries the database to find the links and associated plants.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.
-
getPlantOwnedObj
Returns the plant owned (process plan/part) object.
Supported API: true- Returns:
- the plant owned (process plan/part) object.
-
getAssignmentLinks
Returns an array of plant assignment links.
Supported API: true- Returns:
- an array of plant assignment links.
-
getTgtAssociations
Returns collection of target associations.
Supported API: true- Returns:
- collection of target associations.
-
getPlantsToBeRendered
Returns collection of plants.
Supported API: true- Returns:
- collection of plants.
-
addToPlantsToBeRendered
Adds the input plant to a collection which can be fetched using the APIgetPlantsToBeRendered()
Supported API: true- Parameters:
plant- - plant
-