Package org.dspace.app.rest.link.search
Class DiscoveryRestHalLinkFactory<T>
java.lang.Object
org.dspace.app.rest.link.HalLinkFactory<T,DiscoveryRestController>
org.dspace.app.rest.link.search.DiscoveryRestHalLinkFactory<T>
- Direct Known Subclasses:
FacetConfigurationResourceHalLinkFactory,FacetResultsHalLinkFactory,FacetsResourceHalLinkFactory,SearchFacetEntryHalLinkFactory,SearchFacetValueHalLinkFactory,SearchResultEntryHalLinkFactory,SearchResultsResourceHalLinkFactory
public abstract class DiscoveryRestHalLinkFactory<T>
extends HalLinkFactory<T,DiscoveryRestController>
This factory provides a means to add links to the DiscoveryRest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.web.util.UriComponentsBuilderaddFilterParams(org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder, DiscoveryResultsRest data) protected org.springframework.web.util.UriComponentsBuilderaddSortingParms(org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder, DiscoveryResultsRest data) protected org.springframework.web.util.UriComponentsBuilderorg.springframework.web.util.UriComponentsBuilderThis method will build the base search link for the data that's been given to itprotected org.springframework.web.util.UriComponentsBuilderprotected Class<DiscoveryRestController>Methods inherited from class org.dspace.app.rest.link.HalLinkFactory
addLinks, buildLink, buildLink, getLinksFor, getMethodOn, getMethodOn, getResourceClass, supports, uriBuilder
-
Constructor Details
-
DiscoveryRestHalLinkFactory
public DiscoveryRestHalLinkFactory()
-
-
Method Details
-
buildSearchBaseLink
public org.springframework.web.util.UriComponentsBuilder buildSearchBaseLink(DiscoveryResultsRest data) This method will build the base search link for the data that's been given to it- Parameters:
data- The data for which a link will be constructed- Returns:
- The link without extra filters to the endpoint for this data
-
buildFacetBaseLink
protected org.springframework.web.util.UriComponentsBuilder buildFacetBaseLink(FacetResultsRest data) -
buildSearchFacetsBaseLink
protected org.springframework.web.util.UriComponentsBuilder buildSearchFacetsBaseLink(SearchResultsRest data) -
addFilterParams
protected org.springframework.web.util.UriComponentsBuilder addFilterParams(org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder, DiscoveryResultsRest data) -
addSortingParms
protected org.springframework.web.util.UriComponentsBuilder addSortingParms(org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder, DiscoveryResultsRest data) -
getControllerClass
- Specified by:
getControllerClassin classHalLinkFactory<T,DiscoveryRestController>
-