|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.filters.timebased.olap.OLAPTimeFilterUtil
public class OLAPTimeFilterUtil
Field Summary | |
---|---|
static java.lang.String |
OLAP_RELATIVE_TIME_CONDITION_CLASS_NAME
|
static java.lang.String |
RB_KEY
|
Constructor Summary | |
---|---|
OLAPTimeFilterUtil()
|
Method Summary | |
---|---|
static java.lang.String |
capitalize(java.lang.String s)
Capitalizes the first letter of a string |
static LevelInterface |
getLevel(java.lang.Object model,
MetadataInterface metadata,
java.lang.String cubeName,
java.lang.String uniqueLevelName,
java.lang.String uniqueMemberName)
Returns a LevelInterface object given either a uniqueLevelName or a uniqueMemberName. |
static java.util.List |
getReadableTextForTimeLevel(java.lang.Object model,
MetadataInterface metadata,
java.lang.String cubeName,
java.lang.String uniqueLevelName,
java.lang.String uniqueMemberName)
|
static java.util.List |
getReadableTextForTimeLevel(java.lang.Object model,
MetadataInterface metadata,
java.lang.String cubeName,
java.lang.String uniqueLevelName,
java.lang.String uniqueMemberName,
java.util.Locale locale)
Returns a List containing the singular and plural readable text for a time level (e.g. |
static java.lang.Object |
getTestNodeValueObject(FilterLogicTestNodeInterface filterLogicTestNode)
Returns the 'data' property of the first value found in the given test node. |
static boolean |
isOLAPRelativeTimeCondition(boolean isFullSearch,
AdvancedFilterModelInterface validModel,
java.lang.String selectedCondition)
Returns true if the condition is an OLAP relative time condition, false otherwise. |
static boolean |
isOLAPRelativeTimeCondition(FilterLogicTestNodeInterface filterLogicTestNode)
|
static boolean |
isOLAPRelativeTimeFilterToApply(FilterableListModelInterface aModel)
Returns true if any of the data items has an associated OLAP Relative Time Filter to apply, false otherwise. |
static boolean |
isOLAPRetiveTimeFilterNewDefinition(AdvancedFilterModelInterface advancedFilterModel)
Returns true if we are defining an OLAP relative time filter for the first time on the current dataitem, flase otherwise. |
Field Detail |
---|
public static final java.lang.String RB_KEY
public static java.lang.String OLAP_RELATIVE_TIME_CONDITION_CLASS_NAME
Constructor Detail |
---|
public OLAPTimeFilterUtil()
Method Detail |
---|
public static java.util.List getReadableTextForTimeLevel(java.lang.Object model, MetadataInterface metadata, java.lang.String cubeName, java.lang.String uniqueLevelName, java.lang.String uniqueMemberName)
public static java.util.List getReadableTextForTimeLevel(java.lang.Object model, MetadataInterface metadata, java.lang.String cubeName, java.lang.String uniqueLevelName, java.lang.String uniqueMemberName, java.util.Locale locale)
public static LevelInterface getLevel(java.lang.Object model, MetadataInterface metadata, java.lang.String cubeName, java.lang.String uniqueLevelName, java.lang.String uniqueMemberName)
public static java.lang.String capitalize(java.lang.String s)
public static boolean isOLAPRelativeTimeCondition(boolean isFullSearch, AdvancedFilterModelInterface validModel, java.lang.String selectedCondition)
isFullSearch
- true to check first the currently selected condition and then, if it's not an OLAP relative time condition,
check the condition associated to the currently active dataitem,
false to check only the currently selected condition.validModel
- the AdvancedFilterModelInterface used to get the condition to check, it null, false is returned.selectedCondition
- the currently selected condition, if null and isFullSearch only checks the the currently selected condition, if null and not isFullSearch checks nothing and returns false.
public static boolean isOLAPRelativeTimeCondition(FilterLogicTestNodeInterface filterLogicTestNode)
public static boolean isOLAPRelativeTimeFilterToApply(FilterableListModelInterface aModel)
aModel
- the FilterableListModelInterface used to get the list of the filterable data tiems to check.
public static java.lang.Object getTestNodeValueObject(FilterLogicTestNodeInterface filterLogicTestNode)
filterLogicTestNode
- the test node to examine
FilterValueInterface
public static boolean isOLAPRetiveTimeFilterNewDefinition(AdvancedFilterModelInterface advancedFilterModel)
advancedFilterModel
- the AdvancedFilterModelInterface used to get the current data item and its current condition.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |