com.sas.dataselectors.memberproperties
Class MemberPropertiesSelectorOLAPAdapter

com.sas.dataselectors.memberproperties.MemberPropertiesSelectorOLAPAdapter
All Implemented Interfaces:
MemberPropertiesSelectorInterface, SelectorCommitInterface

public class MemberPropertiesSelectorOLAPAdapter
implements MemberPropertiesSelectorInterface

Implements the methods and properties required for an adapter implementation of the MemberPropertiesSelector.

Since:
3.1.4
See Also:
MemberPropertiesSelector, MemberPropertiesSelectorPanel

Field Summary
protected  MemberPropertiesSelectorDataSourceInterface dataSource
          The MemberPropertiesSelectorDataSourceInterface used by the adapter.
protected  java.util.List properties
          The list of MemberPropertyItems to be applied to this adapter's datasource during the commit.
 
Fields inherited from interface com.sas.dataselectors.SelectorCommitInterface
EXCEPTION_OCCURRED
 
Constructor Summary
MemberPropertiesSelectorOLAPAdapter()
          Default constructor.
MemberPropertiesSelectorOLAPAdapter(MemberPropertiesSelectorDataSourceInterface dataSource)
          MemberPropertiesSelectorDataSourceInterface Constructor.
 
Method Summary
 java.util.Map commit()
           Commits the new set of member properties to the model.
static MemberPropertiesSelectorInterface createDefaultAdapter(com.sas.iquery.intelligentquery.BusinessQueryProviderInterface model)
          Returns a MemberPropertiesSelectorInterface adapter based on the specified BusinessQueryProviderInterface.
 java.util.List getAvailableProperties()
           Returns a list of NodeInfo objects corresponding to Dimensions that have member properties avaiable on at least one of their Levels.
protected  MemberPropertiesSelectorDataSourceInterface getDataSource()
          Returns this adapter's dataSource object.
 java.lang.String getExpandedLevel()
          Returns the uniqueLevelName that determines which level node should be expanded when the selector is launched.
 java.util.Locale getLocale()
          Returns the locale
 java.util.List getProperties()
           Returns a list of NodeInfo objects corresponding to Dimensions that have member properties currently applied on at least one of their Levels.
 java.lang.Object getPropertiesBean()
          Not used.
protected  void setDataSource(MemberPropertiesSelectorDataSourceInterface dataSource)
          Sets this adapter's dataSource object.
 void setExpandedLevel(java.lang.String expandedLevel)
          Sets the uniqueLevelName that determines which level node should be expanded when the selector is launched.
 void setLocale(java.util.Locale locale)
          Sets the locale
 void setProperties(java.util.List properties)
           Sets the list of MemberPropertyItem objects that should be applied in the new state of the adapter.
 

Field Detail

dataSource

protected MemberPropertiesSelectorDataSourceInterface dataSource
The MemberPropertiesSelectorDataSourceInterface used by the adapter.


properties

protected java.util.List properties
The list of MemberPropertyItems to be applied to this adapter's datasource during the commit.

Constructor Detail

MemberPropertiesSelectorOLAPAdapter

public MemberPropertiesSelectorOLAPAdapter()
Default constructor.


MemberPropertiesSelectorOLAPAdapter

public MemberPropertiesSelectorOLAPAdapter(MemberPropertiesSelectorDataSourceInterface dataSource)
MemberPropertiesSelectorDataSourceInterface Constructor.

Method Detail

setDataSource

protected void setDataSource(MemberPropertiesSelectorDataSourceInterface dataSource)
Sets this adapter's dataSource object.

Parameters:
dataSource - the dataSource object.

getDataSource

protected MemberPropertiesSelectorDataSourceInterface getDataSource()
Returns this adapter's dataSource object.

Returns:
the dataSource object.

getAvailableProperties

public java.util.List getAvailableProperties()

Returns a list of NodeInfo objects corresponding to Dimensions that have member properties avaiable on at least one of their Levels.

Specified by:
getAvailableProperties in interface MemberPropertiesSelectorInterface
Returns:
the list of NodeInfo objects.
Throws:
{@link - java.lang.IllegalStateException} if dataSource is null.
See Also:
NodeInfo

getProperties

public java.util.List getProperties()

Returns a list of NodeInfo objects corresponding to Dimensions that have member properties currently applied on at least one of their Levels.

Specified by:
getProperties in interface MemberPropertiesSelectorInterface
Returns:
the list of NodeInfo objects.
Throws:
{@link - java.lang.IllegalStateException} if dataSource is null.
See Also:
NodeInfo

setProperties

public void setProperties(java.util.List properties)

Sets the list of MemberPropertyItem objects that should be applied in the new state of the adapter.

Specified by:
setProperties in interface MemberPropertiesSelectorInterface
Parameters:
properties - the list of MemberPropertyItem objects.
Throws:
{@link - java.lang.IllegalStateException} if dataSource is null.
See Also:
MemberPropertyItem

setExpandedLevel

public void setExpandedLevel(java.lang.String expandedLevel)
Sets the uniqueLevelName that determines which level node should be expanded when the selector is launched.

Specified by:
setExpandedLevel in interface MemberPropertiesSelectorInterface

getExpandedLevel

public java.lang.String getExpandedLevel()
Returns the uniqueLevelName that determines which level node should be expanded when the selector is launched.

Specified by:
getExpandedLevel in interface MemberPropertiesSelectorInterface
Returns:
the uniqueLevelName of the level to be expanded.

commit

public java.util.Map commit()

Commits the new set of member properties to the model.

Specified by:
commit in interface SelectorCommitInterface
Returns:
a Map containing information about the commit including any exceptions that may have been thrown by the datasource.
Throws:
{@link - java.lang.IllegalStateException} if dataSource is null.

getPropertiesBean

public java.lang.Object getPropertiesBean()
Not used. Exists here only to satisfy the SelectorCommitInterface.

This implementation always returns null.

Specified by:
getPropertiesBean in interface SelectorCommitInterface
See Also:
SelectorCommitInterface

setLocale

public void setLocale(java.util.Locale locale)
Sets the locale

Specified by:
setLocale in interface MemberPropertiesSelectorInterface
Parameters:
locale - The locale.

getLocale

public java.util.Locale getLocale()
Returns the locale

Specified by:
getLocale in interface MemberPropertiesSelectorInterface
Returns:
The locale.

createDefaultAdapter

public static MemberPropertiesSelectorInterface createDefaultAdapter(com.sas.iquery.intelligentquery.BusinessQueryProviderInterface model)
Returns a MemberPropertiesSelectorInterface adapter based on the specified BusinessQueryProviderInterface.

Parameters:
model - The BusinessQueryProviderInterface to which the adapter will communicate.
Returns:
a MemberPropertiesSelectorInterface adapter based on the specified BusinessQueryProviderInterface.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.