Class AttributeStructFilterDelegate

java.lang.Object
wt.filter.AbstractNavigationFilterDelegate2
wt.structfilter.rule.attribute.AttributeStructFilterDelegate
All Implemented Interfaces:
wt.alternaterep.AlternateRepRuleDelegate, NavigationFilterDelegate2

public class AttributeStructFilterDelegate extends wt.filter.AbstractNavigationFilterDelegate2 implements NavigationFilterDelegate2, wt.alternaterep.AlternateRepRuleDelegate
Filters objects based on attribute comparisons (equal to, less than, greater than, etc.). Parts where the comparison evaluated to 'true' are shown (filtered in), but where the comparison evaluated to 'true' are not shown (filtered out). Also includes methods for conversion of a AttributeStructFilter to and from JSON and to construct a FilterCache (actually an AttributeFilterCache).

Supported API: true

Extendable: false
See Also:
  • invalid reference
    wt.structfilter.rule.AttributelFilterCache
  • invalid reference
    wt.structfilter.rule.AttributeStructFilter
  • Method Details

    • getFilterFromJSON

      public NavigationFilter2 getFilterFromJSON(String jsonString) throws WTException
      Constructs a navigation filter from a JSON string representation.

      Supported API: true
      Specified by:
      getFilterFromJSON in interface NavigationFilterDelegate2
      Parameters:
      jsonString - - JSON string representation. JSON format is similar to the one shown in getJSONFromFilter method.
      json -
      Returns:
      String
      Throws:
      WTException
    • updateFilterFromJSON

      public NavigationFilter2 updateFilterFromJSON(NavigationFilter2 navFilter, String jsonString) throws WTException
      Updates a navigation filter from a JSON string representation.

      Supported API: true
      Specified by:
      updateFilterFromJSON in interface NavigationFilterDelegate2
      Parameters:
      navFilter - - A NavigationFilter2 object which has to be updated
      jsonString - - JSON string representation. JSON format is similar to the one shown in getJSONFromFilter method.
      json -
      Returns:
      String
      Throws:
      WTException
    • saveInDB

      public NavigationFilter2 saveInDB(NavigationFilter2 navFilter) throws WTException
      Saves a navigation filter and any of its related persistent objects in the database. Since some filters have related persistent objects we need this method to correctly store the filter.

      Supported API: true
      Specified by:
      saveInDB in interface NavigationFilterDelegate2
      Overrides:
      saveInDB in class wt.filter.AbstractNavigationFilterDelegate2
      Parameters:
      navFilter - - the NavigationFilter2 object to be saved in Database
      Returns:
      NavigationFilter2 saved in the database.
      Throws:
      WTException - when unable to save the API in Database