Class AbstractRemoteWebViewService
- java.lang.Object
-
- com.atlassian.confluence.rest.client.AbstractRemoteService<WebViewService>
-
- com.atlassian.confluence.rest.client.remoteservice.webfragment.AbstractRemoteWebViewService
-
- All Implemented Interfaces:
RemoteWebViewService
- Direct Known Subclasses:
GraphQLRemoteWebViewServiceImpl,RemoteWebViewServiceImpl
public abstract class AbstractRemoteWebViewService extends AbstractRemoteService<WebViewService> implements RemoteWebViewService
WebViewServiceimplementation that communicates with Confluence remotely.- Since:
- 6.12.0
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractRemoteWebViewService(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description RemoteWebViewforContent(ContentId contentId)Provides a new WebView.RemoteWebViewforGeneric()Provides a new generic WebView.RemoteWebViewforSpace(String spaceKey)protected abstract AbstractRemoteWebViewnewRemoteWebView()-
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, postVoidCompletionStage, putCompletionStage, putFuture
-
-
-
-
Constructor Detail
-
AbstractRemoteWebViewService
protected AbstractRemoteWebViewService(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
-
-
Method Detail
-
forContent
public RemoteWebView forContent(ContentId contentId)
Description copied from interface:RemoteWebViewServiceProvides a new WebView. The contentId is used to enrich the underlying WebInterfaceContext depending on what type of content is provided.- Specified by:
forContentin interfaceRemoteWebViewService- Parameters:
contentId- the id of the CEO or null for a generic WebView- Returns:
-
forSpace
public RemoteWebView forSpace(String spaceKey)
- Specified by:
forSpacein interfaceRemoteWebViewService
-
forGeneric
public RemoteWebView forGeneric()
Description copied from interface:RemoteWebViewServiceProvides a new generic WebView.- Specified by:
forGenericin interfaceRemoteWebViewService- Returns:
- a remote web view, capable of fetching web items, sections and panels from confluence via the REST API
-
newRemoteWebView
protected abstract AbstractRemoteWebView newRemoteWebView()
-
-