Class GraphQLRemoteWebViewImpl
- java.lang.Object
-
- com.atlassian.confluence.rest.client.AbstractRemoteService<WebView>
-
- com.atlassian.confluence.rest.client.remoteservice.webfragment.AbstractRemoteWebView
-
- com.atlassian.confluence.rest.client.remoteservice.webfragment.graphql.GraphQLRemoteWebViewImpl
-
- All Implemented Interfaces:
RemoteWebView
public final class GraphQLRemoteWebViewImpl extends AbstractRemoteWebView implements RemoteWebView
RemoteWebView
implementation that communicates with Confluence remotely using the Confluence GraphQL API.- Since:
- 6.12.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GraphQLRemoteWebViewImpl.GraphQLWebItemsResponse
static class
GraphQLRemoteWebViewImpl.GraphQLWebPanelsResponse
static class
GraphQLRemoteWebViewImpl.GraphQLWebSectionsResponse
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.rest.client.remoteservice.webfragment.AbstractRemoteWebView
contentId, spaceKey, version
-
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.atlassian.util.concurrent.Promise<Iterable<WebItemView>>
getItemsForSection(String section, Map<String,Object> additionalContext)
Deprecated.since 7.0.1.CompletionStage<Iterable<WebItemView>>
getItemsForSectionCompletionStage(String section, Map<String,Object> additionalContext)
Fetch web items for a section from the REST APIcom.atlassian.util.concurrent.Promise<Iterable<WebPanelView>>
getPanelsForLocation(String location, Map<String,Object> additionalContext)
Deprecated.since 7.0.1.CompletionStage<Iterable<WebPanelView>>
getPanelsForLocationCompletionStage(String location, Map<String,Object> additionalContext)
Fetch web panels for a given location from the REST APIcom.atlassian.util.concurrent.Promise<Iterable<WebPanelView>>
getPanelsForLocations(Collection<String> locations, Map<String,Object> additionalContext)
Deprecated.since 7.0.1.CompletionStage<Iterable<WebPanelView>>
getPanelsForLocationsCompletionStage(Collection<String> locations, Map<String,Object> additionalContext)
Fetch web panels for given locations from the REST APIcom.atlassian.util.concurrent.Promise<Iterable<WebSectionView>>
getSectionsForLocation(String location, Map<String,Object> additionalContext)
Deprecated.since 7.0.1.CompletionStage<Iterable<WebSectionView>>
getSectionsForLocationCompletionStage(String location, Map<String,Object> additionalContext)
Fetch web sections for a given location from the REST APIcom.atlassian.util.concurrent.Promise<Iterable<WebSectionView>>
getSectionsForLocations(Collection<String> locations, Map<String,Object> additionalContext)
Deprecated.since 7.0.1.CompletionStage<Iterable<WebSectionView>>
getSectionsForLocationsCompletionStage(Collection<String> locations, Map<String,Object> additionalContext)
Fetch web sections for given locations from the REST API-
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, deleteFuture, deleteFuture, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, putCompletionStage, putFuture
-
-
-
-
Method Detail
-
getItemsForSection
@Deprecated public com.atlassian.util.concurrent.Promise<Iterable<WebItemView>> getItemsForSection(String section, Map<String,Object> additionalContext)
Deprecated.since 7.0.1. UsegetItemsForSectionCompletionStage(String, Map)
instead.- Specified by:
getItemsForSection
in interfaceRemoteWebView
-
getItemsForSectionCompletionStage
public CompletionStage<Iterable<WebItemView>> getItemsForSectionCompletionStage(String section, Map<String,Object> additionalContext)
Description copied from interface:RemoteWebView
Fetch web items for a section from the REST API- Specified by:
getItemsForSectionCompletionStage
in interfaceRemoteWebView
- Parameters:
section
- the section to fetch web items foradditionalContext
- additional context to add to the request to satisfy web item conditions- Returns:
- a CompletionStage of an iterable of webItemViews for the given section
-
getSectionsForLocation
@Deprecated public com.atlassian.util.concurrent.Promise<Iterable<WebSectionView>> getSectionsForLocation(String location, Map<String,Object> additionalContext)
Deprecated.since 7.0.1. UsegetSectionsForLocationCompletionStage(String, Map)
instead.Description copied from interface:RemoteWebView
Fetch web sections for a given location from the REST API- Specified by:
getSectionsForLocation
in interfaceRemoteWebView
- Parameters:
location
- the section to fetch web items foradditionalContext
- additional context to add to the request to satisfy web item conditions- Returns:
- a promise of an iterable of WebSectionViews for the given location
-
getSectionsForLocations
@Deprecated public com.atlassian.util.concurrent.Promise<Iterable<WebSectionView>> getSectionsForLocations(Collection<String> locations, Map<String,Object> additionalContext)
Deprecated.since 7.0.1. UsegetSectionsForLocationsCompletionStage(Collection, Map)
instead.Description copied from interface:RemoteWebView
Fetch web sections for given locations from the REST API- Specified by:
getSectionsForLocations
in interfaceRemoteWebView
- Parameters:
locations
- the locations to fetch web items foradditionalContext
- additional context to add to the request to satisfy web item conditions- Returns:
- a promise of an iterable of WebSectionViews for the given location
-
getSectionsForLocationCompletionStage
public CompletionStage<Iterable<WebSectionView>> getSectionsForLocationCompletionStage(String location, Map<String,Object> additionalContext)
Description copied from interface:RemoteWebView
Fetch web sections for a given location from the REST API- Specified by:
getSectionsForLocationCompletionStage
in interfaceRemoteWebView
- Parameters:
location
- the section to fetch web items foradditionalContext
- additional context to add to the request to satisfy web item conditions- Returns:
- a CompletionStage of an iterable of WebSectionViews for the given location
-
getSectionsForLocationsCompletionStage
public CompletionStage<Iterable<WebSectionView>> getSectionsForLocationsCompletionStage(Collection<String> locations, Map<String,Object> additionalContext)
Description copied from interface:RemoteWebView
Fetch web sections for given locations from the REST API- Specified by:
getSectionsForLocationsCompletionStage
in interfaceRemoteWebView
- Parameters:
locations
- the locations to fetch web items foradditionalContext
- additional context to add to the request to satisfy web item conditions- Returns:
- a CompletionStage of an iterable of WebSectionViews for the given location
-
getPanelsForLocation
@Deprecated public com.atlassian.util.concurrent.Promise<Iterable<WebPanelView>> getPanelsForLocation(String location, Map<String,Object> additionalContext)
Deprecated.since 7.0.1. UsegetPanelsForLocationCompletionStage(String, Map)
instead.Description copied from interface:RemoteWebView
Fetch web panels for a given location from the REST API- Specified by:
getPanelsForLocation
in interfaceRemoteWebView
- Parameters:
location
- the location to fetch web items foradditionalContext
- additional context to add to the request to satisfy web item conditions- Returns:
- a promise of an iterable of WebPanelViews for the given location
-
getPanelsForLocations
@Deprecated public com.atlassian.util.concurrent.Promise<Iterable<WebPanelView>> getPanelsForLocations(Collection<String> locations, Map<String,Object> additionalContext)
Deprecated.since 7.0.1. UsegetPanelsForLocationsCompletionStage(Collection, Map)
instead.Description copied from interface:RemoteWebView
Fetch web panels for given locations from the REST API- Specified by:
getPanelsForLocations
in interfaceRemoteWebView
- Parameters:
locations
- the locations to fetch web items foradditionalContext
- additional context to add to the request to satisfy web item conditions- Returns:
- a promise of an iterable of WebPanelViews for the given location
-
getPanelsForLocationCompletionStage
public CompletionStage<Iterable<WebPanelView>> getPanelsForLocationCompletionStage(String location, Map<String,Object> additionalContext)
Description copied from interface:RemoteWebView
Fetch web panels for a given location from the REST API- Specified by:
getPanelsForLocationCompletionStage
in interfaceRemoteWebView
- Parameters:
location
- the location to fetch web items foradditionalContext
- additional context to add to the request to satisfy web item conditions- Returns:
- a CompletionStage of an iterable of WebPanelViews for the given location
-
getPanelsForLocationsCompletionStage
public CompletionStage<Iterable<WebPanelView>> getPanelsForLocationsCompletionStage(Collection<String> locations, Map<String,Object> additionalContext)
Description copied from interface:RemoteWebView
Fetch web panels for given locations from the REST API- Specified by:
getPanelsForLocationsCompletionStage
in interfaceRemoteWebView
- Parameters:
locations
- the locations to fetch web items foradditionalContext
- additional context to add to the request to satisfy web item conditions- Returns:
- a CompletionStage of an iterable of WebPanelViews for the given location
-
-