org.apache.activemq.console.filter
Class PropertiesViewFilter

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

public class PropertiesViewFilter
extends Object
implements QueryFilter


Field Summary
protected  QueryFilter next
           
protected  Set viewFilter
           
 
Fields inherited from interface org.apache.activemq.console.filter.QueryFilter
QUERY_DELIMETER
 
Constructor Summary
PropertiesViewFilter(QueryFilter next)
          Creates a filter that will select the properties of a map object to view
PropertiesViewFilter(Set viewFilter, QueryFilter next)
          Creates a filter that will select the properties of a map object to view
 
Method Summary
protected  Map<Object,Object> filterView(Map<Object,Object> data)
          Select only the attributes to view from the map data
protected  List<Map<Object,Object>> filterViewCollection(Collection<Map<Object,Object>> result, Set viewFilter)
          Filter the view of each element in the collection
 List<Map<Object,Object>> query(List queries)
          Filter the properties to view of the query result
 List<Map<Object,Object>> query(String query)
          Filter the properties to view of the query result
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 view
next - - 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 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


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.