Package com.atlassian.confluence.api.nav
Interface Navigation
- All Known Subinterfaces:
RestNavigation
,RestNavigation
- All Known Implementing Classes:
RestNavigationImpl
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
Modifier and TypeInterfaceDescriptionstatic interface
static interface
static interface
static interface
ExperimentalContentNav will change as new resources are added and promoted to production.static interface
static interface
ExperimentalNav will change as new resources are added and promoted to production.static interface
static interface
static interface
static interface
static interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionbaseUrl()
collection
(Content content) a builder to produce a URL to the collection that the content belongs to.collection
(Space space) a builder to produce a URL to the collection that the space belongs to.create a content nav builder to reference a piece of contentcontent
(ContentSelector selector) Create a content nav builder to reference a piece of content with a particular id, status and version.Deprecated.create a content nav builder to reference a piece of contentfromReference
(Reference<?> reference) a builder to produce a url to a user grouplongTask
(LongTaskId id) create a space nav builder to reference the given spacecreate a space nav builder to reference the given spaceuser
(com.atlassian.sal.api.user.UserKey userKey) create a user nav builder to reference the user with the given user key
-
Method Details
-
experimental
Navigation.ExperimentalNav experimental() -
content
create a content nav builder to reference a piece of content -
content
create a content nav builder to reference a piece of content -
content
Deprecated.since 5.10 Usecontent(ContentSelector)
.create a content nav builder to reference a piece of content -
content
Create a content nav builder to reference a piece of content with a particular id, status and version. -
space
create a space nav builder to reference the given space -
user
create a user nav builder to reference the user with the given user key- Parameters:
userKey
-- Returns:
-
collection
a builder to produce a URL to the collection that the content belongs to. -
collection
a builder to produce a URL to the collection that the space belongs to. -
space
create a space nav builder to reference the given space -
longTask
-
group
a builder to produce a url to a user group -
contextPath
String contextPath() -
baseUrl
String baseUrl() -
baseApiPath
Navigation.Builder baseApiPath() -
fromReference
-
content(ContentSelector)
.