public class QueryConditionCategories extends QueryConditionBase
Modifier and Type | Class and Description |
---|---|
static class |
QueryConditionCategories.MatchMode
The available match modes for the Categories field.
|
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
void |
checkConfiguration(java.util.Locale locale)
Checks the current configuration for its validity.
|
java.util.List<ItemIdentifier> |
getCategories()
Returns the wanted categories for the match mode
QueryConditionCategories.MatchMode.CONTAINS . |
java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> |
getCategoriesForCatalogs()
Returns the wanted categories for the match mode
QueryConditionCategories.MatchMode.CONTAINS grouped by catalog. |
QueryConditionCategories.MatchMode |
getMatchMode()
Returns the current match mode
|
void |
setCategories(java.util.List<ItemIdentifier> identifiers)
Sets the wanted categories for the match mode
QueryConditionCategories.MatchMode.CONTAINS . |
void |
setMatchMode(QueryConditionCategories.MatchMode matchMode)
Sets the current match mode
|
java.lang.String |
toDisplayString(java.util.Locale locale,
FieldDefinition fieldDefinition,
MultiItemCollection multiItemCollection)
Converts this configuration into a presentable display string.
|
java.lang.String |
toQueryString(java.util.Locale locale,
FieldDefinition fieldDefinition)
Returns a query string that represents this configuration.
|
getFieldData, isDoesNotMatchMode, isFieldDataMode
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public QueryConditionCategories.MatchMode getMatchMode()
public void setMatchMode(QueryConditionCategories.MatchMode matchMode)
matchMode
- new match modepublic void setCategories(java.util.List<ItemIdentifier> identifiers)
QueryConditionCategories.MatchMode.CONTAINS
.identifiers
- wanted categories for the match mode QueryConditionCategories.MatchMode.CONTAINS
public java.util.List<ItemIdentifier> getCategories()
QueryConditionCategories.MatchMode.CONTAINS
.QueryConditionCategories.MatchMode.CONTAINS
public java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> getCategoriesForCatalogs()
QueryConditionCategories.MatchMode.CONTAINS
grouped by catalog.QueryConditionCategories.MatchMode.CONTAINS
grouped by catalogpublic void checkConfiguration(java.util.Locale locale) throws InvalidStateException
locale
- Locale to use when checking this instanceInvalidStateException
- if the current state is not validpublic java.lang.String toDisplayString(java.util.Locale locale, FieldDefinition fieldDefinition, MultiItemCollection multiItemCollection)
locale
- Locale to use for creating the display stringfieldDefinition
- FieldDefinition of the field to create the display string formultiItemCollection
- collection required for building the category display namespublic java.lang.String toQueryString(java.util.Locale locale, FieldDefinition fieldDefinition)
toQueryString
in class QueryConditionBase
locale
- Locale to use for creating the queryfieldDefinition
- the field definition of the field to create this query forwww.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.