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 to
RelationshipResources
This builds a link to both items included in the relationship-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddLinks(RelationshipResource halResource, org.springframework.data.domain.Pageable pageable, LinkedList<org.springframework.hateoas.Link> list) protected Class<RestResourceController>protected Class<RelationshipResource>Methods inherited from class org.dspace.app.rest.link.HalLinkFactory
buildLink, buildLink, getLinksFor, getMethodOn, getMethodOn, supports, uriBuilder
-
Constructor Details
-
RelationshipHalLinkFactory
public RelationshipHalLinkFactory()
-
-
Method Details
-
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
- Specified by:
getControllerClassin classHalLinkFactory<RelationshipResource,RestResourceController>
-
getResourceClass
- Specified by:
getResourceClassin classHalLinkFactory<RelationshipResource,RestResourceController>
-