Class ProjectLinker

    • Constructor Detail

      • ProjectLinker

        public ProjectLinker​(String sortCriteria)
        Parameters:
        sortCriteria - comma separated list of sort criteria, may be null @see SortCriterion
    • Method Detail

      • link

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

        public void link​(PagedObject<Project> pagedObject,
                         IPaginator<Project> 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<Project>
        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.