com.atlassian.confluence.api.impl.service.nav
Class NavigationImpl

java.lang.Object
  extended by com.atlassian.confluence.api.impl.service.nav.NavigationImpl
All Implemented Interfaces:
Navigation, RestNavigation

public class NavigationImpl
extends java.lang.Object
implements RestNavigation


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.confluence.rest.api.services.RestNavigation
RestNavigation.RestBuilder
 
Nested classes/interfaces inherited from interface com.atlassian.confluence.api.nav.Navigation
Navigation.Builder, Navigation.ContentNav, Navigation.ExperimentalContentNav, Navigation.ExperimentalNav, Navigation.LongTaskNav, Navigation.SpaceContentNav, Navigation.SpaceNav
 
Constructor Summary
NavigationImpl(java.lang.String baseUrl, java.lang.String contextPath)
           
 
Method Summary
 com.atlassian.confluence.api.impl.service.nav.NavigationImpl.BaseApiPathBuilder baseApiPath()
          provides a nav builder that knows about the base rest api path.
 java.lang.String baseUrl()
           
 Navigation.Builder collection(Content content)
          a builder to produce a URL to the collection that the content belongs to.
 Navigation.Builder collection(Space spaceData)
          a builder to produce a URL to the collection that the space belongs to.
 Navigation.ContentNav content(Content content)
          create a content nav builder to reference a piece of content
 Navigation.ContentNav content(ContentId contentId)
          create a content nav builder to reference a piece of content
 Navigation.ContentNav content(Reference<Content> contentReference)
          create a content nav builder to reference a piece of content
 java.lang.String contextPath()
           
 Navigation.ExperimentalNav experimental()
           
 Navigation.Builder fromReference(Reference reference)
           
 RestNavigation.RestBuilder fromUriBuilder(javax.ws.rs.core.UriBuilder uriBuilder)
           
 Navigation.LongTaskNav longTask(LongTaskId id)
           
 Navigation.SpaceNav space(Reference<Space> space)
          create a space nav builder to reference the given space
 Navigation.SpaceNav space(Space space)
          create a space nav builder to reference the given space
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigationImpl

public NavigationImpl(java.lang.String baseUrl,
                      java.lang.String contextPath)
Method Detail

experimental

public Navigation.ExperimentalNav experimental()
Specified by:
experimental in interface Navigation

content

public Navigation.ContentNav content(Content content)
Description copied from interface: Navigation
create a content nav builder to reference a piece of content

Specified by:
content in interface Navigation
Returns:

content

public Navigation.ContentNav content(Reference<Content> contentReference)
Description copied from interface: Navigation
create a content nav builder to reference a piece of content

Specified by:
content in interface Navigation
Returns:

content

public Navigation.ContentNav content(ContentId contentId)
Description copied from interface: Navigation
create a content nav builder to reference a piece of content

Specified by:
content in interface Navigation
Returns:

baseApiPath

public com.atlassian.confluence.api.impl.service.nav.NavigationImpl.BaseApiPathBuilder baseApiPath()
provides a nav builder that knows about the base rest api path. Useful for building other builders

Specified by:
baseApiPath in interface Navigation
Returns:

baseUrl

public java.lang.String baseUrl()
Specified by:
baseUrl in interface Navigation

contextPath

public java.lang.String contextPath()
Specified by:
contextPath in interface Navigation

fromUriBuilder

public RestNavigation.RestBuilder fromUriBuilder(javax.ws.rs.core.UriBuilder uriBuilder)
Specified by:
fromUriBuilder in interface RestNavigation

fromReference

public Navigation.Builder fromReference(Reference reference)
Specified by:
fromReference in interface Navigation

collection

public Navigation.Builder collection(Content content)
Description copied from interface: Navigation
a builder to produce a URL to the collection that the content belongs to.

Specified by:
collection in interface Navigation
Returns:

collection

public Navigation.Builder collection(Space spaceData)
Description copied from interface: Navigation
a builder to produce a URL to the collection that the space belongs to.

Specified by:
collection in interface Navigation
Returns:

space

public Navigation.SpaceNav space(Space space)
Description copied from interface: Navigation
create a space nav builder to reference the given space

Specified by:
space in interface Navigation
Returns:

space

public Navigation.SpaceNav space(Reference<Space> space)
Description copied from interface: Navigation
create a space nav builder to reference the given space

Specified by:
space in interface Navigation
Returns:

longTask

public Navigation.LongTaskNav longTask(LongTaskId id)
Specified by:
longTask in interface Navigation


Copyright © 2003-2014 Atlassian. All Rights Reserved.