Class SearchQueryGroup

java.lang.Object
io.goobi.viewer.model.search.SearchQueryGroup
All Implemented Interfaces:
Serializable

public class SearchQueryGroup extends Object implements Serializable
Search query group for the advanced search.
See Also:
  • Constructor Details

  • Method Details

    • init

      public void init(List<AdvancedSearchFieldConfiguration> fieldConfigs, String template)
      Parameters:
      fieldConfigs -
      template -
    • injectItems

      public void injectItems(List<SearchQueryItem> items)
      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

      public List<SearchQueryGroup.SearchQueryGroupOperator> getAvailableOperators()

      getAvailableOperators.

      Returns:
      a List object.
    • getQueryItems

      public List<SearchQueryItem> getQueryItems()

      Getter for the field queryItems.

      Returns:
      the queryItems
    • addNewQueryItem

      public boolean addNewQueryItem()

      addNewQueryItem.

      Returns:
      true if operation successful; false otherwise
    • removeQueryItem

      public boolean removeQueryItem(SearchQueryItem item)

      removeQueryItem.

      Parameters:
      item - a SearchQueryItem object.
      Returns:
      a boolean.
    • getOperator

      Getter for the field operator.

      Returns:
      the operator
    • setOperator

      public void setOperator(SearchQueryGroup.SearchQueryGroupOperator operator)

      Setter for the field operator.

      Parameters:
      operator - the operator to set