Package org.dspace.app.rest.link.search
Class FacetConfigurationResourceHalLinkFactory
- java.lang.Object
-
- org.dspace.app.rest.link.HalLinkFactory<T,DiscoveryRestController>
-
- org.dspace.app.rest.link.search.DiscoveryRestHalLinkFactory<FacetConfigurationResource>
-
- org.dspace.app.rest.link.search.FacetConfigurationResourceHalLinkFactory
-
@Component public class FacetConfigurationResourceHalLinkFactory extends DiscoveryRestHalLinkFactory<FacetConfigurationResource>
This class' purpose is to add the links to the FacetConfigurationResource. This function and class will be called and used when the HalLinkService addLinks methods is called as it'll iterate over all the different factories and check whether these are allowed to create links for said resource or not.
-
-
Constructor Summary
Constructors Constructor Description FacetConfigurationResourceHalLinkFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddLinks(FacetConfigurationResource halResource, org.springframework.data.domain.Pageable page, LinkedList<org.springframework.hateoas.Link> list)protected Class<FacetConfigurationResource>getResourceClass()-
Methods inherited from class org.dspace.app.rest.link.search.DiscoveryRestHalLinkFactory
addFilterParams, addSortingParms, buildFacetBaseLink, buildSearchBaseLink, buildSearchFacetsBaseLink, getControllerClass
-
Methods inherited from class org.dspace.app.rest.link.HalLinkFactory
buildLink, buildLink, getLinksFor, getMethodOn, getMethodOn, supports, uriBuilder
-
-
-
-
Method Detail
-
addLinks
protected void addLinks(FacetConfigurationResource halResource, org.springframework.data.domain.Pageable page, LinkedList<org.springframework.hateoas.Link> list) throws Exception
- Specified by:
addLinksin classHalLinkFactory<FacetConfigurationResource,DiscoveryRestController>- Throws:
Exception
-
getResourceClass
protected Class<FacetConfigurationResource> getResourceClass()
- Specified by:
getResourceClassin classHalLinkFactory<FacetConfigurationResource,DiscoveryRestController>
-
-