Class ESIProcessPlanHeaderRenderer
java.lang.Object
com.ptc.windchill.esi.rnd.BasicESIRenderer
com.ptc.windchill.esi.mpml.processplan.ESIProcessPlanHeaderRenderer
- All Implemented Interfaces:
ESIRenderer
This class renders the output of process plan header (ie. <ProcessPlan><l/ProcessPlan>) in ESI response.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Field Summary
Fields inherited from class com.ptc.windchill.esi.rnd.BasicESIRenderer
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 element, String group, MPMProcessPlan mpmProcessPlan, Eff[] eff, Collection<ESITarget> targets) This method is meant to be overridden by a sub-class.protected voidPopulates the associated VdbBuilder instance with the response data for a process plan header.protected StringGets the value of the attribute: groupName.protected MPMProcessPlanGets the value of the attribute: mpmProcessPlan.protected Collection<ESITargetAssociation> Gets the value of the attribute: targetAssocs.voidsetData(String groupName, MPMProcessPlan mpmProcessPlan, MPMProcessPlan previousExportedIteration, Collection<ESITargetAssociation> targetAssocs, ESIEffectivityHandler effHandler, String adapterName, String auth) Establish the renderer's state so that it can process requests.voidsetData(String groupName, MPMProcessPlan mpmProcessPlan, Collection<ESITargetAssociation> targetAssocs, ESIEffectivityHandler effHandler, String adapterName, String auth) Establish the renderer's state so that it can process requests.protected voidvalidate()Throws an exception if any of the following instance members do not exist or do not carry a valid value - mpmProcessPlan, groupName and targetAssocs.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
-
getTargetAssociations
Gets the value of the attribute: targetAssocs.
Supported API: true- Returns:
- Collection
-
getGroupName
Gets the value of the attribute: groupName.
Supported API: true- Returns:
- String
-
getProcessPlan
Gets the value of the attribute: mpmProcessPlan.
Supported API: true- Returns:
- MPMProcessPlan
-
buildGroups
Populates the associated VdbBuilder instance with the response data for a process plan header. Besides invoking mapElement() to map the source to the target attributes, it invokes adjustment APIs such as adjustObjectID(), adjustEffectivities() and adjustElement() so as to alter the contents of the output element as may be appropriate.
Supported API: true- Specified by:
buildGroupsin classBasicESIRenderer- Throws:
ESIRendererException- , if some error was encountered while generating the response data.
-
setData
public void setData(String groupName, MPMProcessPlan mpmProcessPlan, Collection<ESITargetAssociation> targetAssocs, ESIEffectivityHandler effHandler, String adapterName, String auth) throws ESIRendererException Establish the renderer's state so that it can process requests.
Supported API: true- Parameters:
groupName- - Name of the group for which to render the output - for e.g., "AddedProcessPlans", "ChangedProcessPlans" etc.mpmProcessPlan- - Process plan being rendered.targetAssocs- - Collection of ESITargetAssociation objects.effHandler- - Effectivity handler instance to use when processing effectivity specifications.adapterName- - Windchill adapter instance name to use when executing a webject.auth- - Info*Engine authentication information to use when executing a query task.- Throws:
ESIRendererException- if any of the invoked methods threw this exception.
-
setData
public void setData(String groupName, MPMProcessPlan mpmProcessPlan, MPMProcessPlan previousExportedIteration, Collection<ESITargetAssociation> targetAssocs, ESIEffectivityHandler effHandler, String adapterName, String auth) throws ESIRendererException Establish the renderer's state so that it can process requests.
Supported API: true- Parameters:
groupName- - Name of the group for which to render the output - for e.g., "AddedProcessPlans", "ChangedProcessPlans" etc.mpmProcessPlan- - Process plan being rendered.previousExportedIteration- - Process plan iteration that was previously successfully published to the targets denoted by the input parameter targetAssocs.targetAssocs- - Collection of ESITargetAssociation objects.effHandler- - Effectivity handler instance to use when processing effectivity specifications.adapterName- - Windchill adapter instance name to use when executing a webject.auth- - Info*Engine authentication information to use when executing a query task.- Throws:
ESIRendererException- if any of the invoked methods threw this exception.
-
adjustElement
protected com.infoengine.object.factory.Element adjustElement(com.infoengine.object.factory.Element element, String group, MPMProcessPlan mpmProcessPlan, Eff[] eff, Collection<ESITarget> targets) throws ESIRendererException This method is meant to be overridden by a sub-class. The default version simply returns the input element, but the overridden version can modify the contents of the element as needed before returning it to the caller.
Supported API: true- Parameters:
element- - The element to be updated.group- - The logical name of the group to which the element will be added.mpmProcessPlan- - Process plan being processed.eff- - Array of effectivity specifications associated with the process plan..targets- - Collection of ESITarget objects associated with the process plan.- Returns:
- Element
- Throws:
ESIRendererException- if any exception thrown by an ESIRenderer.
-
validate
Throws an exception if any of the following instance members do not exist or do not carry a valid value - mpmProcessPlan, groupName and targetAssocs.
Supported API: true- Specified by:
validatein classBasicESIRenderer- Throws:
ESIRendererException- , if any of the said instance members are null or do not carry a valid value.
-