com.endeca.b2creference.utils
Class DimensionSearchUtils

java.lang.Object
  extended by com.endeca.b2creference.utils.DimensionSearchUtils

public class DimensionSearchUtils
extends java.lang.Object


Constructor Summary
DimensionSearchUtils()
           
 
Method Summary
static java.util.Map<java.lang.String,java.util.List<com.endeca.soleng.uiComponentLibrary.web.urlFormatter.components.elements.SearchSuggestionElementUrl>> filterAndGroupDimSearchResults(com.endeca.soleng.uiComponentLibrary.web.urlFormatter.components.DimValSuggestionListComponentUrl searchSuggestions, java.util.Set<java.lang.String> dims)
          Groups dimension search results by dimension, only returning results for dimensions in dims, order will be the same as dims, so it is recommended to use a LinkedHashSet, TreeSet, or some other Set with a defined order
static java.util.Map<java.lang.String,java.util.List<com.endeca.soleng.uiComponentLibrary.web.urlFormatter.components.elements.SearchSuggestionElementUrl>> filterAndGroupDimSearchResults(com.endeca.soleng.uiComponentLibrary.web.urlFormatter.components.DimValSuggestionListComponentUrl searchSuggestions, java.lang.String dimsStr, java.lang.String separator)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DimensionSearchUtils

public DimensionSearchUtils()
Method Detail

filterAndGroupDimSearchResults

public static java.util.Map<java.lang.String,java.util.List<com.endeca.soleng.uiComponentLibrary.web.urlFormatter.components.elements.SearchSuggestionElementUrl>> filterAndGroupDimSearchResults(com.endeca.soleng.uiComponentLibrary.web.urlFormatter.components.DimValSuggestionListComponentUrl searchSuggestions,
                                                                                                                                                                                                  java.util.Set<java.lang.String> dims)
Groups dimension search results by dimension, only returning results for dimensions in dims, order will be the same as dims, so it is recommended to use a LinkedHashSet, TreeSet, or some other Set with a defined order

Parameters:
dims -
searchSuggestions -
Returns:

filterAndGroupDimSearchResults

public static java.util.Map<java.lang.String,java.util.List<com.endeca.soleng.uiComponentLibrary.web.urlFormatter.components.elements.SearchSuggestionElementUrl>> filterAndGroupDimSearchResults(com.endeca.soleng.uiComponentLibrary.web.urlFormatter.components.DimValSuggestionListComponentUrl searchSuggestions,
                                                                                                                                                                                                  java.lang.String dimsStr,
                                                                                                                                                                                                  java.lang.String separator)
Parameters:
searchSuggestions -
dimsProp -
Returns:
See Also:
Overloaded method that assumes the given string is a new-line delimited set of dimension names that should be included in the resulting dimensin search results. Null or empty dimsStr will result in all dimensions being included.