public class RemoteAttachmentServiceImpl extends AbstractRemoteService<AttachmentService> implements RemoteAttachmentService
Modifier and Type | Class and Description |
---|---|
class |
RemoteAttachmentServiceImpl.RemoteAttachmentFinderImpl |
RemoteAttachmentService.RemoteAttachmentFinder
provider
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, putFuture
public 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 RemoteAttachmentService
ServiceException
@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 RemoteAttachmentService
ServiceException
@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 RemoteAttachmentService
ServiceException
public CompletionStage<PageResponse<Content>> addAttachmentsCompletionStage(ContentId contentId, Collection<AttachmentUpload> uploads) throws ServiceException
RemoteAttachmentService
Content
.addAttachmentsCompletionStage
in interface RemoteAttachmentService
contentId
- the id of the content to attach touploads
- the attachments being uploadedServiceException
public CompletionStage<PageResponse<Content>> addAttachmentsCompletionStage(ContentId contentId, ContentStatus status, Collection<AttachmentUpload> uploads) throws ServiceException
addAttachmentsCompletionStage
in interface RemoteAttachmentService
ServiceException
public CompletionStage<PageResponse<Content>> addAttachmentsCompletionStage(ContentId containerId, ContentStatus containerStatus, Collection<AttachmentUpload> uploads, boolean allowDuplicated, Expansions expansions) throws ServiceException
addAttachmentsCompletionStage
in interface RemoteAttachmentService
ServiceException
public 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.RemoteAttachmentService
Content
instance.
This method can be used to update the container, filename, media-type and comment of an Attachment.
update
in interface RemoteAttachmentService
attachment
- 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.RemoteAttachmentService
Content
instance.updateData
in interface RemoteAttachmentService
attachmentId
- 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.RemoteAttachmentService
delete
in interface RemoteAttachmentService
attachmentContent
- the content to removeServiceException
- if the content cannot be found, or cannot be deletedpublic CompletionStage<Content> updateCompletionStage(Content attachment) throws ServiceException
RemoteAttachmentService
Content
instance.
This method can be used to update the container, filename, media-type and comment of an Attachment.
updateCompletionStage
in interface RemoteAttachmentService
attachment
- the attachment to update, must include an idServiceException
public CompletionStage<Content> updateDataCompletionStage(ContentId attachmentId, AttachmentUpload upload) throws ServiceException
RemoteAttachmentService
Content
instance.updateDataCompletionStage
in interface RemoteAttachmentService
attachmentId
- the id of the attachment to updateupload
- the new content of the AttachmentServiceException
public CompletionStage<Void> deleteCompletionStage(Content attachmentContent) throws ServiceException
RemoteAttachmentService
deleteCompletionStage
in interface RemoteAttachmentService
attachmentContent
- the content to removeServiceException
- if the content cannot be found, or cannot be deletedpublic AttachmentService.Validator validator()
UnsupportedOperationException
Copyright © 2003–2020 Atlassian. All rights reserved.