public class CatalogLiveFilterQuery extends BaseManager
CatalogLiveFilterQuery
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
Modifier and Type | Field and Description |
---|---|
static int |
GLOBAL_FILTER_FLAG_USE_CATEGORY_FILTER |
static int |
GLOBAL_FILTER_FLAG_USE_CATEGORY_FILTER_RESULT_FOR_RECORD_FILTER |
static int |
GLOBAL_FILTER_FLAG_USE_RECORD_FILTER |
static int |
RECORD_FILTER_PARAMS_FIND_ABOVE |
static int |
RECORD_FILTER_PARAMS_FIND_BELOW |
static int |
RECORD_FILTER_PARAMS_FIND_RELATED |
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCategoryFilter()
Returns the stored category filter query.
|
int |
getGlobalFilterFlags()
Returns which live filters should be used.
|
java.lang.String |
getRecordFilter()
Returns the current record filter query
|
int |
getRecordFilterParams()
Returns the settings for the record filter in case of a category search to also
RECORD_FILTER_PARAMS_FIND_ABOVE , RECORD_FILTER_PARAMS_FIND_BELOW or
RECORD_FILTER_PARAMS_FIND_RELATED . |
boolean |
isCategoryFilterEnabled()
Returns true if the category filter is being used.
|
boolean |
isRecordFilterEnabled()
Returns true if the record filter is being used.
|
boolean |
isRecordFilterParamFindAbove()
Returns whether the record filter query should expand found categories to the categories above the found one.
|
boolean |
isRecordFilterParamFindBelow()
Returns whether the record filter query should expand found categories to the categories below the found one.
|
boolean |
isRecordFilterParamFindRelated()
Returns whether the record filter query should expand found categories to the categories related the found one.
|
void |
setCategoryFilter(java.lang.String value)
Sets the new category filter query
|
void |
setCategoryFilterEnabled(boolean value)
Set whether the category filter should be active.
|
void |
setGlobalFilterFlags(int value)
Sets which live filters should be used.
|
void |
setRecordFilter(java.lang.String value)
Sets the new record filter query.
|
void |
setRecordFilterEnabled(boolean value)
Sets whether the record filter should be used.
|
void |
setRecordFilterParamFindAbove(boolean value)
Sets whether the record filter query should expand found categories to the categories above the found one.
|
void |
setRecordFilterParamFindBelow(boolean value)
Sets whether the record filter query should expand found categories to the categories below the found one.
|
void |
setRecordFilterParamFindRelated(boolean value)
Sets whether the record filter query should expand found categories to the categories related the found one.
|
void |
setRecordFilterParams(int value)
Sets which query settings for the record live filter should be used.
|
void |
setUseCategoryFilterResultsForRecordFilter(boolean value)
Setting this to true overrides the stored record filter but uses a record filter that returns all records
that are assigned to the categories found by the category filter.
|
boolean |
useCategoryFilterResultsForRecordFilter()
Returns true if the category filter results are used for the record query.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public static final int GLOBAL_FILTER_FLAG_USE_CATEGORY_FILTER
public static final int GLOBAL_FILTER_FLAG_USE_RECORD_FILTER
public static final int GLOBAL_FILTER_FLAG_USE_CATEGORY_FILTER_RESULT_FOR_RECORD_FILTER
public static final int RECORD_FILTER_PARAMS_FIND_ABOVE
public static final int RECORD_FILTER_PARAMS_FIND_BELOW
public static final int RECORD_FILTER_PARAMS_FIND_RELATED
public int getGlobalFilterFlags()
GLOBAL_FILTER_FLAG_USE_RECORD_FILTER
,
GLOBAL_FILTER_FLAG_USE_CATEGORY_FILTER
and GLOBAL_FILTER_FLAG_USE_CATEGORY_FILTER_RESULT_FOR_RECORD_FILTER
are encoded as bits of the returned int.
isRecordFilterEnabled()
or isCategoryFilterEnabled()
instead.public void setGlobalFilterFlags(int value)
GLOBAL_FILTER_FLAG_USE_RECORD_FILTER
,
GLOBAL_FILTER_FLAG_USE_CATEGORY_FILTER
and GLOBAL_FILTER_FLAG_USE_CATEGORY_FILTER_RESULT_FOR_RECORD_FILTER
are encoded as bits of the int.
setRecordFilterEnabled(boolean)
or setCategoryFilterEnabled(boolean)
instead.value
- the bits OR-ed into a single intpublic void setCategoryFilterEnabled(boolean value)
value
- true if the category filter should be usedpublic int getRecordFilterParams()
RECORD_FILTER_PARAMS_FIND_ABOVE
, RECORD_FILTER_PARAMS_FIND_BELOW
or
RECORD_FILTER_PARAMS_FIND_RELATED
.
isRecordFilterParamFindAbove()
, isRecordFilterParamFindBelow()
or
isRecordFilterParamFindRelated()
instead.public boolean isRecordFilterParamFindAbove()
public boolean isRecordFilterParamFindBelow()
public boolean isRecordFilterParamFindRelated()
public void setRecordFilterParams(int value)
RECORD_FILTER_PARAMS_FIND_ABOVE
,
RECORD_FILTER_PARAMS_FIND_BELOW
and RECORD_FILTER_PARAMS_FIND_RELATED
are encoded as bits of the int.
setRecordFilterParamFindAbove(boolean)
, setRecordFilterParamFindBelow(boolean)
or setRecordFilterParamFindRelated(boolean)
instead.value
- the bits OR-ed into a single intpublic void setRecordFilterParamFindAbove(boolean value)
value
- true if the record filter query should expand found categories to the categories above the found onepublic void setRecordFilterParamFindBelow(boolean value)
value
- true if the record filter query should expand found categories to the categories below the found onepublic void setRecordFilterParamFindRelated(boolean value)
value
- true if the record filter query should expand found categories to the categories related the found onepublic void setRecordFilterEnabled(boolean value)
value
- true if the record filter should be usedpublic void setUseCategoryFilterResultsForRecordFilter(boolean value)
value
- set to true to filter for records assigned to the found categoriespublic boolean isCategoryFilterEnabled()
public boolean isRecordFilterEnabled()
public boolean useCategoryFilterResultsForRecordFilter()
public java.lang.String getCategoryFilter()
public void setCategoryFilter(java.lang.String value)
value
- new category filter querypublic java.lang.String getRecordFilter()
public void setRecordFilter(java.lang.String value)
value
- new record filter querywww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.