com.atlassian.confluence.api.nav
Interface Navigation

All Known Subinterfaces:
RestNavigation
All Known Implementing Classes:
NavigationImpl

@ExperimentalApi
public interface Navigation

NavBuilder facilitates building URLs from our model objects. Inject NavBuilderService into your component and use that to create instances of a NavBuilder


Nested Class Summary
static interface Navigation.Builder
           
static interface Navigation.ContentNav
           
static interface Navigation.ContentRestrictionByOperationNav
           
static interface Navigation.ExperimentalContentNav
          ExperimentalContentNav will change as new resources are added and promoted to production.
static interface Navigation.ExperimentalNav
          ExperimentalNav will change as new resources are added and promoted to production.
static interface Navigation.LongTaskNav
           
static interface Navigation.SpaceContentNav
           
static interface Navigation.SpaceNav
           
 
Method Summary
 Navigation.Builder baseApiPath()
           
 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 space)
          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
 String contextPath()
           
 Navigation.ExperimentalNav experimental()
           
 Navigation.Builder fromReference(Reference<?> reference)
           
 Navigation.LongTaskNav longTask(LongTaskId id)
           
 Navigation.SpaceNav space(Reference<Space> spaceReference)
          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
 

Method Detail

experimental

Navigation.ExperimentalNav experimental()

content

Navigation.ContentNav content(Content content)
create a content nav builder to reference a piece of content

Parameters:
content -
Returns:

content

Navigation.ContentNav content(Reference<Content> contentReference)
create a content nav builder to reference a piece of content

Parameters:
contentReference -
Returns:

content

Navigation.ContentNav content(ContentId contentId)
create a content nav builder to reference a piece of content

Parameters:
contentId -
Returns:

space

Navigation.SpaceNav space(Reference<Space> spaceReference)
create a space nav builder to reference the given space

Parameters:
spaceReference -
Returns:

collection

Navigation.Builder collection(Content content)
a builder to produce a URL to the collection that the content belongs to.

Parameters:
content -
Returns:

collection

Navigation.Builder collection(Space space)
a builder to produce a URL to the collection that the space belongs to.

Parameters:
space -
Returns:

space

Navigation.SpaceNav space(Space space)
create a space nav builder to reference the given space

Parameters:
space -
Returns:

longTask

Navigation.LongTaskNav longTask(LongTaskId id)

contextPath

String contextPath()

baseUrl

String baseUrl()

baseApiPath

Navigation.Builder baseApiPath()

fromReference

Navigation.Builder fromReference(Reference<?> reference)


Copyright © 2003–2015 Atlassian. All rights reserved.