Class RestNavigationImpl
- java.lang.Object
-
- com.atlassian.confluence.plugins.rest.navigation.impl.RestNavigationImpl
-
- All Implemented Interfaces:
Navigation
,RestNavigation
public class RestNavigationImpl extends Object implements RestNavigation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.api.nav.Navigation
Navigation.Builder, Navigation.ContentNav, Navigation.ContentRestrictionByOperationNav, Navigation.ExperimentalContentNav, Navigation.ExperimentalContentTemplateNav, Navigation.ExperimentalNav, Navigation.ExperimentalSynchronyDataNav, Navigation.GroupNav, Navigation.LongTaskNav, Navigation.SpaceContentNav, Navigation.SpaceNav, Navigation.UserNav
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.rest.api.services.RestNavigation
RestNavigation.RestBuilder
-
-
Constructor Summary
Constructors Constructor Description RestNavigationImpl(String baseUrl, String contextPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.confluence.plugins.rest.navigation.impl.RestNavigationImpl.BaseApiPathBuilder
baseApiPath()
provides a nav builder that knows about the base rest api path.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 contentNavigation.ContentNav
content(ContentSelector selector)
Create a content nav builder to reference a piece of content with a particular id, status and version.Navigation.ContentNav
content(ContentId contentId)
create a content nav builder to reference a piece of contentNavigation.ContentNav
content(Reference<Content> contentReference)
create a content nav builder to reference a piece of contentString
contextPath()
Navigation.ExperimentalNav
experimental()
Navigation.Builder
fromReference(Reference reference)
RestNavigation.RestBuilder
fromUriBuilder(javax.ws.rs.core.UriBuilder uriBuilder)
Navigation.GroupNav
group(Group group)
a builder to produce a url to a user groupNavigation.LongTaskNav
longTask(LongTaskId id)
Navigation.SpaceNav
space(Space space)
create a space nav builder to reference the given spaceNavigation.SpaceNav
space(Reference<Space> space)
create a space nav builder to reference the given spaceNavigation.UserNav
user(com.atlassian.sal.api.user.UserKey userKey)
create a user nav builder to reference the user with the given user key
-
-
-
Method Detail
-
experimental
public Navigation.ExperimentalNav experimental()
- Specified by:
experimental
in interfaceNavigation
-
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 interfaceNavigation
-
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 interfaceNavigation
-
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 interfaceNavigation
-
content
public Navigation.ContentNav content(ContentSelector selector)
Description copied from interface:Navigation
Create a content nav builder to reference a piece of content with a particular id, status and version.- Specified by:
content
in interfaceNavigation
-
baseApiPath
public com.atlassian.confluence.plugins.rest.navigation.impl.RestNavigationImpl.BaseApiPathBuilder baseApiPath()
provides a nav builder that knows about the base rest api path. Useful for building other builders- Specified by:
baseApiPath
in interfaceNavigation
- Returns:
-
baseUrl
public String baseUrl()
- Specified by:
baseUrl
in interfaceNavigation
-
contextPath
public String contextPath()
- Specified by:
contextPath
in interfaceNavigation
-
fromUriBuilder
public RestNavigation.RestBuilder fromUriBuilder(javax.ws.rs.core.UriBuilder uriBuilder)
- Specified by:
fromUriBuilder
in interfaceRestNavigation
-
fromReference
public Navigation.Builder fromReference(Reference reference)
- Specified by:
fromReference
in interfaceNavigation
-
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 interfaceNavigation
-
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 interfaceNavigation
-
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 interfaceNavigation
-
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 interfaceNavigation
-
group
public Navigation.GroupNav group(Group group)
Description copied from interface:Navigation
a builder to produce a url to a user group- Specified by:
group
in interfaceNavigation
-
user
public Navigation.UserNav user(com.atlassian.sal.api.user.UserKey userKey)
Description copied from interface:Navigation
create a user nav builder to reference the user with the given user key- Specified by:
user
in interfaceNavigation
- Returns:
-
longTask
public Navigation.LongTaskNav longTask(LongTaskId id)
- Specified by:
longTask
in interfaceNavigation
-
-