Package io.goobi.viewer.model.search
Class SearchQueryGroup
java.lang.Object
io.goobi.viewer.model.search.SearchQueryGroup
- All Implemented Interfaces:
Serializable
Search query group for the advanced search.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSearchQueryGroup(List<AdvancedSearchFieldConfiguration> fieldConfigs, String template) Constructor for SearchQueryGroup. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddNewQueryItem(String field, int afterIndex) addNewQueryItem.getAvailableOperators.Getter for the fieldoperator.Getter for the fieldqueryItems.voidinit(List<AdvancedSearchFieldConfiguration> fieldConfigs, String template) voidinjectItems(List<SearchQueryItem> items) Replaces query items in this group with the given list.booleanisBlank()booleanremoveQueryItem.voidSetter for the fieldoperator.
-
Constructor Details
-
SearchQueryGroup
Constructor for SearchQueryGroup.
- Parameters:
fieldConfigs-template-
-
-
Method Details
-
init
- Parameters:
fieldConfigs-template-
-
injectItems
Replaces query items in this group with the given list.- Parameters:
items-
-
isBlank
public boolean isBlank()- Returns:
- true if none of the items has any value input; false otherwise
-
getAvailableOperators
getAvailableOperators.
- Returns:
- a
Listobject.
-
getQueryItems
Getter for the field
queryItems.- Returns:
- the queryItems
-
addNewQueryItem
addNewQueryItem.
- Parameters:
field- Index field for the new itemafterIndex- Item index after which to place new new item- Returns:
- true if operation successful; false otherwise
-
removeQueryItem
removeQueryItem.
- Parameters:
item- aSearchQueryItemobject.- Returns:
- a boolean.
-
getOperator
Getter for the field
operator.- Returns:
- the operator
-
setOperator
Setter for the field
operator.- Parameters:
operator- the operator to set
-