Class ESINavigationFilterRenderer

All Implemented Interfaces:
ESIRenderer

public class ESINavigationFilterRenderer extends NavigationCriteriaAssociatedObjectRenderer


Supported API: true

Extendable: true
  • Method Details

    • getAllFilters

      public void getAllFilters(String groupName, Collection<NavigationCriteria> navigationCriterias, Collection<NavigationFilter2> filters, Collection<ESITarget> targets, String auth, VdbBuilder vdbBuilder, AccountabilityMap accMap) throws WTException
      Renders the all Filters related to the input navigation criteria.

      Supported API: true
      Parameters:
      groupName - - Element group name.
      navigationCriterias - - A collection of NavigationCritera objects for which filter information has to be rendered.
      filters - - A collection of filters to be rendered.
      targets - - A collection of associated ESI targets.
      auth - - This parameter contains authentication information required for executing certain Windchill adapter.
      vdbBuilder - - The VdbBuilder to use when creating output.
      Throws:
      WTException
    • buildGroups

      protected void buildGroups() throws WTException
      Output generator for the class. Does the following:
      1. Obtains a list of navigation filters associated to navigation criteria.
      2. Identify the type of filter and call respective renderer APIs.
      3. Calls renderPlantFilter().
      4. Calls renderAttributeStructureFilter().
      5. Calls renderATONavigationFilter().


      6. Supported API: true
      Specified by:
      buildGroups in class BasicESIRenderer
      Throws:
      WTException
    • validate

      protected void validate() throws ESIRendererException
      Make sure the object is ready to process. If navigation criterias, authentication, or adapterName are null, throws an exception.

      Supported API: true
      Overrides:
      validate in class NavigationCriteriaAssociatedObjectRenderer
      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.
      Supported API: true
      Parameters:
      element - - The Info*Engine element that is to be updated.
      attributeRule - - A collection of AttributeStructFilterRule objects.
    • 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 AttributeStructFilterRule
      attsDelgate - - An object of AttributeStructFilterDelegate
      rule -
      Throws:
      WTException
    • adjustAttributeFilterElement

      protected com.infoengine.object.factory.Element adjustAttributeFilterElement(com.infoengine.object.factory.Element element, NavigationCriteria navigationCriteria, String groupName, AttributeStructFilter attributeFilter, Collection<ESITarget> targets, 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.
      navigationCriteria - - Persistable object in the context of which this AttributeStructFilter information has to rendered.
      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.
      standardConfigSpecId - - The object id of persistable object.
      Returns:
      updated element.