com.endeca.portal.cascade
Class CascadeUtil

java.lang.Object
  extended by com.endeca.portal.cascade.CascadeUtil

public class CascadeUtil
extends java.lang.Object


Constructor Summary
CascadeUtil()
           
 
Method Summary
static CascadeResult findCascadeResult(java.util.Map<java.lang.String,DimensionState> dimensionStates, java.util.List<QueryFunction> queryFunctions, java.util.List<CascadeKey> cascadeAttributes, SemanticView view, boolean cascadeEnabled)
          Find cascade result
static java.util.List<CascadeKey> getCascadeKeys(java.util.List<java.lang.String> attrKeys)
           
static java.util.Map<java.lang.String,DimensionState> getCurrentDimensionStates(DataSource dataSource, java.util.Locale locale, SemanticView view, java.util.List<CascadeKey> dimKeys, java.util.Set<java.lang.String> hierarchicalAttributes, boolean isCascadeEnabled)
          Executes a query that fetches the dimension counts and/or hierarchy level
static java.util.Set<java.lang.String> getHierarchicalAttributes(javax.portlet.PortletRequest request, DataSource dataSource, SemanticView view, java.util.List<CascadeKey> dimKeys)
          Checks required dimensions from current semantic view map.
static java.util.Set<java.lang.String> getManagedAttributes(javax.portlet.PortletRequest request, DataSource dataSource, SemanticView view, java.util.List<CascadeKey> dimKeys)
          Returns the list of cascade attributes with an indication of which is a managed attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CascadeUtil

public CascadeUtil()
Method Detail

getCascadeKeys

public static java.util.List<CascadeKey> getCascadeKeys(java.util.List<java.lang.String> attrKeys)

getManagedAttributes

public static java.util.Set<java.lang.String> getManagedAttributes(javax.portlet.PortletRequest request,
                                                                   DataSource dataSource,
                                                                   SemanticView view,
                                                                   java.util.List<CascadeKey> dimKeys)
                                                            throws DataSourceException
Returns the list of cascade attributes with an indication of which is a managed attribute

Parameters:
dataSource -
viewKey -
dimensions -
viewModel -
Throws:
DataSourceException

getHierarchicalAttributes

public static java.util.Set<java.lang.String> getHierarchicalAttributes(javax.portlet.PortletRequest request,
                                                                        DataSource dataSource,
                                                                        SemanticView view,
                                                                        java.util.List<CascadeKey> dimKeys)
                                                                 throws DataSourceException
Checks required dimensions from current semantic view map.

Parameters:
dataSource -
viewKey -
dimensions -
viewModel -
Throws:
DataSourceException

getCurrentDimensionStates

public static java.util.Map<java.lang.String,DimensionState> getCurrentDimensionStates(DataSource dataSource,
                                                                                       java.util.Locale locale,
                                                                                       SemanticView view,
                                                                                       java.util.List<CascadeKey> dimKeys,
                                                                                       java.util.Set<java.lang.String> hierarchicalAttributes,
                                                                                       boolean isCascadeEnabled)
                                                                                throws DataSourceException,
                                                                                       KeyNotFoundException
Executes a query that fetches the dimension counts and/or hierarchy level

Parameters:
dataSource -
viewKey -
dimKeys -
hierarchies -
Returns:
Throws:
DataSourceException
KeyNotFoundException

findCascadeResult

public static CascadeResult findCascadeResult(java.util.Map<java.lang.String,DimensionState> dimensionStates,
                                              java.util.List<QueryFunction> queryFunctions,
                                              java.util.List<CascadeKey> cascadeAttributes,
                                              SemanticView view,
                                              boolean cascadeEnabled)
                                       throws DataSourceException,
                                              KeyNotFoundException
Find cascade result

Parameters:
navigationMenu -
queryFunctions -
cascadeAttributes -
dataSource -
viewKey -
cascadeEnabled -
Returns:
Throws:
DataSourceException
KeyNotFoundException