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 Summary
Fields Modifier and Type Field Description protected QueryFilter
next
protected Set
viewFilter
-
Fields inherited from interface org.apache.activemq.console.filter.QueryFilter
QUERY_DELIMETER
-
-
Constructor Summary
Constructors Constructor Description PropertiesViewFilter(Set viewFilter, QueryFilter next)
Creates a filter that will select the properties of a map object to viewPropertiesViewFilter(QueryFilter next)
Creates a filter that will select the properties of a map object to view
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<Object,Object>
filterView(Map<Object,Object> data)
Select only the attributes to view from the map dataprotected List<Map<Object,Object>>
filterViewCollection(Collection<Map<Object,Object>> result, Set viewFilter)
Filter the view of each element in the collectionList<Map<Object,Object>>
query(String query)
Filter the properties to view of the query resultList<Map<Object,Object>>
query(List queries)
Filter the properties to view of the query result
-
-
-
Field Detail
-
next
protected QueryFilter next
-
viewFilter
protected Set viewFilter
-
-
Constructor Detail
-
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 viewnext
- - the next query filter that will return a collection of maps
-
-
Method Detail
-
query
public List<Map<Object,Object>> query(String query) throws Exception
Filter the properties to view of the query result- Specified by:
query
in interfaceQueryFilter
- 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 interfaceQueryFilter
- 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 fromviewFilter
- - the views to select- Returns:
- list of objects whose view has been filtered
-
-