Class MetadataLinker
- java.lang.Object
-
- com.aquima.web.rest.v1.linker.impl.MetadataLinker
-
- All Implemented Interfaces:
IResourceLinker<Metadata>
public class MetadataLinker extends Object implements IResourceLinker<Metadata>
HATEOAS Linker for Metadata resources.- Since:
- 9.6
- Author:
- m.van.tilburg
-
-
Constructor Summary
Constructors Constructor Description MetadataLinker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
link(Metadata projectMetadata)
Adds HATEOAS links to the given resource.void
link(PagedObject<Metadata> pagedObject, IPaginator<Metadata> paginator)
Adds HATEOAS links to the given paged set of resources.
-
-
-
Method Detail
-
link
public void link(Metadata projectMetadata)
Description copied from interface:IResourceLinker
Adds HATEOAS links to the given resource.- Specified by:
link
in interfaceIResourceLinker<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 interfaceIResourceLinker<Metadata>
- 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.
-
-