Class PropertiesViewFilter

java.lang.Object
org.apache.activemq.console.filter.PropertiesViewFilter
All Implemented Interfaces:
QueryFilter
Direct Known Subclasses:
GroupPropertiesViewFilter

public class PropertiesViewFilter extends Object implements QueryFilter
  • Field Details

    • next

      protected QueryFilter next
    • viewFilter

      protected Set viewFilter
  • Constructor Details

    • PropertiesViewFilter

      public PropertiesViewFilter(QueryFilter next)
      Creates a filter that will select the properties of a map object to view
      Parameters:
      next - - the next query filter that will return a collection of maps
    • PropertiesViewFilter

      public PropertiesViewFilter(Set viewFilter, QueryFilter next)
      Creates a filter that will select the properties of a map object to view
      Parameters:
      viewFilter - - the properties to view
      next - - the next query filter that will return a collection of maps
  • Method Details

    • query

      public List<Map<Object,Object>> query(String query) throws Exception
      Filter the properties to view of the query result
      Specified by:
      query in interface QueryFilter
      Parameters:
      query - - the query string
      Returns:
      list of objects that has been view filtered
      Throws:
      Exception
    • query

      public List<Map<Object,Object>> query(List queries) throws Exception
      Filter the properties to view of the query result
      Specified by:
      query in interface QueryFilter
      Parameters:
      queries - - the query map
      Returns:
      list of objects that has been view filtered
      Throws:
      Exception
    • filterViewCollection

      protected List<Map<Object,Object>> filterViewCollection(Collection<Map<Object,Object>> result, Set viewFilter)
      Filter the view of each element in the collection
      Parameters:
      result - - the lists to filter the view from
      viewFilter - - the views to select
      Returns:
      list of objects whose view has been filtered
    • filterView

      protected Map<Object,Object> filterView(Map<Object,Object> data)
      Select only the attributes to view from the map data
      Parameters:
      data - - data to filter the view from
      Returns:
      - data with the view filtered