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
-
Constructor Summary
ConstructorDescriptionSearchQueryGroup
(List<AdvancedSearchFieldConfiguration> fieldConfigs, String template) Constructor for SearchQueryGroup. -
Method Summary
Modifier and TypeMethodDescriptionboolean
addNewQueryItem.getAvailableOperators.Getter for the fieldoperator
.Getter for the fieldqueryItems
.void
init
(List<AdvancedSearchFieldConfiguration> fieldConfigs, String template) void
injectItems
(List<SearchQueryItem> items) Replaces query items in this group with the given list.boolean
isBlank()
boolean
removeQueryItem.void
Setter 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
List
object.
-
getQueryItems
Getter for the field
queryItems
.- Returns:
- the queryItems
-
addNewQueryItem
public boolean addNewQueryItem()addNewQueryItem.
- Returns:
- true if operation successful; false otherwise
-
removeQueryItem
removeQueryItem.
- Parameters:
item
- aSearchQueryItem
object.- Returns:
- a boolean.
-
getOperator
Getter for the field
operator
.- Returns:
- the operator
-
setOperator
Setter for the field
operator
.- Parameters:
operator
- the operator to set
-