Package org.dspace.app.rest.link
Class HalLinkService
- java.lang.Object
-
- org.dspace.app.rest.link.HalLinkService
-
@Component @ComponentScan public class HalLinkService extends Object
This service will try to add links to the given HAL resource by iterating over all the configured factories The links will only be added if the factories are allowed to do so by checking the resource's type.
-
-
Constructor Summary
Constructors Constructor Description HalLinkService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HALResourceaddLinks(HALResource halResource)voidaddLinks(HALResource halResource, org.springframework.data.domain.Pageable pageable)
-
-
-
Method Detail
-
addLinks
public void addLinks(HALResource halResource, org.springframework.data.domain.Pageable pageable) throws Exception
- Throws:
Exception
-
addLinks
public HALResource addLinks(HALResource halResource)
-
-