@Component public class LinkServiceImpl extends Object implements LinkService
| Constructor and Description |
|---|
LinkServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLinks(@NotNull AbstractRestModel resource,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Add links to the resource.
|
void |
addLinks(@NotNull AbstractRestModel resource,
@NotNull javax.ws.rs.core.UriInfo uriInfo,
@NotNull String resourceLocation)
Add links to the resource.
|
void |
addPaginationLinks(@NotNull RestPageModel<?> page,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Add pagination links to the pageResponse.
|
void |
addPaginationLinks(@NotNull RestPageModel<?> page,
@NotNull javax.ws.rs.core.UriInfo uriInfo,
int nextStart)
Add pagination links to the pageResponse.
|
void |
addPaginationLinks(@NotNull RestPageModel<?> page,
@NotNull javax.ws.rs.core.UriInfo uriInfo,
@NotNull String pageLocation)
Add pagination links to the pageResponse.
|
void |
addPaginationSelfLink(@NotNull RestPageModel<?> page,
@NotNull javax.ws.rs.core.UriInfo uriInfo,
@NotNull String pageLocation)
Add pagination self link only to the pageResponse.
|
public void addLinks(@NotNull
@NotNull AbstractRestModel resource,
@NotNull
@NotNull javax.ws.rs.core.UriInfo uriInfo)
LinkServiceaddLinks in interface LinkServiceresource - the resource ready to go back to the useruriInfo - information about the current requestpublic void addLinks(@NotNull
@NotNull AbstractRestModel resource,
@NotNull
@NotNull javax.ws.rs.core.UriInfo uriInfo,
@NotNull
@NotNull String resourceLocation)
LinkServiceaddLinks in interface LinkServiceresource - the resource ready to go back to the useruriInfo - information about the current requestresourceLocation - the url for the resource being returned relative to the base URIpublic void addPaginationLinks(@NotNull
@NotNull RestPageModel<?> page,
@NotNull
@NotNull javax.ws.rs.core.UriInfo uriInfo)
LinkServiceaddPaginationLinks in interface LinkServicepage - the paged response ready to go back to the useruriInfo - information about the current requestpublic void addPaginationLinks(@NotNull
@NotNull RestPageModel<?> page,
@NotNull
@NotNull javax.ws.rs.core.UriInfo uriInfo,
@NotNull
@NotNull String pageLocation)
LinkServiceaddPaginationLinks in interface LinkServicepage - the paged response ready to go back to the useruriInfo - information about the current requestpageLocation - the url for the resource being pagedpublic void addPaginationSelfLink(@NotNull
@NotNull RestPageModel<?> page,
@NotNull
@NotNull javax.ws.rs.core.UriInfo uriInfo,
@NotNull
@NotNull String pageLocation)
LinkServiceaddPaginationSelfLink in interface LinkServicepage - the paged response ready to go back to the useruriInfo - information about the current requestpageLocation - the url for the resource being pagedpublic void addPaginationLinks(@NotNull
@NotNull RestPageModel<?> page,
@NotNull
@NotNull javax.ws.rs.core.UriInfo uriInfo,
int nextStart)
LinkServiceaddPaginationLinks in interface LinkServicepage - the paged response ready to go back to the useruriInfo - information about the current requestCopyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.