Package org.dspace.app.rest.model
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCATEGORYstatic StringNAME-
Fields inherited from interface org.dspace.app.rest.model.RestModel
AUTHENTICATION, AUTHORIZATION, CONFIGURATION, CORE, DISCOVER, EPERSON, INTEGRATION, ROOT, STATISTICS, SUBMISSION, SYSTEM, TOOLS, VERSIONING, WORKFLOW
-
-
Constructor Summary
Constructors Constructor Description SearchFacetEntryRest(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(SearchFacetValueRest valueRest)booleanexposeMinAndMaxValue()See documentation atDiscoverySearchFilterFacet.exposeMinAndMaxValue()StringgetCategory()ClassgetController()intgetFacetLimit()StringgetFacetType()StringgetMaxValue()Returns the highest value that can be found for this value in solrStringgetMinValue()Returns the smallest value that can be found for this value in solrStringgetName()StringgetType()List<SearchFacetValueRest>getValues()BooleanisHasMore()voidsetExposeMinMax(boolean exposeMinMax)See documentation atDiscoverySearchFilterFacet.setExposeMinAndMaxValue(boolean)voidsetFacetLimit(int facetLimit)voidsetFacetType(String facetType)voidsetHasMore(Boolean hasMore)voidsetMaxValue(String maxValue)Sets the maxValue property for the SearchFacetEntryRest to the given parametervoidsetMinValue(String minValue)Sets the minValue property for the SearchFacetEntryRest to the given parametervoidsetName(String name)-
Methods inherited from class org.dspace.app.rest.model.RestAddressableModel
getEmbedLevel, getProjection, getUniqueType, setEmbedLevel, setProjection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.app.rest.model.RestModel
getTypePlural
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
CATEGORY
public static final String CATEGORY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SearchFacetEntryRest
public SearchFacetEntryRest(String name)
-
-
Method Detail
-
getCategory
public String getCategory()
- Specified by:
getCategoryin classRestAddressableModel
-
getType
public String getType()
-
getController
public Class getController()
- Specified by:
getControllerin classRestAddressableModel
-
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)
-
exposeMinAndMaxValue
public boolean exposeMinAndMaxValue()
See documentation atDiscoverySearchFilterFacet.exposeMinAndMaxValue()
-
setExposeMinMax
public void setExposeMinMax(boolean exposeMinMax)
See documentation atDiscoverySearchFilterFacet.setExposeMinAndMaxValue(boolean)
-
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
-
-