Class DSpaceLinkRelationProvider

  • All Implemented Interfaces:
    org.springframework.core.Ordered, org.springframework.hateoas.server.LinkRelationProvider, org.springframework.plugin.core.Plugin<org.springframework.hateoas.server.LinkRelationProvider.LookupContext>

    public class DSpaceLinkRelationProvider
    extends org.springframework.hateoas.server.core.EvoInflectorLinkRelationProvider
    A DSpace Link Relation Provider that use the RelNameDSpaceResource annotation to use the right names for the embedded collection when a DSpaceResource is requested
    Author:
    Andrea Bollini (andrea.bollini at 4science.it)
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.springframework.hateoas.server.LinkRelationProvider

        org.springframework.hateoas.server.LinkRelationProvider.LookupContext
    • Field Summary

      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Detail

      • DSpaceLinkRelationProvider

        public DSpaceLinkRelationProvider()
    • Method Detail

      • getItemResourceRelFor

        public org.springframework.hateoas.LinkRelation getItemResourceRelFor​(Class<?> type)
        Specified by:
        getItemResourceRelFor in interface org.springframework.hateoas.server.LinkRelationProvider
        Overrides:
        getItemResourceRelFor in class org.springframework.hateoas.server.core.DefaultLinkRelationProvider