com.sas.dataselectors.filters
Class InformationMapToFilterItemListAdapter

com.sas.dataselectors.filters.InformationMapToFilterItemListAdapter
All Implemented Interfaces:
FilterItemListInterface, FilterItemLookupInterface

public class InformationMapToFilterItemListAdapter

This adapter constructs a filter item list from an InformationMap object. The list of filter items is then used throughout the filter model as the primary factor in a filter.


Field Summary
 
Fields inherited from class com.sas.dataselectors.filters.AbstractFilterItemListBase
_filterItemLookup
 
Constructor Summary
InformationMapToFilterItemListAdapter(FilterObjectFactoryInterface filterObjectFactory, com.sas.iquery.metadata.business.InformationMap map)
          Constructs a new adapter using the given factory and model.
InformationMapToFilterItemListAdapter(FilterObjectFactoryInterface filterObjectFactory, com.sas.iquery.metadata.business.InformationMap map, com.sas.iquery.dataservices.IQDataServices dataService)
          Constructs a new adapter with the given factory, native model, and service provider.
 
Method Summary
 com.sas.iquery.dataservices.IQDataServices getDataService()
          Return the IQ data service provider in use by this adapter.
 com.sas.iquery.metadata.business.InformationMap getInformationMap()
          Returns the native model in use by this adapter.
protected  com.sas.iquery.dataservices.IQDataServices initDataService(com.sas.iquery.metadata.business.InformationMap map)
          Constructs and returns a new IQ Data Services object from the given model.
 void refresh()
          Refresh the list of filters items from the native model.
 void setDataService(com.sas.iquery.dataservices.IQDataServices dataService)
          Sets the IQ data service provider this adapter will use.
 void setInformationMap(com.sas.iquery.metadata.business.InformationMap map)
          Sets the native model used by this adapter.
 
Methods inherited from class com.sas.dataselectors.filters.AbstractFilterItemListBase
getFilterItemList, getFilterItemListLabel, getFilterItemLookupMap, lookupFilterItem, setFilterItemList, setFilterItemListLabel, setFilterItemLookupMap
 

Constructor Detail

InformationMapToFilterItemListAdapter

public InformationMapToFilterItemListAdapter(FilterObjectFactoryInterface filterObjectFactory,
                                             com.sas.iquery.metadata.business.InformationMap map)
Constructs a new adapter using the given factory and model.

Parameters:
filterObjectFactory - the object factory to convert between the native model and filter model
map - the model to draw data from

InformationMapToFilterItemListAdapter

public InformationMapToFilterItemListAdapter(FilterObjectFactoryInterface filterObjectFactory,
                                             com.sas.iquery.metadata.business.InformationMap map,
                                             com.sas.iquery.dataservices.IQDataServices dataService)
Constructs a new adapter with the given factory, native model, and service provider.

Parameters:
filterObjectFactory - the object factory to convert between the native model and filter model
map - the model to draw data from
dataService - the IQ service provider used to gather additional data needed by the filter model
Method Detail

initDataService

protected com.sas.iquery.dataservices.IQDataServices initDataService(com.sas.iquery.metadata.business.InformationMap map)
Constructs and returns a new IQ Data Services object from the given model.

Parameters:
map - the native model
Returns:
an IQ Data Services object

refresh

public void refresh()
Refresh the list of filters items from the native model.


getInformationMap

public com.sas.iquery.metadata.business.InformationMap getInformationMap()
Returns the native model in use by this adapter.

Returns:
the native model used by this adapter

setInformationMap

public void setInformationMap(com.sas.iquery.metadata.business.InformationMap map)
Sets the native model used by this adapter.

Parameters:
map - the native model this adapter should use

getDataService

public com.sas.iquery.dataservices.IQDataServices getDataService()
Return the IQ data service provider in use by this adapter.

Returns:
the IQ data service provider

setDataService

public void setDataService(com.sas.iquery.dataservices.IQDataServices dataService)
Sets the IQ data service provider this adapter will use.

Parameters:
dataService - the IQ data service provider



Copyright © 2009 SAS Institute Inc. All Rights Reserved.