Class CaseLinker
- java.lang.Object
-
- com.aquima.web.rest.v1.linker.impl.CaseLinker
-
- All Implemented Interfaces:
IResourceLinker<Case>
public class CaseLinker extends Object implements IResourceLinker<Case>
-
-
Constructor Summary
Constructors Constructor Description CaseLinker()
CaseLinker(String attributes)
CaseLinker(String sort, String attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
link(Case caseResource)
Adds HATEOAS links to the given resource.void
link(PagedObject<Case> pagedObject, IPaginator<Case> paginator)
Adds HATEOAS links to the given paged set of resources.
-
-
-
Method Detail
-
link
public void link(Case caseResource)
Description copied from interface:IResourceLinker
Adds HATEOAS links to the given resource.- Specified by:
link
in interfaceIResourceLinker<Case>
- Parameters:
caseResource
- the resource on which links should be added
-
link
public void link(PagedObject<Case> pagedObject, IPaginator<Case> 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<Case>
- 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.
-
-