Package org.dspace.app.rest.link.search
Class SearchSupportHalLinkFactory
java.lang.Object
org.dspace.app.rest.link.HalLinkFactory<SearchSupportResource,DiscoveryRestController>
org.dspace.app.rest.link.search.SearchSupportHalLinkFactory
@Component
public class SearchSupportHalLinkFactory
extends HalLinkFactory<SearchSupportResource,DiscoveryRestController>
This class' purpose is to create the links for the SearchSupportResource. This method and class will be called
when the addLinks method of the HalLinkService is called as it'll iterate over all the possible factories
and check whether these are allowed to create links for the given resource or not.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddLinks(SearchSupportResource halResource, org.springframework.data.domain.Pageable pageable, LinkedList<org.springframework.hateoas.Link> list) protected Class<DiscoveryRestController>protected Class<SearchSupportResource>Methods inherited from class org.dspace.app.rest.link.HalLinkFactory
buildLink, buildLink, getLinksFor, getMethodOn, getMethodOn, supports, uriBuilder
-
Constructor Details
-
SearchSupportHalLinkFactory
public SearchSupportHalLinkFactory()
-
-
Method Details
-
addLinks
protected void addLinks(SearchSupportResource halResource, org.springframework.data.domain.Pageable pageable, LinkedList<org.springframework.hateoas.Link> list) throws Exception - Specified by:
addLinksin classHalLinkFactory<SearchSupportResource,DiscoveryRestController> - Throws:
Exception
-
getResourceClass
- Specified by:
getResourceClassin classHalLinkFactory<SearchSupportResource,DiscoveryRestController>
-
getControllerClass
- Specified by:
getControllerClassin classHalLinkFactory<SearchSupportResource,DiscoveryRestController>
-