|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RemoteAttachmentService
* AttachmentService implementation that communicates with Confluence remotely using the Confluence REST API.
Provides future returning equivalents for the methods in AttachmentService.
| Nested Class Summary | |
|---|---|
static interface |
RemoteAttachmentService.RemoteAttachmentFinder
|
| Method Summary | |
|---|---|
com.atlassian.util.concurrent.Promise<PageResponse<Content>> |
addAttachments(ContentId contentId,
Collection<AttachmentUpload> uploads)
Add one or more attachments to a piece of Content. |
com.atlassian.util.concurrent.Promise<Void> |
delete(Content attachmentContent)
Removes an Attachment from the system. |
RemoteAttachmentService.RemoteAttachmentFinder |
find(Expansion... expansions)
|
com.atlassian.util.concurrent.Promise<Content> |
update(Content attachment)
Updates the non-data parts of an Attachment Content instance. |
com.atlassian.util.concurrent.Promise<Content> |
updateData(ContentId attachmentId,
AttachmentUpload upload)
Updates the data part of an Attachment Content instance. |
| Method Detail |
|---|
com.atlassian.util.concurrent.Promise<PageResponse<Content>> addAttachments(ContentId contentId,
Collection<AttachmentUpload> uploads)
throws ServiceException
Content.
contentId - the id of the content to attach touploads - the attachments being uploaded
ServiceExceptionRemoteAttachmentService.RemoteAttachmentFinder find(Expansion... expansions)
com.atlassian.util.concurrent.Promise<Content> update(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 id
ServiceException
com.atlassian.util.concurrent.Promise<Content> updateData(ContentId attachmentId,
AttachmentUpload upload)
throws ServiceException
Content instance.
attachmentId - the id of the attachment to updateupload - the new content of the Attachment
ServiceException
com.atlassian.util.concurrent.Promise<Void> delete(Content attachmentContent)
throws ServiceException
attachmentContent - the content to remove
ServiceException - if the content cannot be found, or cannot be deleted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||