public interface RemoteAttachmentService
AttachmentService
implementation that communicates with Confluence remotely using the Confluence REST API.
Provides future returning equivalents for the methods in AttachmentService.
Modifier and Type | Interface and Description |
---|---|
static interface |
RemoteAttachmentService.RemoteAttachmentFinder |
@Deprecated com.atlassian.util.concurrent.Promise<PageResponse<Content>> addAttachments(ContentId contentId, Collection<AttachmentUpload> uploads) throws ServiceException
addAttachmentsCompletionStage(ContentId, Collection)
instead.ServiceException
@Deprecated com.atlassian.util.concurrent.Promise<PageResponse<Content>> addAttachments(ContentId contentId, ContentStatus status, Collection<AttachmentUpload> uploads) throws ServiceException
addAttachmentsCompletionStage(ContentId, ContentStatus, Collection)
instead.ServiceException
@Deprecated com.atlassian.util.concurrent.Promise<PageResponse<Content>> addAttachments(ContentId containerId, ContentStatus containerStatus, Collection<AttachmentUpload> uploads, boolean allowDuplicated, Expansions expansions) throws ServiceException
addAttachmentsCompletionStage(ContentId, ContentStatus, Collection, boolean, Expansions)
instead.ServiceException
CompletionStage<PageResponse<Content>> addAttachmentsCompletionStage(ContentId contentId, Collection<AttachmentUpload> uploads) throws ServiceException
Content
.contentId
- the id of the content to attach touploads
- the attachments being uploadedServiceException
CompletionStage<PageResponse<Content>> addAttachmentsCompletionStage(ContentId contentId, ContentStatus status, Collection<AttachmentUpload> uploads) throws ServiceException
ServiceException
CompletionStage<PageResponse<Content>> addAttachmentsCompletionStage(ContentId containerId, ContentStatus containerStatus, Collection<AttachmentUpload> uploads, boolean allowDuplicated, Expansions expansions) throws ServiceException
ServiceException
RemoteAttachmentService.RemoteAttachmentFinder find(Expansion... expansions)
@Deprecated com.atlassian.util.concurrent.Promise<Content> update(Content attachment) throws ServiceException
updateCompletionStage(Content)
instead.Content
instance.
This method can be used to update the container, filename, media-type and comment of an Attachment.
attachment
- the attachment to update, must include an idServiceException
@Deprecated com.atlassian.util.concurrent.Promise<Content> updateData(ContentId attachmentId, AttachmentUpload upload) throws ServiceException
updateDataCompletionStage(ContentId, AttachmentUpload)
instead.Content
instance.attachmentId
- the id of the attachment to updateupload
- the new content of the AttachmentServiceException
@Deprecated com.atlassian.util.concurrent.Promise<Void> delete(Content attachmentContent) throws ServiceException
deleteCompletionStage(Content)
instead.attachmentContent
- the content to removeServiceException
- if the content cannot be found, or cannot be deletedCompletionStage<Content> updateCompletionStage(Content attachment) throws ServiceException
Content
instance.
This method can be used to update the container, filename, media-type and comment of an Attachment.
attachment
- the attachment to update, must include an idServiceException
CompletionStage<Content> updateDataCompletionStage(ContentId attachmentId, AttachmentUpload upload) throws ServiceException
Content
instance.attachmentId
- the id of the attachment to updateupload
- the new content of the AttachmentServiceException
CompletionStage<Void> deleteCompletionStage(Content attachmentContent) throws ServiceException
attachmentContent
- the content to removeServiceException
- if the content cannot be found, or cannot be deletedCopyright © 2003–2021 Atlassian. All rights reserved.