Package io.goobi.viewer.model.search
Class AdvancedSearchFieldConfiguration
java.lang.Object
io.goobi.viewer.model.search.AdvancedSearchFieldConfiguration
Configuration element for advanced search fields.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetField()getLabel()booleanbooleanbooleanbooleanisRange()booleanbooleansetAllowMultipleItems(boolean allowMultipleItems) setDisabled(boolean disabled) setDisplaySelectItemsThreshold(int displaySelectItemsThreshold) setHierarchical(boolean hierarchical) setPreselectValue(String preselectValue) setRange(boolean range) setReplaceRegex(String replaceRegex) setReplaceWith(String replaceWith) setSelectType(String selectType) setUntokenizeForPhraseSearch(boolean untokenizeForPhraseSearch) setVisible(boolean visible)
-
Field Details
-
DEFAULT_THRESHOLD
public static final int DEFAULT_THRESHOLD- See Also:
-
SELECT_TYPE_BADGES
- See Also:
-
SELECT_TYPE_CHECKBOXES
- See Also:
-
SELECT_TYPE_DROPDOWN
- See Also:
-
-
Constructor Details
-
AdvancedSearchFieldConfiguration
- Parameters:
field- Solr field name or separate placeholder
-
-
Method Details
-
getField
- Returns:
- the field
-
getLabel
- Returns:
- the label
-
setLabel
- Parameters:
label- the label to set- Returns:
- this object
-
isHierarchical
public boolean isHierarchical()- Returns:
- the hierarchical
-
setHierarchical
- Parameters:
hierarchical- the hierarchical to set- Returns:
- this object
-
isRange
public boolean isRange()- Returns:
- the range
-
setRange
- Parameters:
range- the range to set- Returns:
- this object
-
isUntokenizeForPhraseSearch
public boolean isUntokenizeForPhraseSearch()- Returns:
- the untokenizeForPhraseSearch
-
setUntokenizeForPhraseSearch
public AdvancedSearchFieldConfiguration setUntokenizeForPhraseSearch(boolean untokenizeForPhraseSearch) - Parameters:
untokenizeForPhraseSearch- the untokenizeForPhraseSearch to set- Returns:
- this object
-
isDisabled
public boolean isDisabled()- Returns:
- the disabled
-
setDisabled
- Parameters:
disabled- the disabled to set- Returns:
- this object
-
isVisible
public boolean isVisible()- Returns:
- the visible
-
isAllowMultipleItems
public boolean isAllowMultipleItems()- Returns:
- the allowMultipleItems
-
setAllowMultipleItems
- Parameters:
allowMultipleItems- the allowMultipleItems to set- Returns:
- this
-
setVisible
- Parameters:
visible- the visible to set- Returns:
- this
-
getDisplaySelectItemsThreshold
public int getDisplaySelectItemsThreshold()- Returns:
- the displaySelectItemsThreshold
-
setDisplaySelectItemsThreshold
public AdvancedSearchFieldConfiguration setDisplaySelectItemsThreshold(int displaySelectItemsThreshold) - Parameters:
displaySelectItemsThreshold- the displaySelectItemsThreshold to set- Returns:
- this
-
getSelectType
- Returns:
- the selectType
-
setSelectType
- Parameters:
selectType- the selectType to set- Returns:
- this
-
getReplaceRegex
- Returns:
- the replaceRegex
-
setReplaceRegex
- Parameters:
replaceRegex- the replaceRegex to set- Returns:
- this
-
getReplaceWith
- Returns:
- the replaceWith
-
setReplaceWith
- Parameters:
replaceWith- the replaceWith to set- Returns:
- this
-
getPreselectValue
- Returns:
- the preselectValue
-
setPreselectValue
- Parameters:
preselectValue- the preselectValue to set- Returns:
- this
-