com.sas.dataselectors.filters
Class BusinessModelToAdvancedFilterModelAdapter

com.sas.dataselectors.filters.BusinessModelToAdvancedFilterModelAdapter
All Implemented Interfaces:
AdvancedFilterDefinitionModelInterface, AdvancedFilterModelInterface, PersistentFilterProviderModelInterface, com.sas.dataselectors.filters.PromptValueProviderModelInterface, com.sas.dataselectors.filters.SearchValueProviderModelInterface, SimpleFilterDefinitionModelInterface, SimpleFilterListEditorModelInterface, com.sas.dataselectors.filters.SystemVariableProviderInterface

public class BusinessModelToAdvancedFilterModelAdapter

This adapter extends the base class to provide features and behavior specific to BusinessModel data sources.


Field Summary
 
Fields inherited from class com.sas.dataselectors.filters.DefaultAdvancedFilterModelAdapter
_businessModel, _businessQuery, _expressionValueEditor, _filterDescription, _filterItemEditor, _filterLabel, _filterObjectFactory, _filterQualifierEditor, _initialFilterObject, _locale, _logicTree, _newFilter, _promptMap, _promptValueEditor, _revertToFilterObject, _systemVariableMap, environment, rootFilterObject
 
Fields inherited from class com.sas.dataselectors.filters.SimpleFilterListEditorModelBase
_adapter, _filterLogicList, _selectionIndex, _selectionModel
 
Constructor Summary
BusinessModelToAdvancedFilterModelAdapter()
          Constructs a new adapter with the default properties.
BusinessModelToAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessModel businessModel)
          Constructs a new adapter from the given model.
BusinessModelToAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessModel businessModel, com.sas.iquery.metadata.business.FilterItem initialFilter)
          Constructs a new adapter from the given model and initial filter.
 
Method Summary
protected  void applyFilterLabel()
          Applies the desired label to the root filter object.
 boolean commitChanges()
          Commit changes to the native filter model.
 
Methods inherited from class com.sas.dataselectors.filters.DefaultAdvancedFilterModelAdapter
addSelection, applyExpressionValueEditorChanges, applyFilterDescription, applyFilterItemEditorChanges, applyFilterQualifierEditorChanges, applyFilterQualifierEditorChanges, applyPromptValueEditorChanges, applyPromptValueEditorChanges, cancel, clear, clear, getBaseModel, getBusinessModel, getBusinessQuery, getEnvironment, getExpressionValueEditor, getFilterableStep, getFilterDescription, getFilterItemAttributeType, getFilterItemEditor, getFilterItemSQLType, getFilterLabel, getFilterObjectFactory, getFilterQualifierEditor, getFilterQualifierSkipID, getLocale, getMaxOutputObservations, getPersistentFilterList, getPromptedValueByName, getPromptRangeValueList, getPromptValueEditor, getPromptValueList, getPromptValueMap, getRootFilterObject, getSelectionTree, getSelectionTree, getSharedPromptSelector, getSystemVariableValueList, getValueProvider, isCascadable, isCascadingPrompts, isEditedExpressionValue, isEnforcingPromptCascades, isFilterImportable, isFilterImportable, isOLAP, isPromptedRangeValue, isPromptedValue, isPromptMultipleSelection, isQuotedValue, isSystemVariableValue, isUserCreatedValue, isValidFilter, isValidPromptType, refreshPromptValueMap, removeSelection, setApplicationData, setBusinessModel, setBusinessQuery, setEnforcePromptCascades, setEnvironment, setExpressionValueEditor, setExpressionValueEditorInfo, setFilterDescription, setFilterItemEditor, setFilterItemEditorInfo, setFilterLabel, setFilterObjectFactory, setFilterQualifierEditor, setFilterQualifierEditorInfo, setLocale, setMaxOutputObservations, setModel, setModel, setPromptValueEditor, setPromptValueEditorInfo, setPromptValueEditorInfo, setPromptValueEditorInfo, setSelection, setSelectionCursor, setSharedPromptSelector
 
Methods inherited from class com.sas.dataselectors.filters.SimpleFilterListEditorModelBase
getApplicationData, getChangableSelectionModel, getDataSource, getFilterLogicList, getSelection, getSelectionCount, getSelectionCursor, setAdapter
 
Methods inherited from interface com.sas.dataselectors.filters.AdvancedFilterModelInterface
getFilterLogicList, getSelectionCount, getSelectionCursor
 
Methods inherited from interface com.sas.dataselectors.filters.SimpleFilterDefinitionModelInterface
getApplicationData, getDataSource, getSelection
 

Constructor Detail

BusinessModelToAdvancedFilterModelAdapter

public BusinessModelToAdvancedFilterModelAdapter()
Constructs a new adapter with the default properties.


BusinessModelToAdvancedFilterModelAdapter

public BusinessModelToAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessModel businessModel)
Constructs a new adapter from the given model.

Parameters:
businessModel - the native model

BusinessModelToAdvancedFilterModelAdapter

public BusinessModelToAdvancedFilterModelAdapter(com.sas.iquery.metadata.business.BusinessModel businessModel,
                                                 com.sas.iquery.metadata.business.FilterItem initialFilter)
Constructs a new adapter from the given model and initial filter. The initial filter provides the initial filter model structure and contents.

Parameters:
businessModel - the native model
initialFilter - the initial filter
Method Detail

applyFilterLabel

protected void applyFilterLabel()
Applies the desired label to the root filter object.

Overrides:
applyFilterLabel in class DefaultAdvancedFilterModelAdapter

commitChanges

public boolean commitChanges()
Commit changes to the native filter model.

Specified by:
commitChanges in interface SimpleFilterDefinitionModelInterface
Overrides:
commitChanges in class DefaultAdvancedFilterModelAdapter
Returns:
TRUE if everything succeeds, FALSE otherwise
See Also:
SimpleFilterDefinitionModelInterface.commitChanges()



Copyright © 2009 SAS Institute Inc. All Rights Reserved.