Class TaskLinker
- java.lang.Object
-
- com.aquima.web.rest.v1.linker.impl.TaskLinker
-
- All Implemented Interfaces:
IResourceLinker<Task>
public class TaskLinker extends Object implements IResourceLinker<Task>
-
-
Constructor Summary
Constructors Constructor Description TaskLinker()
TaskLinker(String attributes, String customFields)
TaskLinker(String sort, String attributes, String customFields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
link(PagedObject<Task> pagedObject, IPaginator<Task> paginator)
Adds HATEOAS links to the given paged set of resources.void
link(Task task)
Adds HATEOAS links to the given resource.
-
-
-
Method Detail
-
link
public void link(Task task)
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
public void link(PagedObject<Task> pagedObject, IPaginator<Task> 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<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.
-
-