com.atlassian.confluence.it.rpc.delegates
Class AttachmentRpc

java.lang.Object
  extended by com.atlassian.confluence.it.rpc.delegates.AttachmentRpc

public class AttachmentRpc
extends Object

Makes remote calls to perform CRUD operations on Attachment Content entities, when the ContentRpc doesn't provide enough Attachment-specific behaviour.


Constructor Summary
AttachmentRpc(AuthenticatedWebResourceProvider provider)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)

remove

public void remove(ContentId pageId,
                   String fileName)


Copyright © 2003–2015 Atlassian. All rights reserved.