Class AttachmentRpc
- java.lang.Object
-
- com.atlassian.confluence.it.rpc.delegates.AttachmentRpc
-
public class AttachmentRpc extends Object
Makes remote calls to perform CRUD operations on Attachment Content entities, when theContentRpc
doesn't provide enough Attachment-specific behaviour.
-
-
Constructor Summary
Constructors Constructor Description AttachmentRpc(AuthenticatedWebResourceProvider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attachment
addAttachment(ContentId contentId, Attachment attachment)
List<Attachment>
addAttachments(ContentId contentId, Attachment... attachments)
Attachment
getAttachment(ContentId contentId, String fileName)
List<ContentId>
getAttachmentIds(ContentId container, String fileName)
List<Attachment>
getAttachments(Page page)
void
remove(ContentId pageId, String fileName)
Attachment
updateAttachment(Attachment attachment)
Attachment
updateData(Attachment attachment)
-
-
-
Constructor Detail
-
AttachmentRpc
public AttachmentRpc(AuthenticatedWebResourceProvider provider)
-
-
Method Detail
-
addAttachment
public Attachment addAttachment(ContentId contentId, Attachment attachment)
-
addAttachments
public List<Attachment> addAttachments(ContentId contentId, Attachment... attachments)
-
getAttachment
public Attachment getAttachment(ContentId contentId, String fileName)
-
getAttachments
public List<Attachment> getAttachments(Page page)
-
updateAttachment
public Attachment updateAttachment(Attachment attachment)
-
updateData
public Attachment updateData(Attachment attachment)
-
-