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 Constructor Description SearchSupportHalLinkFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddLinks(SearchSupportResource halResource, org.springframework.data.domain.Pageable pageable, LinkedList<org.springframework.hateoas.Link> list)protected Class<DiscoveryRestController>getControllerClass()protected Class<SearchSupportResource>getResourceClass()-
Methods inherited from class org.dspace.app.rest.link.HalLinkFactory
buildLink, buildLink, getLinksFor, getMethodOn, getMethodOn, supports, uriBuilder
-
-
-
-
Method Detail
-
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
protected Class<SearchSupportResource> getResourceClass()
- Specified by:
getResourceClassin classHalLinkFactory<SearchSupportResource,DiscoveryRestController>
-
getControllerClass
protected Class<DiscoveryRestController> getControllerClass()
- Specified by:
getControllerClassin classHalLinkFactory<SearchSupportResource,DiscoveryRestController>
-
-