public class AttachmentRpc extends Object
ContentRpc
doesn't provide enough Attachment-specific behaviour.Constructor and Description |
---|
AttachmentRpc(AuthenticatedWebResourceProvider provider) |
Modifier and Type | Method and Description |
---|---|
Attachment |
addAttachment(ContentId contentId,
Attachment attachment) |
List<Attachment> |
addAttachments(ContentId contentId,
Attachment... attachments) |
Attachment |
getAttachment(ContentId contentId,
String fileName) |
List<Attachment> |
getAttachments(Page page) |
void |
remove(ContentId pageId,
String fileName) |
Attachment |
updateAttachment(Attachment attachment) |
Attachment |
updateData(Attachment attachment) |
public AttachmentRpc(AuthenticatedWebResourceProvider provider)
public Attachment addAttachment(ContentId contentId, Attachment attachment)
public List<Attachment> addAttachments(ContentId contentId, Attachment... attachments)
public Attachment getAttachment(ContentId contentId, String fileName)
public List<Attachment> getAttachments(Page page)
public Attachment updateAttachment(Attachment attachment)
public Attachment updateData(Attachment attachment)
Copyright © 2003–2016 Atlassian. All rights reserved.