Package org.dspace.app.rest.model
Class SearchResultsRest
- java.lang.Object
-
- org.dspace.app.rest.model.RestAddressableModel
-
- org.dspace.app.rest.model.BaseObjectRest<String>
-
- org.dspace.app.rest.model.DiscoveryResultsRest
-
- org.dspace.app.rest.model.SearchResultsRest
-
- All Implemented Interfaces:
Serializable,RestModel
public class SearchResultsRest extends DiscoveryResultsRest
This class' purpose is to create a container for the information used in the SearchResultsResource- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchResultsRest.AppliedFilterstatic classSearchResultsRest.Sorting
-
Field Summary
-
Fields inherited from class org.dspace.app.rest.model.DiscoveryResultsRest
CATEGORY, NAME
-
Fields inherited from class org.dspace.app.rest.model.BaseObjectRest
id
-
Fields inherited from interface org.dspace.app.rest.model.RestModel
AUTHENTICATION, AUTHORIZATION, CONFIGURATION, CORE, DISCOVER, EPERSON, INTEGRATION, ROOT, STATISTICS, SUBMISSION, SYSTEM, VERSIONING, WORKFLOW
-
-
Constructor Summary
Constructors Constructor Description SearchResultsRest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFacetEntry(SearchFacetEntryRest facetEntry)voidaddSearchResult(SearchResultEntryRest searchResultEntry)List<SearchFacetEntryRest>getFacets()List<SearchResultEntryRest>getSearchResults()longgetTotalNumberOfResults()voidsetSearchResults(List<SearchResultEntryRest> searchResults)voidsetTotalNumberOfResults(long totalNumberOfResults)-
Methods inherited from class org.dspace.app.rest.model.DiscoveryResultsRest
addAppliedFilter, getAppliedFilters, getCategory, getConfiguration, getController, getDsoTypes, getQuery, getScope, getSearchFilters, getSort, getType, setAppliedFilters, setConfiguration, setDsoTypes, setQuery, setScope, setSearchFilters, setSort, setSort
-
Methods inherited from class org.dspace.app.rest.model.BaseObjectRest
getErrors, getId, setErrors, setId
-
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
-
-
-
-
Method Detail
-
getSearchResults
public List<SearchResultEntryRest> getSearchResults()
-
setSearchResults
public void setSearchResults(List<SearchResultEntryRest> searchResults)
-
addSearchResult
public void addSearchResult(SearchResultEntryRest searchResultEntry)
-
getTotalNumberOfResults
public long getTotalNumberOfResults()
-
setTotalNumberOfResults
public void setTotalNumberOfResults(long totalNumberOfResults)
-
addFacetEntry
public void addFacetEntry(SearchFacetEntryRest facetEntry)
-
getFacets
public List<SearchFacetEntryRest> getFacets()
-
-