Class RelationshipHalLinkFactory
- java.lang.Object
-
- org.dspace.app.rest.link.HalLinkFactory<RelationshipResource,RestResourceController>
-
- org.dspace.app.rest.link.relation.RelationshipHalLinkFactory
-
@Component public class RelationshipHalLinkFactory extends HalLinkFactory<RelationshipResource,RestResourceController>
This class adds links toRelationshipResources This builds a link to both items included in the relationship
-
-
Constructor Summary
Constructors Constructor Description RelationshipHalLinkFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddLinks(RelationshipResource halResource, org.springframework.data.domain.Pageable pageable, LinkedList<org.springframework.hateoas.Link> list)protected Class<RestResourceController>getControllerClass()protected Class<RelationshipResource>getResourceClass()-
Methods inherited from class org.dspace.app.rest.link.HalLinkFactory
buildLink, buildLink, getLinksFor, getMethodOn, getMethodOn, supports, uriBuilder
-
-
-
-
Method Detail
-
addLinks
protected void addLinks(RelationshipResource halResource, org.springframework.data.domain.Pageable pageable, LinkedList<org.springframework.hateoas.Link> list) throws Exception
- Specified by:
addLinksin classHalLinkFactory<RelationshipResource,RestResourceController>- Throws:
Exception
-
getControllerClass
protected Class<RestResourceController> getControllerClass()
- Specified by:
getControllerClassin classHalLinkFactory<RelationshipResource,RestResourceController>
-
getResourceClass
protected Class<RelationshipResource> getResourceClass()
- Specified by:
getResourceClassin classHalLinkFactory<RelationshipResource,RestResourceController>
-
-