Package org.dspace.app.rest.link.search
Class SearchResultsResourceHalLinkFactory
java.lang.Object
org.dspace.app.rest.link.HalLinkFactory<T,DiscoveryRestController>
org.dspace.app.rest.link.search.DiscoveryRestHalLinkFactory<SearchResultsResource>
org.dspace.app.rest.link.search.SearchResultsResourceHalLinkFactory
@Component
public class SearchResultsResourceHalLinkFactory
extends DiscoveryRestHalLinkFactory<SearchResultsResource>
This class will add links to the SearchResultsResource. This method will be called when calling the higher up
addLinks in the HalLinkService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddLinks(SearchResultsResource halResource, org.springframework.data.domain.Pageable pageable, LinkedList<org.springframework.hateoas.Link> list) protected Class<SearchResultsResource>Methods inherited from class org.dspace.app.rest.link.search.DiscoveryRestHalLinkFactory
addFilterParams, addSortingParms, buildFacetBaseLink, buildSearchBaseLink, buildSearchFacetsBaseLink, getControllerClassMethods inherited from class org.dspace.app.rest.link.HalLinkFactory
buildLink, buildLink, getLinksFor, getMethodOn, getMethodOn, supports, uriBuilder
-
Constructor Details
-
SearchResultsResourceHalLinkFactory
public SearchResultsResourceHalLinkFactory()
-
-
Method Details
-
addLinks
protected void addLinks(SearchResultsResource halResource, org.springframework.data.domain.Pageable pageable, LinkedList<org.springframework.hateoas.Link> list) throws Exception - Specified by:
addLinksin classHalLinkFactory<SearchResultsResource,DiscoveryRestController> - Throws:
Exception
-
getResourceClass
- Specified by:
getResourceClassin classHalLinkFactory<SearchResultsResource,DiscoveryRestController>
-