public class RefinementMenu extends BasicContentItem
RefinementMenuHandler
output model.
A RefinementMenu contains a list of Refinement objects that can
be used to make queries to further refine search or navigation results.
The order of Refinements is affected by the boost and bury list in RefinementMenuConfig
.
Depending on URL parameter and Experience Manager configuration, the list of Refinements
contained in a RefinementMenu may be incomplete because each menu may contain too many
refinements to be returned in an initial request. The RefinementMenuHandler
generates a "showMoreLink" NavigationAction
that can be used to retrieve the complete
list of available Refinements unless:
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
RefinementMenu(RefinementMenuConfig pConfig)
Creates the
RefinementMenu output model, using the
type and data present in the input RefinementMenuConfig . |
Modifier and Type | Method and Description |
---|---|
List<Ancestor> |
getAncestors()
Returns the ancestors up to but excluding the Dimension root for this RefinementMenu.
|
NavigationAction |
getCollapseAction()
Returns the action for collapsing this
RefinementMenu . |
String |
getDimensionName()
Returns the dimension name associated with this RefinementMenu.
|
String |
getDisplayName()
Returns the localized display name for the dimension associated with this RefinementMenu.
|
NavigationAction |
getExpandAction()
Returns the action for expanding this
RefinementMenu . |
NavigationAction |
getLessLink()
Returns the action for collapsing the RefinementMenu.
|
NavigationAction |
getMoreLink()
Returns the action for expanding the RefinementMenu.
|
List<Refinement> |
getRefinements()
Returns the list of refinements.
|
JsonAttribute |
getWhyPrecedenceRuleFired()
Returns "why precedence rule fired" debug information.
|
boolean |
isMultiSelect()
Whether this RefinementMenu allows multiple
Refinements to be selected at the same time.
|
void |
setAncestors(List<Ancestor> ancestors)
Sets the ancestors up to but excluding the Dimension root for this RefinementMenu.
|
void |
setCollapseAction(NavigationAction collapseLink)
Sets the action for collapsing this
RefinementMenu . |
void |
setDimensionName(String dimensionName)
Sets the dimension name associated with this RefinementMenu.
|
void |
setDisplayName(String displayName)
Sets the localized display name for the dimension associated with this RefinementMenu.
|
void |
setExpandAction(NavigationAction expandLink)
Sets the action for expanding this
RefinementMenu . |
void |
setLessLink(NavigationAction lessLink)
Sets the action for collapsing the RefinementMenu.
|
void |
setMoreLink(NavigationAction moreLink)
Sets the action for expanding the RefinementMenu.
|
void |
setMultiSelect(boolean multiSelect)
Sets the multi-select property.
|
void |
setRefinements(List<Refinement> refinements)
Sets the list of refinements.
|
void |
setWhyPrecedenceRuleFired(JsonAttribute whyTrigger)
Sets "why precedence rule fired" debug information.
|
getBooleanProperty, getIntProperty, getLongProperty, getType, getTypedProperty, setType
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public RefinementMenu(RefinementMenuConfig pConfig)
RefinementMenu
output model, using the
type and data present in the input RefinementMenuConfig
.public String getDimensionName()
public void setDimensionName(String dimensionName)
public String getDisplayName()
public void setDisplayName(String displayName)
public boolean isMultiSelect()
public void setMultiSelect(boolean multiSelect)
isMultiSelect()
public List<Ancestor> getAncestors()
public void setAncestors(List<Ancestor> ancestors)
public List<Refinement> getRefinements()
public void setRefinements(List<Refinement> refinements)
public NavigationAction getMoreLink()
RefinementMenuConfig.getUseShowMoreIdsParam()
RefinementMenuConfig.isShowMoreLink()
,
RefinementMenuConfig.isShowMore()
public void setMoreLink(NavigationAction moreLink)
public NavigationAction getLessLink()
public void setLessLink(NavigationAction lessLink)
public NavigationAction getExpandAction()
RefinementMenu
.RefinementMenu
.RefinementMenuConfig.getUseShowMoreIdsParam()
public void setExpandAction(NavigationAction expandLink)
RefinementMenu
.public NavigationAction getCollapseAction()
RefinementMenu
.RefinementMenu
.RefinementMenuConfig.getUseShowMoreIdsParam()
public void setCollapseAction(NavigationAction collapseLink)
RefinementMenu
.public void setWhyPrecedenceRuleFired(JsonAttribute whyTrigger)
public JsonAttribute getWhyPrecedenceRuleFired()
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.