public class RemoteAttachmentServiceImpl extends AbstractRemoteService<AttachmentService> implements RemoteAttachmentService
| Modifier and Type | Class and Description |
|---|---|
class |
RemoteAttachmentServiceImpl.RemoteAttachmentFinderImpl |
RemoteAttachmentService.RemoteAttachmentFinderprovider| Constructor and Description |
|---|
RemoteAttachmentServiceImpl(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executor) |
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, putFuturepublic RemoteAttachmentServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
@Deprecated public com.atlassian.util.concurrent.Promise<PageResponse<Content>> addAttachments(ContentId contentId, Collection<AttachmentUpload> uploads) throws ServiceException
addAttachmentsCompletionStage(ContentId, Collection) instead.addAttachments in interface RemoteAttachmentServiceServiceException@Deprecated public com.atlassian.util.concurrent.Promise<PageResponse<Content>> addAttachments(ContentId contentId, ContentStatus status, Collection<AttachmentUpload> uploads) throws ServiceException
addAttachmentsCompletionStage(ContentId, ContentStatus, Collection) instead.addAttachments in interface RemoteAttachmentServiceServiceException@Deprecated public 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.addAttachments in interface RemoteAttachmentServiceServiceExceptionpublic CompletionStage<PageResponse<Content>> addAttachmentsCompletionStage(ContentId contentId, Collection<AttachmentUpload> uploads) throws ServiceException
RemoteAttachmentServiceContent.addAttachmentsCompletionStage in interface RemoteAttachmentServicecontentId - the id of the content to attach touploads - the attachments being uploadedServiceExceptionpublic CompletionStage<PageResponse<Content>> addAttachmentsCompletionStage(ContentId contentId, ContentStatus status, Collection<AttachmentUpload> uploads) throws ServiceException
addAttachmentsCompletionStage in interface RemoteAttachmentServiceServiceExceptionpublic CompletionStage<PageResponse<Content>> addAttachmentsCompletionStage(ContentId containerId, ContentStatus containerStatus, Collection<AttachmentUpload> uploads, boolean allowDuplicated, Expansions expansions) throws ServiceException
addAttachmentsCompletionStage in interface RemoteAttachmentServiceServiceExceptionpublic RemoteAttachmentService.RemoteAttachmentFinder find(Expansion... expansions)
find in interface RemoteAttachmentService@Deprecated public com.atlassian.util.concurrent.Promise<Content> update(Content attachment) throws ServiceException
updateCompletionStage(Content) instead.RemoteAttachmentServiceContent instance.
This method can be used to update the container, filename, media-type and comment of an Attachment.
update in interface RemoteAttachmentServiceattachment - the attachment to update, must include an idServiceException@Deprecated public com.atlassian.util.concurrent.Promise<Content> updateData(ContentId attachmentId, AttachmentUpload upload) throws ServiceException
updateDataCompletionStage(ContentId, AttachmentUpload) instead.RemoteAttachmentServiceContent instance.updateData in interface RemoteAttachmentServiceattachmentId - the id of the attachment to updateupload - the new content of the AttachmentServiceException@Deprecated public com.atlassian.util.concurrent.Promise<Void> delete(Content attachmentContent) throws ServiceException
deleteCompletionStage(Content) instead.RemoteAttachmentServicedelete in interface RemoteAttachmentServiceattachmentContent - the content to removeServiceException - if the content cannot be found, or cannot be deletedpublic CompletionStage<Content> updateCompletionStage(Content attachment) throws ServiceException
RemoteAttachmentServiceContent instance.
This method can be used to update the container, filename, media-type and comment of an Attachment.
updateCompletionStage in interface RemoteAttachmentServiceattachment - the attachment to update, must include an idServiceExceptionpublic CompletionStage<Content> updateDataCompletionStage(ContentId attachmentId, AttachmentUpload upload) throws ServiceException
RemoteAttachmentServiceContent instance.updateDataCompletionStage in interface RemoteAttachmentServiceattachmentId - the id of the attachment to updateupload - the new content of the AttachmentServiceExceptionpublic CompletionStage<Void> deleteCompletionStage(Content attachmentContent) throws ServiceException
RemoteAttachmentServicedeleteCompletionStage in interface RemoteAttachmentServiceattachmentContent - the content to removeServiceException - if the content cannot be found, or cannot be deletedpublic AttachmentService.Validator validator()
UnsupportedOperationExceptionCopyright © 2003–2023 Atlassian. All rights reserved.