Class EntityTypeHalLinkFactory
- java.lang.Object
-
- org.dspace.app.rest.link.HalLinkFactory<EntityTypeResource,RelationshipTypeRestController>
-
- org.dspace.app.rest.link.relation.EntityTypeHalLinkFactory
-
@Component public class EntityTypeHalLinkFactory extends HalLinkFactory<EntityTypeResource,RelationshipTypeRestController>
This class' purpose is to add the links to the EntityTypeResource. 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 EntityTypeHalLinkFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddLinks(EntityTypeResource halResource, org.springframework.data.domain.Pageable pageable, LinkedList<org.springframework.hateoas.Link> list)protected Class<RelationshipTypeRestController>getControllerClass()protected Class<EntityTypeResource>getResourceClass()-
Methods inherited from class org.dspace.app.rest.link.HalLinkFactory
buildLink, buildLink, getLinksFor, getMethodOn, getMethodOn, supports, uriBuilder
-
-
-
-
Method Detail
-
addLinks
protected void addLinks(EntityTypeResource halResource, org.springframework.data.domain.Pageable pageable, LinkedList<org.springframework.hateoas.Link> list) throws Exception
- Specified by:
addLinksin classHalLinkFactory<EntityTypeResource,RelationshipTypeRestController>- Throws:
Exception
-
getControllerClass
protected Class<RelationshipTypeRestController> getControllerClass()
- Specified by:
getControllerClassin classHalLinkFactory<EntityTypeResource,RelationshipTypeRestController>
-
getResourceClass
protected Class<EntityTypeResource> getResourceClass()
- Specified by:
getResourceClassin classHalLinkFactory<EntityTypeResource,RelationshipTypeRestController>
-
-