Class ProjectLinker

java.lang.Object
com.aquima.web.rest.v1.linker.impl.ProjectLinker
All Implemented Interfaces:
IResourceLinker<Project>

public class ProjectLinker extends Object implements IResourceLinker<Project>
HATEOAS Linker for Project resources.
Since:
9.6
Author:
m.van.tilburg
  • Constructor Details

    • ProjectLinker

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

    • 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.