|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.endeca.portal.data.functions.QueryFunction
com.endeca.portal.data.functions.QueryFilter
com.endeca.portal.data.functions.LQLFilter
com.endeca.portal.data.functions.NegativeRefinementFilter
public class NegativeRefinementFilter
NegativeRefinementFilter provides a LQL filter for filtering out all records associated with a refinement. Its previous version was based on record filter, instead of LQL filter.
The syntax of the LQL filter expression looks like:
The following properties will be needed to construct a NegativeRefinementFilter instance.
| Field Summary |
|---|
| Fields inherited from class com.endeca.portal.data.functions.QueryFunction |
|---|
CLASS_PROPERTY |
| Constructor Summary | |
|---|---|
protected |
NegativeRefinementFilter()
Empty constructor is not public, to nudge users toward one of the more useful constructors. |
|
NegativeRefinementFilter(java.lang.String attributeKey,
java.lang.String attributeValue)
Class constructor creating a negative refinement filter with a normal attribute of the type String or a non-hierarchical managed attribute whose value spec and name are same. |
|
NegativeRefinementFilter(java.lang.String attributeKey,
java.lang.String attributeValue,
MDEXAttribute.PropertyType attributeType)
Class constructor creating a negative refinement filter with a normal attribute of any type. |
|
NegativeRefinementFilter(java.lang.String attributeKey,
java.lang.String attributeValue,
java.lang.String attributeType)
Class constructor creating a negative refinement filter with a normal attribute of any type. |
|
NegativeRefinementFilter(java.lang.String attributeKey,
java.lang.String attributeValueSpec,
java.lang.String attributeValueName,
java.util.List<java.lang.String> ancestors)
Class constructor creating a negative refinement filter for a managed attribute. |
protected |
NegativeRefinementFilter(java.lang.String attributeKey,
java.lang.String attributeValueSpec,
java.lang.String attributeValueName,
MDEXAttribute.PropertyType attributeType,
java.util.List<java.lang.String> ancestors)
Make this constructor not public to enforce user to choose a right constructor based on the attribute type |
| Method Summary | |
|---|---|
void |
applyToLQLFilter(LQLFilterCollection exprCollection)
Adds the LQL filtering clause (aka fragment) produced by this class to the list of all fragments to be applied in order to generate the QueryState. |
java.lang.String |
getAncestors()
|
java.util.List<java.lang.String> |
getAncestorsList()
|
java.lang.String |
getAttributeKey()
|
MDEXAttribute.PropertyType |
getAttributeType()
|
java.lang.String |
getAttributeValue()
|
java.lang.String |
getAttributeValueName()
|
java.lang.String |
getDimensionName()
Deprecated. As of Latitude 2.1, replaced by getAttributeKey() |
java.lang.String |
getDimValName()
Deprecated. As of Latitude 2.1, replaced by getAttributeValue() |
boolean |
passesSelectiveFilter(java.util.List<java.lang.String> selectiveRefinements)
Override this method for each query filter that can be restricted by the selective refinements state manager feature. |
void |
setAncestors(java.lang.String ancestors)
|
void |
setAncestorsList(java.util.List<java.lang.String> ancestors)
|
void |
setAttributeKey(java.lang.String attributeKey)
|
void |
setAttributeType(MDEXAttribute.PropertyType attributeType)
|
void |
setAttributeValue(java.lang.String attributeValue)
|
void |
setAttributeValueName(java.lang.String attributeValueName)
|
void |
setDimensionName(java.lang.String dimensionName)
Deprecated. As of Latitude 2.1, replaced by setAttributeKey(String) |
void |
setDimValName(java.lang.String dimValName)
Deprecated. As of Latitude 2.1, replaced by setAttributeValue(String) |
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.LQLFilter |
|---|
applyToDiscoveryServiceQuery |
| Methods inherited from class com.endeca.portal.data.functions.QueryFunction |
|---|
beforeQueryStateAdd, clone, equals, equals, getCompareString, getName, getOriginatingDataSourceId, getVersion, hashCode, initializeFromJSON, setName, setOriginatingDataSourceId, setVersion, upgrade |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected NegativeRefinementFilter()
public NegativeRefinementFilter(java.lang.String attributeKey,
java.lang.String attributeValue)
attributeKey - attributeValue -
public NegativeRefinementFilter(java.lang.String attributeKey,
java.lang.String attributeValue,
MDEXAttribute.PropertyType attributeType)
attributeKey - attributeValue - attributeType -
public NegativeRefinementFilter(java.lang.String attributeKey,
java.lang.String attributeValue,
java.lang.String attributeType)
attributeKey - attributeValue - attributeType - A String representation of MDEXAttribute.PropertyType.
Valid values are "STRING", "LONG", "BOOLEAN", "INT", "DOUBLE", "GEOCODE", "DATETIME", "TIME" and "DURATION".
IllegalArgumentException will be thrown if an invalid value is present.
public NegativeRefinementFilter(java.lang.String attributeKey,
java.lang.String attributeValueSpec,
java.lang.String attributeValueName,
java.util.List<java.lang.String> ancestors)
attributeKey - the key of the managed attributeattributeValueSpec - the spec of the attribute valueattributeValueName - the display name of the attribute valueancestors - A list of the display names of the ancestors of the specified attribute value.
Set it as null if the specified attribute value is a root node or the attribute is non-hierarchical.
protected NegativeRefinementFilter(java.lang.String attributeKey,
java.lang.String attributeValueSpec,
java.lang.String attributeValueName,
MDEXAttribute.PropertyType attributeType,
java.util.List<java.lang.String> ancestors)
| Method Detail |
|---|
public void applyToLQLFilter(LQLFilterCollection exprCollection) throws QueryFunctionUnsupportedException
LQLFilterQueryState.
applyToLQLFilter in class LQLFilterexprCollection - the collection of all fragments to be applied
QueryFunctionUnsupportedException - if the filter cannot be appliedpublic java.lang.String toString()
QueryFunction
toString in class QueryFunctionpublic java.lang.String getAttributeValue()
public void setAttributeValue(java.lang.String attributeValue)
public MDEXAttribute.PropertyType getAttributeType()
public void setAttributeType(MDEXAttribute.PropertyType attributeType)
public java.lang.String getAttributeValueName()
public void setAttributeValueName(java.lang.String attributeValueName)
@Deprecated public java.lang.String getDimValName()
getAttributeValue()
@Deprecated public void setDimValName(java.lang.String dimValName)
setAttributeValue(String)
public java.util.List<java.lang.String> getAncestorsList()
public void setAncestorsList(java.util.List<java.lang.String> ancestors)
public java.lang.String getAncestors()
public void setAncestors(java.lang.String ancestors)
public java.lang.String getAttributeKey()
public void setAttributeKey(java.lang.String attributeKey)
public boolean passesSelectiveFilter(java.util.List<java.lang.String> selectiveRefinements)
QueryFunction
passesSelectiveFilter in class QueryFunctionselectiveRefinements - List of selective refinement attributes that are
valid for the current data source.
@Deprecated public java.lang.String getDimensionName()
getAttributeKey()
@Deprecated public void setDimensionName(java.lang.String dimensionName)
setAttributeKey(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||