Class TaskLinker
java.lang.Object
com.aquima.web.rest.v1.linker.impl.TaskLinker
- All Implemented Interfaces:
IResourceLinker<Task>
-
Constructor Summary
ConstructorsConstructorDescriptionTaskLinker
(String attributes, String customFields) TaskLinker
(String sort, String attributes, String customFields) -
Method Summary
Modifier and TypeMethodDescriptionvoid
link
(PagedObject<Task> pagedObject, IPaginator<Task> paginator) Adds HATEOAS links to the given paged set of resources.void
Adds HATEOAS links to the given resource.
-
Constructor Details
-
TaskLinker
public TaskLinker() -
TaskLinker
-
TaskLinker
-
-
Method Details
-
link
Description copied from interface:IResourceLinker
Adds HATEOAS links to the given resource.- Specified by:
link
in interfaceIResourceLinker<Task>
- Parameters:
task
- 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<Task>
- 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.
-