Class AbstractRemoteContentService
java.lang.Object
com.atlassian.confluence.rest.client.AbstractRemoteService<ContentService>
com.atlassian.confluence.rest.client.AbstractRemoteContentService
- All Implemented Interfaces:
RemoteContentService
- Direct Known Subclasses:
GraphQLRemoteContentServiceImpl,RemoteContentServiceImpl
public abstract class AbstractRemoteContentService
extends AbstractRemoteService<ContentService>
implements RemoteContentService
ContentService implementation that communicates with Confluence remotely.- Since:
- 9.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classNested classes/interfaces inherited from interface com.atlassian.confluence.rest.client.RemoteContentService
RemoteContentService.RemoteContentFetcher, RemoteContentService.RemoteContentFinder, RemoteContentService.RemoteParameterContentFinder, RemoteContentService.RemoteSingleContentFetcher -
Field Summary
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractRemoteContentService(AuthenticatedWebResourceProvider provider, ExecutorService executor) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancontainsExperimentalExpansion(Expansion[] expansions) createCompletionStage(Content newContent) Create a piece of content.createCompletionStage(Content newContent, Expansion... expansions) Create a piece of content.deleteCompletionStage(Content content) Removes an item of Content from the system.getChildrenCompletionStage(Content parent, PageRequest pageRequest, Expansion... expansions) Retrieve the children of an item of Content.javax.ws.rs.client.WebTargetjavax.ws.rs.client.WebTargetpurgeCompletionStage(Content content) Permanently delete a trashed piece of content.restoreCompletionStage(Content content) Restore a trashed piece of content.trashCompletionStage(Content content) Trash a piece of content.updateCompletionStage(Content content) Updates a piece of content.Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfGenericListResponse, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, newExperimentalRestWebTarget, newWebTarget, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postVoidCompletionStage, putCompletionStage, putVoidCompletionStageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.rest.client.RemoteContentService
find
-
Constructor Details
-
AbstractRemoteContentService
protected AbstractRemoteContentService(AuthenticatedWebResourceProvider provider, ExecutorService executor) - Since:
- 9.0
-
-
Method Details
-
createCompletionStage
Description copied from interface:RemoteContentServiceCreate a piece of content.Valid
ContentRepresentations for theContentBodycan be found in the documentation on theContentBodyConversionService.- Specified by:
createCompletionStagein interfaceRemoteContentService- Parameters:
newContent- the content to create- Returns:
- the content created
-
createCompletionStage
public CompletionStage<Content> createCompletionStage(Content newContent, Expansion... expansions) throws ServiceException Description copied from interface:RemoteContentServiceCreate a piece of content.Valid
ContentRepresentations for theContentBodycan be found in the documentation on theContentBodyConversionService.- Specified by:
createCompletionStagein interfaceRemoteContentService- Parameters:
newContent- the content to createexpansions- the particular expansions will be applied to the new created content- Returns:
- the content created
- Throws:
ServiceException- if the content cannot be created
-
updateCompletionStage
Description copied from interface:RemoteContentServiceUpdates a piece of content.Valid
ContentRepresentations for theContentBodycan be found in the documentation on theContentBodyConversionService.- Specified by:
updateCompletionStagein interfaceRemoteContentService- Parameters:
content- the updatedContentwith metadata about the change- Returns:
- the updated content after being persisted
-
trashCompletionStage
Description copied from interface:RemoteContentServiceTrash a piece of content.The
#delete(Content)method should be used for content that doesn't support trashing. Currently Pages and Blogposts support trashing.- Specified by:
trashCompletionStagein interfaceRemoteContentService- Parameters:
content- the content to be trashed- Returns:
- the content after being trashed
-
restoreCompletionStage
Description copied from interface:RemoteContentServiceRestore a trashed piece of content.- Specified by:
restoreCompletionStagein interfaceRemoteContentService- Parameters:
content- the content to be restored- Returns:
- the content after being restored
-
purgeCompletionStage
Description copied from interface:RemoteContentServicePermanently delete a trashed piece of content.- Specified by:
purgeCompletionStagein interfaceRemoteContentService- Parameters:
content- the content to be purged
-
deleteCompletionStage
Description copied from interface:RemoteContentServiceRemoves an item of Content from the system.- Specified by:
deleteCompletionStagein interfaceRemoteContentService- Parameters:
content- if of the content to remove
-
getChildrenCompletionStage
public CompletionStage<PageResponse<Content>> getChildrenCompletionStage(Content parent, PageRequest pageRequest, Expansion... expansions) Description copied from interface:RemoteContentServiceRetrieve the children of an item of Content.Children will be
Contentitems of the same type as the parent.The pageRequest limit is restricted to a maximum page size.
- Specified by:
getChildrenCompletionStagein interfaceRemoteContentService- Parameters:
parent- - the content to retrieve the children forpageRequest- - a pageRequest indicating how much content to retrieve.- Returns:
- a partial list of the top level content in this space.
-
newContentWebResource
public javax.ws.rs.client.WebTarget newContentWebResource() -
newExperimentalContentWebResource
public javax.ws.rs.client.WebTarget newExperimentalContentWebResource() -
containsExperimentalExpansion
-