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

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

public class AttachmentRpc
extends java.lang.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)
           
 java.util.List<Attachment> addAttachments(ContentId contentId, Attachment... attachments)
           
 Attachment getAttachment(ContentId contentId, java.lang.String fileName)
           
 java.util.List<Attachment> getAttachments(Page page)
           
 void remove(ContentId pageId, java.lang.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 java.util.List<Attachment> addAttachments(ContentId contentId,
                                                 Attachment... attachments)

getAttachment

public Attachment getAttachment(ContentId contentId,
                                java.lang.String fileName)

getAttachments

public java.util.List<Attachment> getAttachments(Page page)

updateAttachment

public Attachment updateAttachment(Attachment attachment)

updateData

public Attachment updateData(Attachment attachment)

remove

public void remove(ContentId pageId,
                   java.lang.String fileName)


Copyright © 2003-2014 Atlassian. All Rights Reserved.