Package com.ptc.windchill.esi.ov
Class FilterRenderer
java.lang.Object
com.ptc.windchill.esi.rnd.BasicESIRenderer
com.ptc.windchill.esi.rnd.NavigationCriteriaAssociatedObjectRenderer
com.ptc.windchill.esi.ov.FilterRenderer
- All Implemented Interfaces:
ESIRenderer
-
Field Summary
Fields inherited from class com.ptc.windchill.esi.rnd.NavigationCriteriaAssociatedObjectRenderer
atoNavigationFilter, comparisonOperatorIdToDisplayMap, deletedNavigationCriterias, EQUAL_DISPLAY, EQUAL_ID, GREATER_THAN_DISPLAY, GREATER_THAN_ID, GREATER_THAN_OR_EQUAL_DISPLAY, GREATER_THAN_OR_EQUAL_ID, groupName, LESS_THAN_DISPLAY, LESS_THAN_ID, LESS_THAN_OR_EQUAL_DISPLAY, LESS_THAN_OR_EQUAL_ID, navCriteria, NOT_EQUAL_DISPLAY, NOT_EQUAL_ID, NOT_SET_ID, part, smartCollection, targets, taskUriFields 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 com.infoengine.object.factory.ElementadjustATONavigationFilterElement(com.infoengine.object.factory.Element element, Persistable context, String groupName, ATONavigationFilter optionFilter, Collection<ESITarget> targets) Allow subclasses to fix the contents of an element before it's added to the output group(s).protected voidadjustAttributeFilter(com.infoengine.object.factory.Element element, List<AttributeStructFilterRule> attributeRule) For each entry in the attributeRule object, create a new Info*Engine Att object related to the AttributeStructFilterRule and add it to the element argument.protected com.infoengine.object.factory.ElementadjustAttributeFilterElement(com.infoengine.object.factory.Element element, Persistable context, String groupName, AttributeStructFilter attributeFilter, Collection<ESITarget> tgts2, String standardConfigSpecId) Allow subclasses to fix the contents of an element before it's added to the output group(s).protected voidadjustExpressionForAttributeFilter(com.infoengine.object.factory.Element element, AttributeStructFilterRule filterRule, AttributeStructFilterDelegate attsDelgate, StringBuilder rule) For each entry in the expressions(AttributeStructFilterExpression) object, create a new Info*Engine Att object related to the element argument.protected com.infoengine.object.factory.ElementadjustOptionFilterConfigSpecElement(com.infoengine.object.factory.Element element, Persistable context, String groupName, ATORuleConfigSpec configSpec, Collection<ESITarget> tgts2, String optionFilterConfigSpecID) Allow subclasses to fix the contents of an element before it's added to the output group(s).protected voidRenders the filters(AtoNavigationFIlter and Attribute Filter).The filters are rendered from the NavigaitonCriteria and then iterating over the returned filters one can find the different filters for which we want to display the information
Supported API: truevoidgetAllFilters(WTPart context, NavigationCriteria navCriteria, String groupName, String authentication, VdbBuilder builder) Renders the all Filters related to the input variantSpec.Methods inherited from class com.ptc.windchill.esi.rnd.NavigationCriteriaAssociatedObjectRenderer
createComparisonMap, getATONavCriteriaFilter, getCurrentNavCriterias, getNavCriteria, getNavCriteriaFilters, getPreviousNavCriteriasMap, setATONavigationFilter, setdata, setData, setNavCriteria, setNavigationCriteriaIdAttribute, validateMethods 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
Renders the filters(AtoNavigationFIlter and Attribute Filter).The filters are rendered from the NavigaitonCriteria and then iterating over the returned filters one can find the different filters for which we want to display the information
Supported API: true- Specified by:
buildGroupsin classBasicESIRenderer- Throws:
ESIRendererException
-
adjustAttributeFilter
protected void adjustAttributeFilter(com.infoengine.object.factory.Element element, List<AttributeStructFilterRule> attributeRule) For each entry in the attributeRule object, create a new Info*Engine Att object related to the AttributeStructFilterRule and add it to the element argument.- Parameters:
element- The Info*Engine element that is to be updated.attributeRule- A collection of AttributeStructFilterRule objects.- Throws:
WTException
-
adjustExpressionForAttributeFilter
protected void adjustExpressionForAttributeFilter(com.infoengine.object.factory.Element element, AttributeStructFilterRule filterRule, AttributeStructFilterDelegate attsDelgate, StringBuilder rule) throws WTException For each entry in the expressions(AttributeStructFilterExpression) object, create a new Info*Engine Att object related to the element argument.
Supported API: true- Parameters:
element- The Info*Engine element that is to be updated.filterRule- An object of AttributeStructFilterRuleattsDelgate- An object of AttributeStructFilterDelegaterule-expressions- An array of AttributeStructFilterExpression objects.- Throws:
WTException
-
adjustAttributeFilterElement
protected com.infoengine.object.factory.Element adjustAttributeFilterElement(com.infoengine.object.factory.Element element, Persistable context, String groupName, AttributeStructFilter attributeFilter, Collection<ESITarget> tgts2, String standardConfigSpecId) 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:
element- - The element to be updated.context- - Persistable object in the context of which this VariantSpec information needs to be rendered i.e Part object.groupName- - The logical name of the group to which the element will be added.attributeFilter- - The AttributeStructFilter that is being processed.targets- - The collection of ESITarget objects.- Returns:
- updated element.
-
adjustOptionFilterConfigSpecElement
protected com.infoengine.object.factory.Element adjustOptionFilterConfigSpecElement(com.infoengine.object.factory.Element element, Persistable context, String groupName, ATORuleConfigSpec configSpec, Collection<ESITarget> tgts2, String optionFilterConfigSpecID) 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:
element- - The element to be updated.context- - Persistable object for which the OptionFilterConfigSpec information needs to be rendered i.e NavigatoinCriteria object.groupName- - The logical name of the group to which the element will be added.configSpec- - The ATORuleConfigSpec that is being processed.targets- - The collection of ESITarget objects.- Returns:
- updated element.