|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.dataitems.OLAPTableRoles
public class OLAPTableRoles
Defines and manages the roles for an OLAP, or multi-dimensional, query.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sas.dataselectors.dataitems.TableRoles |
---|
TableRoles.Role |
Field Summary | |
---|---|
static java.lang.String |
BOOK
Constant for the name of the book role. |
static java.lang.String |
CHAPTER
Constant for the name of the chapter role. |
static java.lang.String |
PAGE
Constant for the name of the page role. |
static java.lang.String |
ROW
Constant for the name of the row role. |
static java.lang.String |
SECTION
Constant for the name of the section role. |
Fields inherited from class com.sas.dataselectors.dataitems.TableRoles |
---|
_businessModel, COLUMN, dataItemRefList, FILTER, iMap, originalItemList, queryType, RB_KEY, RB_KEY2, selectedItems, SLICER |
Fields inherited from interface com.sas.dataselectors.dataitems.DataItemSelectorInterface |
---|
DISPLAY_DETAIL_VALUES, GROUP_BY_CATEGORY_VALUES |
Constructor Summary | |
---|---|
OLAPTableRoles(com.sas.iquery.metadata.business.BusinessQuery businessQuery)
Constructor. |
|
OLAPTableRoles(com.sas.iquery.metadata.business.BusinessQuery businessQuery,
com.sas.iquery.metadata.business.InformationMap imap)
|
Method Summary | |
---|---|
java.util.List |
getAvailableEnabledNodeIds(java.lang.String selectedRole)
Returns a list of the item ids for the items available for selection for the selected role. |
java.util.List |
getAvailableItemInfoList(java.lang.String selectedRole)
Returns a list of DataItemTreeNodeInfo objects, representing the list of items available for the selected role. |
protected java.util.List |
getAvailableRoleItems(com.sas.util.RoleInterface role)
Return the list of items available to add to the role |
javax.swing.tree.TreeModel |
getAvailableTreeModel(com.sas.util.transforms.TransformInterface transform,
java.lang.String selectedRole)
Creates a TreeModel representation of the available items for the BusinessModel. |
java.util.List |
getSelectedItemInfoList(java.lang.String selectedRole)
Returns a list of DataItemTreeNodeInfo objects, representing the list of items assigned to the selected role. |
boolean |
hasValidRoles()
Checks that the data represented by this object satisfies the rules of the BusinessQuery. |
protected boolean |
isValidRole(java.lang.String name)
Checks that the role identified by the name parameter is one of the roles supported by this implementation. |
Field Detail |
---|
public static final java.lang.String ROW
PAGE
,
CHAPTER
,
SECTION
,
BOOK
,
Constant Field Valuespublic static final java.lang.String PAGE
ROW
,
CHAPTER
,
SECTION
,
BOOK
,
Constant Field Valuespublic static final java.lang.String CHAPTER
ROW
,
PAGE
,
SECTION
,
BOOK
,
Constant Field Valuespublic static final java.lang.String SECTION
ROW
,
PAGE
,
CHAPTER
,
BOOK
,
Constant Field Valuespublic static final java.lang.String BOOK
ROW
,
PAGE
,
CHAPTER
,
SECTION
,
Constant Field ValuesConstructor Detail |
---|
public OLAPTableRoles(com.sas.iquery.metadata.business.BusinessQuery businessQuery)
dataSelection
- public OLAPTableRoles(com.sas.iquery.metadata.business.BusinessQuery businessQuery, com.sas.iquery.metadata.business.InformationMap imap)
Method Detail |
---|
public boolean hasValidRoles()
hasValidRoles
in class TableRoles
protected boolean isValidRole(java.lang.String name)
isValidRole
in class TableRoles
name
- - the role name to check for validity
public javax.swing.tree.TreeModel getAvailableTreeModel(com.sas.util.transforms.TransformInterface transform, java.lang.String selectedRole)
getAvailableTreeModel
in interface DataItemSelectorInterface
getAvailableTreeModel
in class TableRoles
transform
- A transform object to transform the tree nodes to a different type.role
- The current role of interest
public java.util.List getAvailableItemInfoList(java.lang.String selectedRole)
DataItemSelectorInterface
getAvailableItemInfoList
in interface DataItemSelectorInterface
getAvailableItemInfoList
in class TableRoles
DataItemTreeNodeInfo
public java.util.List getSelectedItemInfoList(java.lang.String selectedRole)
DataItemSelectorInterface
getSelectedItemInfoList
in interface DataItemSelectorInterface
getSelectedItemInfoList
in class TableRoles
selectedRole
- The role of interest
DataItemTreeNodeInfo
public java.util.List getAvailableEnabledNodeIds(java.lang.String selectedRole)
DataItemSelectorInterface
getAvailableEnabledNodeIds
in interface DataItemSelectorInterface
getAvailableEnabledNodeIds
in class TableRoles
selectedRole
- - the currently selected role
protected java.util.List getAvailableRoleItems(com.sas.util.RoleInterface role)
getAvailableRoleItems
in class TableRoles
role
- - the role object
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |