Class SearchFacetEntryRest

java.lang.Object
org.dspace.app.rest.model.RestAddressableModel
org.dspace.app.rest.model.SearchFacetEntryRest
All Implemented Interfaces:
Serializable, RestModel

public class SearchFacetEntryRest extends RestAddressableModel
This class' purpose is to create a container for the information used in the SearchFacetEntryResource
See Also:
  • Field Details

  • Constructor Details

    • SearchFacetEntryRest

      public SearchFacetEntryRest(String name)
  • Method Details

    • getCategory

      public String getCategory()
      Specified by:
      getCategory in class RestAddressableModel
    • getType

      public String getType()
    • getTypePlural

      public String getTypePlural()
      The plural name is the same as the singular name
    • getController

      public Class getController()
      Specified by:
      getController in class RestAddressableModel
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • addValue

      public void addValue(SearchFacetValueRest valueRest)
    • getValues

      public List<SearchFacetValueRest> getValues()
    • getFacetType

      public String getFacetType()
    • setFacetType

      public void setFacetType(String facetType)
    • setHasMore

      public void setHasMore(Boolean hasMore)
    • isHasMore

      public Boolean isHasMore()
    • getFacetLimit

      public int getFacetLimit()
    • setFacetLimit

      public void setFacetLimit(int facetLimit)
    • setOpenByDefault

      public void setOpenByDefault(boolean isOpenByDefault)
    • isOpenByDefault

      public Boolean isOpenByDefault()
    • exposeMinAndMaxValue

      public boolean exposeMinAndMaxValue()
    • setExposeMinMax

      public void setExposeMinMax(boolean exposeMinMax)
    • getMinValue

      public String getMinValue()
      Returns the smallest value that can be found for this value in solr
      Returns:
      The smallest value for this facet as a String
    • setMinValue

      public void setMinValue(String minValue)
      Sets the minValue property for the SearchFacetEntryRest to the given parameter
      Parameters:
      minValue - The String that the minValue will be set to
    • getMaxValue

      public String getMaxValue()
      Returns the highest value that can be found for this value in solr
      Returns:
      The highest value for this facet as a String
    • setMaxValue

      public void setMaxValue(String maxValue)
      Sets the maxValue property for the SearchFacetEntryRest to the given parameter
      Parameters:
      maxValue - The String that the maxValue will be set to