Class FilteredCollectionRest

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

public class FilteredCollectionRest extends Object
This class serves as a REST representation of a single Collection in a FilteredCollectionsRest from the DSpace statistics. It takes its values from a @link FilteredCollection} instance. It must not extend BaseObjectRest<?>.
Author:
Jean-François Morin (Université Laval)
  • Field Details

  • Constructor Details

    • FilteredCollectionRest

      public FilteredCollectionRest()
  • Method Details

    • of

      public static FilteredCollectionRest of(FilteredCollection model)
      Builds a FilteredCollectionRest instance from a FilteredCollection instance.
      Parameters:
      model - the FilteredCollection instance that provides values to the FilteredCollectionRest instance to be created
      Returns:
      a FilteredCollectionRest instance built from the provided model object
    • getType

      public String getType()
    • getValues

      public Map<Filter,Integer> getValues()
    • getLabel

      public String getLabel()
    • getHandle

      public String getHandle()
    • getCommunityLabel

      public String getCommunityLabel()
    • getCommunityHandle

      public String getCommunityHandle()
    • getTotalItems

      public int getTotalItems()
    • getAllFiltersValue

      public int getAllFiltersValue()