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