public class

Attachment

extends Object
implements LinkableContent TitledContent
java.lang.Object
   ↳ com.atlassian.confluence.it.Attachment

Summary

Constants
String GIF_TYPE
String PDF_TYPE
String PNG_TYPE
Public Constructors
Attachment(ContentEntity contentEntity, String filename, String contentType, String comment, byte[] data)
Attachment(ContentEntity contentEntity, File file, String contentType)
Attachment(ContentEntity contentEntity, String filename, String contentType, String classpathResource)
Attachment(ContentEntity contentEntity, Attachment other)
Copy constructor -- put the provided attachment on another page.
Public Methods
String getComment()
String getContentType()
byte[] getData()
String getDownloadUrl()
String getFilename()
long getId()
String getImageMarkup()
ContentEntity getPage()
String getThumbnailMarkup()
String getThumbnailUrl()
String getTitle()
String getUrl()
void setId(long id)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.it.LinkableContent
From interface com.atlassian.confluence.it.TitledContent

Constants

public static final String GIF_TYPE

Constant Value: "image/gif"

public static final String PDF_TYPE

Constant Value: "application/pdf"

public static final String PNG_TYPE

Constant Value: "image/png"

Public Constructors

public Attachment (ContentEntity contentEntity, String filename, String contentType, String comment, byte[] data)

public Attachment (ContentEntity contentEntity, File file, String contentType)

public Attachment (ContentEntity contentEntity, String filename, String contentType, String classpathResource)

public Attachment (ContentEntity contentEntity, Attachment other)

Copy constructor -- put the provided attachment on another page.

Public Methods

public String getComment ()

public String getContentType ()

public byte[] getData ()

public String getDownloadUrl ()

public String getFilename ()

public long getId ()

public String getImageMarkup ()

public ContentEntity getPage ()

public String getThumbnailMarkup ()

public String getThumbnailUrl ()

public String getTitle ()

public String getUrl ()

public void setId (long id)