Class EndpointLinker
java.lang.Object
com.aquima.web.rest.v1.linker.impl.EndpointLinker
- All Implemented Interfaces:
IResourceLinker<Endpoint>
Linker for Endpoint resources.
- Since:
- 9.6
- Author:
- Voicu Moldovan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds HATEOAS links to the given resource.void
link
(PagedObject<Endpoint> pagedObject, IPaginator<Endpoint> paginator) Adds HATEOAS links to the given paged set of resources.
-
Constructor Details
-
EndpointLinker
public EndpointLinker() -
EndpointLinker
- Parameters:
sort
- the sort filter used to obtain the resource(s)
-
-
Method Details
-
link
Description copied from interface:IResourceLinker
Adds HATEOAS links to the given resource.- Specified by:
link
in interfaceIResourceLinker<Endpoint>
- Parameters:
endpoint
- the resource on which links should be added
-
link
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<Endpoint>
- 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.
-