Class EndpointLinker

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

public class EndpointLinker extends Object implements IResourceLinker<Endpoint>
Linker for Endpoint resources.
Since:
9.6
Author:
Voicu Moldovan
  • Constructor Details

    • EndpointLinker

      public EndpointLinker()
    • EndpointLinker

      public EndpointLinker(String sort)
      Parameters:
      sort - the sort filter used to obtain the resource(s)
  • Method Details

    • link

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

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