|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.portal.data.functions.QueryFunction com.endeca.portal.data.functions.QueryFilter com.endeca.portal.data.functions.RefinementFilter
public class RefinementFilter
Defines a single refinement (essentially represents a DimVal and its path) to be added to a QueryState.
Nested Class Summary | |
---|---|
static class |
RefinementFilter.MultiSelect
|
Field Summary | |
---|---|
static java.lang.String |
JSON_CONFIG_DIM_VAL_ID
|
static java.lang.String |
JSON_CONFIG_DIMENSION_ID
|
static java.lang.String |
JSON_CONFIG_MULTI_SELECT
|
static java.lang.String |
JSON_CONFIG_NAVIGABLE
|
Fields inherited from class com.endeca.portal.data.functions.QueryFunction |
---|
CLASS_PROPERTY |
Constructor Summary | |
---|---|
protected |
RefinementFilter()
Empty constructor is not public, to nudge users toward one of the more useful constructors. |
|
RefinementFilter(java.lang.String attributeValue,
java.lang.String attributeKey)
Constructs a refinement filter with the specified attributeValue and attributeKey ID, defaulting to multiselect "none" and defaulting navigable to "true." |
|
RefinementFilter(java.lang.String attributeValue,
java.lang.String attributeKey,
RefinementFilter.MultiSelect multiSelect)
Constructs a refinement filter with the specified attributeValue and attributeKey ID, and multiselect value and defaulting navigable to "true." |
|
RefinementFilter(java.lang.String attributeValue,
java.lang.String attributeKey,
RefinementFilter.MultiSelect multiSelect,
boolean navigable)
Constructs a refinement filter with the specified attributeValue and attributeKey ID, multiselect value and navigable value. |
Method Summary | |
---|---|
void |
applyToDiscoveryServiceQuery(com.endeca.mdex.conversation.Request query)
Apply this function to a Request. |
void |
beforeQueryStateAdd(QueryState state)
Checks to see if other is either single select on the same attribute or a duplicate multi select refinement, and if one is found we remove the function in the query state. |
java.lang.String |
getAttributeKey()
|
java.lang.String |
getAttributeValue()
|
java.lang.String |
getDimensionId()
Deprecated. As of Latitude 2.1, replaced by getAttributeKey() |
java.lang.String |
getDimValId()
Deprecated. As of Latitude 2.1, replaced by getAttributeValue() |
RefinementFilter.MultiSelect |
getMultiSelect()
|
boolean |
isMultiSelectAnd()
|
boolean |
isMultiSelectOr()
|
boolean |
isNavigable()
|
boolean |
isSingleSelect()
|
void |
setAttributeKey(java.lang.String attributeKey)
|
void |
setAttributeValue(java.lang.String attributeValue)
|
void |
setDimensionId(java.lang.String dimensionId)
Deprecated. As of Latitude 2.1, replaced by setAttributeKey(String) |
void |
setDimValId(java.lang.String dimValId)
Deprecated. As of Latitude 2.1, replaced by setAttributeValue(String) |
void |
setMultiSelect(RefinementFilter.MultiSelect multiSelect)
|
void |
setNavigable(boolean navigable)
|
java.lang.String |
toString()
This class' toString is abstract: all concrete subclasses are expected to provide an implementation. toString is used in comparing QueryFunction instances for equality, so if you implement a QueryFunction subclass it is important that your toString implementation be consistent and deterministic. |
Methods inherited from class com.endeca.portal.data.functions.QueryFunction |
---|
clone, equals, equals, getName, hashCode, initializeFromJSON, setName |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JSON_CONFIG_DIM_VAL_ID
public static final java.lang.String JSON_CONFIG_DIMENSION_ID
public static final java.lang.String JSON_CONFIG_MULTI_SELECT
public static final java.lang.String JSON_CONFIG_NAVIGABLE
Constructor Detail |
---|
protected RefinementFilter()
public RefinementFilter(java.lang.String attributeValue, java.lang.String attributeKey)
attributeValue
- attributeKey
- public RefinementFilter(java.lang.String attributeValue, java.lang.String attributeKey, RefinementFilter.MultiSelect multiSelect)
attributeValue
- attributeKey
- multiSelect
- public RefinementFilter(java.lang.String attributeValue, java.lang.String attributeKey, RefinementFilter.MultiSelect multiSelect, boolean navigable)
attributeValue
- attributeKey
- multiSelect
- navigable
- Method Detail |
---|
public java.lang.String getAttributeValue()
public void setAttributeValue(java.lang.String attributeValue)
@Deprecated public java.lang.String getDimValId()
getAttributeValue()
@Deprecated public void setDimValId(java.lang.String dimValId)
setAttributeValue(String)
public java.lang.String getAttributeKey()
public void setAttributeKey(java.lang.String attributeKey)
@Deprecated public java.lang.String getDimensionId()
getAttributeKey()
@Deprecated public void setDimensionId(java.lang.String dimensionId)
setAttributeKey(String)
public RefinementFilter.MultiSelect getMultiSelect()
public void setMultiSelect(RefinementFilter.MultiSelect multiSelect)
public boolean isNavigable()
public void setNavigable(boolean navigable)
public boolean isMultiSelectOr()
public boolean isMultiSelectAnd()
public boolean isSingleSelect()
public void applyToDiscoveryServiceQuery(com.endeca.mdex.conversation.Request query) throws QueryFunctionUnsupportedException
QueryFunction
applyToDiscoveryServiceQuery
in class QueryFunction
QueryFunctionUnsupportedException
public java.lang.String toString()
QueryFunction
toString
in class QueryFunction
public void beforeQueryStateAdd(QueryState state)
beforeQueryStateAdd
in class QueryFunction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |