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.BaseApiPathBuilderbaseApiPath()provides a nav builder that knows about the base rest api path.StringbaseUrl()Navigation.Buildercollection(Content content)a builder to produce a URL to the collection that the content belongs to.Navigation.Buildercollection(Space spaceData)a builder to produce a URL to the collection that the space belongs to.Navigation.ContentNavcontent(Content content)create a content nav builder to reference a piece of contentNavigation.ContentNavcontent(ContentSelector selector)Create a content nav builder to reference a piece of content with a particular id, status and version.Navigation.ContentNavcontent(ContentId contentId)create a content nav builder to reference a piece of contentNavigation.ContentNavcontent(Reference<Content> contentReference)create a content nav builder to reference a piece of contentStringcontextPath()Navigation.ExperimentalNavexperimental()Navigation.BuilderfromReference(Reference reference)RestNavigation.RestBuilderfromUriBuilder(javax.ws.rs.core.UriBuilder uriBuilder)Navigation.GroupNavgroup(Group group)a builder to produce a url to a user groupNavigation.LongTaskNavlongTask(LongTaskId id)Navigation.SpaceNavspace(Space space)create a space nav builder to reference the given spaceNavigation.SpaceNavspace(Reference<Space> space)create a space nav builder to reference the given spaceNavigation.UserNavuser(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:
experimentalin interfaceNavigation
-
content
public Navigation.ContentNav content(Content content)
Description copied from interface:Navigationcreate a content nav builder to reference a piece of content- Specified by:
contentin interfaceNavigation
-
content
public Navigation.ContentNav content(Reference<Content> contentReference)
Description copied from interface:Navigationcreate a content nav builder to reference a piece of content- Specified by:
contentin interfaceNavigation
-
content
public Navigation.ContentNav content(ContentId contentId)
Description copied from interface:Navigationcreate a content nav builder to reference a piece of content- Specified by:
contentin interfaceNavigation
-
content
public Navigation.ContentNav content(ContentSelector selector)
Description copied from interface:NavigationCreate a content nav builder to reference a piece of content with a particular id, status and version.- Specified by:
contentin 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:
baseApiPathin interfaceNavigation- Returns:
-
baseUrl
public String baseUrl()
- Specified by:
baseUrlin interfaceNavigation
-
contextPath
public String contextPath()
- Specified by:
contextPathin interfaceNavigation
-
fromUriBuilder
public RestNavigation.RestBuilder fromUriBuilder(javax.ws.rs.core.UriBuilder uriBuilder)
- Specified by:
fromUriBuilderin interfaceRestNavigation
-
fromReference
public Navigation.Builder fromReference(Reference reference)
- Specified by:
fromReferencein interfaceNavigation
-
collection
public Navigation.Builder collection(Content content)
Description copied from interface:Navigationa builder to produce a URL to the collection that the content belongs to.- Specified by:
collectionin interfaceNavigation
-
collection
public Navigation.Builder collection(Space spaceData)
Description copied from interface:Navigationa builder to produce a URL to the collection that the space belongs to.- Specified by:
collectionin interfaceNavigation
-
space
public Navigation.SpaceNav space(Space space)
Description copied from interface:Navigationcreate a space nav builder to reference the given space- Specified by:
spacein interfaceNavigation
-
space
public Navigation.SpaceNav space(Reference<Space> space)
Description copied from interface:Navigationcreate a space nav builder to reference the given space- Specified by:
spacein interfaceNavigation
-
group
public Navigation.GroupNav group(Group group)
Description copied from interface:Navigationa builder to produce a url to a user group- Specified by:
groupin interfaceNavigation
-
user
public Navigation.UserNav user(com.atlassian.sal.api.user.UserKey userKey)
Description copied from interface:Navigationcreate a user nav builder to reference the user with the given user key- Specified by:
userin interfaceNavigation- Returns:
-
longTask
public Navigation.LongTaskNav longTask(LongTaskId id)
- Specified by:
longTaskin interfaceNavigation
-
-