com.atlassian.confluence.it.rpc.xmlrpc
Class XmlRpcAttachmentClient

java.lang.Object
  extended by com.atlassian.confluence.it.rpc.xmlrpc.XmlRpcAttachmentClient

public class XmlRpcAttachmentClient
extends Object

Makes XML-RPC calls for Confluence Attachments.


Constructor Summary
XmlRpcAttachmentClient(ConfluenceRpc rpc)
           
 
Method Summary
 long createAttachment(long contentId, Attachment attachment)
           
 void editAttachment(Attachment oldAttachment, Attachment newAttachment)
          Edit either the owning page or the filename of the attachment.
 Attachment getAttachment(long contentId, String fileName)
           
 Attachment getAttachment(long contentId, String fileName, String version)
           
 long getAttachmentId(long contentId, String fileName)
           
 List<Attachment> getAttachments(Page homePage)
           
 void removeAttachment(long pageId, String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlRpcAttachmentClient

public XmlRpcAttachmentClient(ConfluenceRpc rpc)
Method Detail

getAttachment

public Attachment getAttachment(long contentId,
                                String fileName)

getAttachment

public Attachment getAttachment(long contentId,
                                String fileName,
                                String version)

getAttachmentId

public long getAttachmentId(long contentId,
                            String fileName)

getAttachments

public List<Attachment> getAttachments(Page homePage)

createAttachment

public long createAttachment(long contentId,
                             Attachment attachment)

editAttachment

public void editAttachment(Attachment oldAttachment,
                           Attachment newAttachment)
Edit either the owning page or the filename of the attachment.


removeAttachment

public void removeAttachment(long pageId,
                             String fileName)


Copyright © 2003–2015 Atlassian. All rights reserved.