public interface CourseFacetStrategy
Modifier and Type | Method and Description |
---|---|
Map<String,Map<String,FacetState>> |
createInitialFacetStateMap(Map<String,List<String>> facetColumns,
List<SearchInfo> searchResults)
Creates the map of initial facet states values for the course search results.
|
boolean |
facetClick(String fclick,
String fcol,
Map<String,FacetState> facetStateMap,
boolean oneclick)
Update checked state on all facets following a click event from the
browser.
|
boolean |
facetClickAll(boolean oneClick,
Map<String,Map<String,FacetState>> facetStateMap)
If a facet has already be clicked reset all facet values to true
|
Map<String,Integer> |
getFacetColumns()
Creates a mapping of the facet group names and the index they are in when ordered.
|
Map<String,Comparator<String>> |
getFacetSort()
Retrieves a static map of facets to their related sort algorithm.
|
List<String> |
getSortedFacetColumnNames()
Returns a list of the facet group names in order
|
Map<String,Map<String,FacetState>> |
processFacetStateMap(Map<String,Map<String,FacetState>> facetStateMap,
Map<String,List<String>> facetColumns)
Refines and updates the facet states
|
void |
updateFacetCounts(List<SearchInfo> searchResults,
Map<String,Map<String,FacetState>> facetState,
Map<String,List<String>> facetCols)
Updates the number of results shown for each facet value based on the current facet filtering
|
Map<String,Integer> getFacetColumns()
List<String> getSortedFacetColumnNames()
Map<String,Comparator<String>> getFacetSort()
void updateFacetCounts(List<SearchInfo> searchResults, Map<String,Map<String,FacetState>> facetState, Map<String,List<String>> facetCols)
searchResults
- - List of the search resultsfacetState
- - Map of the current facet informationfacetCols
- - Map of the facet available for each search item.boolean facetClick(String fclick, String fcol, Map<String,FacetState> facetStateMap, boolean oneclick)
fclick
- - The facet key clicked. May be 'All'.fcol
- - The facet column the click is related to.facetStateMap
- - The facet state maponeclick
- - Current state if a facet value has been set to falseboolean facetClickAll(boolean oneClick, Map<String,Map<String,FacetState>> facetStateMap)
oneClick
- - Current state if a facet value has been set to falsefacetStateMap
- - The facet state mapMap<String,Map<String,FacetState>> createInitialFacetStateMap(Map<String,List<String>> facetColumns, List<SearchInfo> searchResults)
facetColumns
- - Map of the facet available for each search item.searchResults
- - List of results returned in the searchMap<String,Map<String,FacetState>> processFacetStateMap(Map<String,Map<String,FacetState>> facetStateMap, Map<String,List<String>> facetColumns)
facetStateMap
- - Map of the current states of all facet value.facetColumns
- - Map of the facet available for each search item.Copyright © 2004–2014 The Kuali Foundation. All rights reserved.