com.atlassian.bamboo.plugins.rest.link
Class LinkServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.plugins.rest.link.LinkServiceImpl
All Implemented Interfaces:
LinkService

public class LinkServiceImpl
extends Object
implements LinkService


Constructor Summary
LinkServiceImpl(com.atlassian.sal.api.ApplicationProperties applicationProperties)
           
 
Method Summary
 void addLinks(RestResource resource, String resourceLocation)
          Add links to the resource.
 void addLinks(RestResource resource, javax.ws.rs.core.UriInfo uriInfo)
          Add links to the resource.
 void addPaginationLinks(PageResponse response, String resourceLocation)
          Add pagination links to the pageResponse.
 void addPaginationLinks(PageResponse response, javax.ws.rs.core.UriInfo uriInfo)
          Add pagination links to the pageResponse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkServiceImpl

public LinkServiceImpl(com.atlassian.sal.api.ApplicationProperties applicationProperties)
Method Detail

addLinks

public void addLinks(@NotNull
                     RestResource resource,
                     @NotNull
                     javax.ws.rs.core.UriInfo uriInfo)
Description copied from interface: LinkService
Add links to the resource. Links provide base/self urls if required. Assumes the resource is at the level requested by the client, NOT an expand/sub object. i.e it uses the current request url to determine the base/self urls

Specified by:
addLinks in interface LinkService
Parameters:
resource - the resource ready to go back to the user
uriInfo - information about the current request

addLinks

public void addLinks(@NotNull
                     RestResource resource,
                     @NotNull
                     String resourceLocation)
Description copied from interface: LinkService
Add links to the resource. Links provide base/self urls if required.

Specified by:
addLinks in interface LinkService
Parameters:
resource - the resource ready to go back to the user
resourceLocation - the url for the resource being returned

addPaginationLinks

public void addPaginationLinks(@NotNull
                               PageResponse response,
                               @NotNull
                               javax.ws.rs.core.UriInfo uriInfo)
Description copied from interface: LinkService
Add pagination links to the pageResponse. Pagination links provide next/prev urls if required. Assumes the pagination is at the level requested by the client, NOT an expand/sub object. i.e it uses the current request url to determine the next/prev urls

Specified by:
addPaginationLinks in interface LinkService
Parameters:
response - the paged response ready to go back to the user
uriInfo - information about the current request

addPaginationLinks

public void addPaginationLinks(@NotNull
                               PageResponse response,
                               @NotNull
                               String resourceLocation)
Description copied from interface: LinkService
Add pagination links to the pageResponse. Pagination links provide next/prev urls if required.

Specified by:
addPaginationLinks in interface LinkService
Parameters:
response - the paged response ready to go back to the user
resourceLocation - the url for the resource being paged


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.