Class FilteredItemsQueryPredicate

java.lang.Object
org.dspace.app.rest.model.FilteredItemsQueryPredicate

public class FilteredItemsQueryPredicate extends Object
Data structure representing a query predicate used by the Filtered Items report to filter items to retrieve. This version is specific to the REST layer and its property types are detached from the persistence layer.
Author:
Jean-François Morin (Université Laval)
See Also:
  • Constructor Details

    • FilteredItemsQueryPredicate

      public FilteredItemsQueryPredicate()
  • Method Details

    • of

      public static FilteredItemsQueryPredicate of(String field, QueryOperator operator, String value)
      Shortcut method that builds a FilteredItemsQueryPredicate from a single field, an operator, and a value.
      Parameters:
      field - Predicate subject
      operator - Predicate operator
      value - Predicate object
      Returns:
      a FilteredItemsQueryPredicate instance built from the provided parameters
    • of

      public static FilteredItemsQueryPredicate of(String value)
      Shortcut method that builds a FilteredItemsQueryPredicate from a colon-separated string value.
      Parameters:
      value - Colon-separated string value (field:operator:object or field:operator)
      Returns:
      a FilteredItemsQueryPredicate instance built from the provided value
    • getField

      public String getField()
    • getOperator

      public QueryOperator getOperator()
    • getValue

      public String getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Object