Class FullTextSearchFilter
- java.lang.Object
-
- com.hybris.cockpitng.core.model.impl.AbstractObservable
-
- com.hybris.backoffice.widgets.fulltextsearch.renderer.FullTextSearchFilter
-
- All Implemented Interfaces:
Observable,java.lang.Cloneable
- Direct Known Subclasses:
FieldQueryFilter
public class FullTextSearchFilter extends AbstractObservable implements java.lang.Cloneable
Simple observable POJO to collect all data available and needed for the fulltext search to perform its' job.- See Also:
PROPERTY_ENABLED,PROPERTY_NAME,PROPERTY_VALUE
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_ENABLEDName of property used in notification ofenabledflag changestatic java.lang.StringPROPERTY_LOCALEName of property used in notification oflocalechangestatic java.lang.StringPROPERTY_NAMEName of property used in notification ofnamechangestatic java.lang.StringPROPERTY_OPERATORName of property used in notification ofoperatorchangestatic java.lang.StringPROPERTY_VALUEName of property used in notification ofvaluechange-
Fields inherited from class com.hybris.cockpitng.core.model.impl.AbstractObservable
mutex
-
-
Constructor Summary
Constructors Constructor Description FullTextSearchFilter()FullTextSearchFilter(boolean enabled)FullTextSearchFilter(FullTextSearchFilter filter)FullTextSearchFilter(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FullTextSearchFilterclone()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 Use copy constructor instead.java.util.LocalegetLocale()java.lang.StringgetName()ValueComparisonOperatorgetOperator()java.lang.ObjectgetValue()booleanisEnabled()voidsetEnabled(boolean enabled)All observers are notified about change that is done by this method.voidsetLocale(java.util.Locale locale)All observers are notified about change that is done by this method.voidsetName(java.lang.String name)All observers are notified about change that is done by this method.voidsetOperator(ValueComparisonOperator operator)All observers are notified about change that is done by this method.voidsetValue(java.lang.Object value)All observers are notified about change that is done by this method.-
Methods inherited from class com.hybris.cockpitng.core.model.impl.AbstractObservable
addObserver, alreadyExists, changed, changed, getObservedValues, getObservers, removeObserver, removeObserver
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hybris.cockpitng.core.model.Observable
addObserver
-
-
-
-
Field Detail
-
PROPERTY_ENABLED
public static final java.lang.String PROPERTY_ENABLED
Name of property used in notification ofenabledflag change- See Also:
setEnabled(boolean), Constant Field Values
-
PROPERTY_VALUE
public static final java.lang.String PROPERTY_VALUE
Name of property used in notification ofvaluechange- See Also:
setValue(Object), Constant Field Values
-
PROPERTY_NAME
public static final java.lang.String PROPERTY_NAME
Name of property used in notification ofnamechange- See Also:
setName(String), Constant Field Values
-
PROPERTY_OPERATOR
public static final java.lang.String PROPERTY_OPERATOR
Name of property used in notification ofoperatorchange
-
PROPERTY_LOCALE
public static final java.lang.String PROPERTY_LOCALE
Name of property used in notification oflocalechange- See Also:
setLocale(Locale), Constant Field Values
-
-
Constructor Detail
-
FullTextSearchFilter
public FullTextSearchFilter()
-
FullTextSearchFilter
public FullTextSearchFilter(boolean enabled)
-
FullTextSearchFilter
public FullTextSearchFilter(java.lang.String name)
- Parameters:
name- name of filter to be used
-
FullTextSearchFilter
public FullTextSearchFilter(FullTextSearchFilter filter)
-
-
Method Detail
-
getName
public java.lang.String getName()
- Returns:
- name of filter to be used by Fulltext search
-
setName
public void setName(java.lang.String name)
All observers are notified about change that is done by this method.- Parameters:
name- new name of filter to be used by Fulltext search- See Also:
PROPERTY_NAME
-
getOperator
public ValueComparisonOperator getOperator()
- Returns:
- operator to be used by Fulltext search
-
setOperator
public void setOperator(ValueComparisonOperator operator)
All observers are notified about change that is done by this method.- Parameters:
operator- new name of filter to be used by Fulltext search- See Also:
PROPERTY_OPERATOR
-
isEnabled
public boolean isEnabled()
- Returns:
trueif filter should be applied
-
setEnabled
public void setEnabled(boolean enabled)
All observers are notified about change that is done by this method.- Parameters:
enabled-trueif filter should be applied- See Also:
PROPERTY_ENABLED
-
getValue
public java.lang.Object getValue()
- Returns:
- value of a filter
-
setValue
public void setValue(java.lang.Object value)
All observers are notified about change that is done by this method.- Parameters:
value- new value of filter to be used by Fulltext search- See Also:
PROPERTY_VALUE
-
setLocale
public void setLocale(java.util.Locale locale)
All observers are notified about change that is done by this method.- Parameters:
locale- new value of filter to be used by Fulltext search- See Also:
PROPERTY_LOCALE
-
getLocale
public java.util.Locale getLocale()
-
clone
@Deprecated(since="6.7", forRemoval=true) public FullTextSearchFilter clone()Deprecated, for removal: This API element is subject to removal in a future version.since 6.7 Use copy constructor instead.- Overrides:
clonein classjava.lang.Object
-
-