Class PropertiesViewFilter
java.lang.Object
org.apache.activemq.console.filter.PropertiesViewFilter
- All Implemented Interfaces:
QueryFilter
- Direct Known Subclasses:
GroupPropertiesViewFilter
-
Field Summary
FieldsFields inherited from interface org.apache.activemq.console.filter.QueryFilter
QUERY_DELIMETER -
Constructor Summary
ConstructorsConstructorDescriptionPropertiesViewFilter(Set viewFilter, QueryFilter next) Creates a filter that will select the properties of a map object to viewCreates a filter that will select the properties of a map object to view -
Method Summary
Modifier and TypeMethodDescriptionfilterView(Map<Object, Object> data) Select only the attributes to view from the map datafilterViewCollection(Collection<Map<Object, Object>> result, Set viewFilter) Filter the view of each element in the collectionFilter the properties to view of the query resultFilter the properties to view of the query result
-
Field Details
-
next
-
viewFilter
-
-
Constructor Details
-
PropertiesViewFilter
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
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 Details
-
query
Filter the properties to view of the query result- Specified by:
queryin interfaceQueryFilter- Parameters:
query- - the query string- Returns:
- list of objects that has been view filtered
- Throws:
Exception
-
query
Filter the properties to view of the query result- Specified by:
queryin 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
-
filterView
Select only the attributes to view from the map data- Parameters:
data- - data to filter the view from- Returns:
- - data with the view filtered
-