|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.rest.client.AbstractRemoteService<AttachmentService>
com.atlassian.confluence.rest.client.RemoteAttachmentServiceImpl
public class RemoteAttachmentServiceImpl
AttachmentService implementation that communicates with Confluence remotely using the Confluence REST api
| Nested Class Summary | |
|---|---|
class |
RemoteAttachmentServiceImpl.RemoteAttachmentFinderImpl
|
| Nested classes/interfaces inherited from interface com.atlassian.confluence.rest.client.RemoteAttachmentService |
|---|
RemoteAttachmentService.RemoteAttachmentFinder |
| Constructor Summary | |
|---|---|
RemoteAttachmentServiceImpl(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executor)
|
|
| Method Summary | |
|---|---|
com.atlassian.util.concurrent.Promise<PageResponse<Content>> |
addAttachments(ContentId contentId,
java.util.Collection<AttachmentUpload> uploads)
Add one or more attachments to a piece of Content. |
com.atlassian.util.concurrent.Promise<java.lang.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. |
AttachmentService.Validator |
validator()
Remote validation not supported |
| Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService |
|---|
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, deleteFuture, getFutureGenericCollection, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, putFuture |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteAttachmentServiceImpl(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executor)
| Method Detail |
|---|
public com.atlassian.util.concurrent.Promise<PageResponse<Content>> addAttachments(ContentId contentId,
java.util.Collection<AttachmentUpload> uploads)
throws ServiceException
RemoteAttachmentServiceContent.
addAttachments in interface RemoteAttachmentServicecontentId - the id of the content to attach touploads - the attachments being uploaded
ServiceExceptionpublic RemoteAttachmentService.RemoteAttachmentFinder find(Expansion... expansions)
find in interface RemoteAttachmentService
public com.atlassian.util.concurrent.Promise<Content> update(Content attachment)
throws ServiceException
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 id
ServiceException
public com.atlassian.util.concurrent.Promise<Content> updateData(ContentId attachmentId,
AttachmentUpload upload)
throws ServiceException
RemoteAttachmentServiceContent instance.
updateData in interface RemoteAttachmentServiceattachmentId - the id of the attachment to updateupload - the new content of the Attachment
ServiceException
public com.atlassian.util.concurrent.Promise<java.lang.Void> delete(Content attachmentContent)
throws ServiceException
RemoteAttachmentService
delete in interface RemoteAttachmentServiceattachmentContent - the content to remove
ServiceException - if the content cannot be found, or cannot be deletedpublic AttachmentService.Validator validator()
java.lang.UnsupportedOperationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||