Class RuntimeLinker
- java.lang.Object
-
- com.aquima.web.rest.v1.linker.impl.RuntimeLinker
-
- All Implemented Interfaces:
IResourceLinker<Runtime>
public class RuntimeLinker extends Object implements IResourceLinker<Runtime>
Adds HATEOAS links to runtime resources.- Since:
- 9.6
- Author:
- Petru Galanton
-
-
Constructor Summary
Constructors Constructor Description RuntimeLinker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
link(PagedObject<Runtime> pagedObject, IPaginator<Runtime> paginator)
Adds HATEOAS links to the given paged set of resources.void
link(Runtime runtimeInfo)
Adds HATEOAS links to the given resource.
-
-
-
Method Detail
-
link
public void link(Runtime runtimeInfo)
Description copied from interface:IResourceLinker
Adds HATEOAS links to the given resource.- Specified by:
link
in interfaceIResourceLinker<Runtime>
- Parameters:
runtimeInfo
- the resource on which links should be added
-
link
public void link(PagedObject<Runtime> pagedObject, IPaginator<Runtime> 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 interfaceIResourceLinker<Runtime>
- Parameters:
pagedObject
- the object enclosing a page of resourcespaginator
- the paginator, used for determining whether paging is enabled, first page number, last page number, etc.
-
-