Class MetadataLinker

    • Constructor Detail

      • MetadataLinker

        public MetadataLinker()
    • Method Detail

      • link

        public void link​(Metadata projectMetadata)
        Description copied from interface: IResourceLinker
        Adds HATEOAS links to the given resource.
        Specified by:
        link in interface IResourceLinker<Metadata>
        Parameters:
        projectMetadata - the resource on which links should be added
      • link

        public void link​(PagedObject<Metadata> pagedObject,
                         IPaginator<Metadata> paginator)
        Description copied from interface: IResourceLinker
        Adds HATEOAS links to the given paged set of resources. Adds links both on the enclosing paged object (if pagination is enabled) and on the enclosed resources. Pagination ma
        Specified by:
        link in interface IResourceLinker<Metadata>
        Parameters:
        pagedObject - the object enclosing a page of resources
        paginator - the paginator, used for determining whether paging is enabled, first page number, last page number, etc.