com.atlassian.confluence.it
Class Attachment

java.lang.Object
  extended by com.atlassian.confluence.it.Attachment
All Implemented Interfaces:
LinkableContent, TitledContent

public class Attachment
extends java.lang.Object
implements TitledContent, LinkableContent


Field Summary
static java.lang.String GIF_TYPE
           
static java.lang.String PDF_TYPE
           
static java.lang.String PNG_TYPE
           
 
Constructor Summary
Attachment(ContentEntity contentEntity, Attachment other)
          Copy constructor -- put the provided attachment on another page.
Attachment(ContentEntity contentEntity, java.io.File file, java.lang.String contentType)
           
Attachment(ContentEntity contentEntity, java.lang.String filename, java.lang.String contentType, java.lang.String classpathResource)
           
Attachment(ContentEntity contentEntity, java.lang.String filename, java.lang.String contentType, java.lang.String comment, byte[] data)
           
 
Method Summary
 java.lang.String getComment()
           
 java.lang.String getContentType()
           
 byte[] getData()
           
 java.lang.String getDownloadUrl()
           
 java.lang.String getFilename()
           
 long getId()
           
 java.lang.String getImageMarkup()
           
 ContentEntity getPage()
           
 java.lang.String getThumbnailUrl()
           
 java.lang.String getTitle()
           
 java.lang.String getUrl()
           
 void setId(long id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GIF_TYPE

public static final java.lang.String GIF_TYPE
See Also:
Constant Field Values

PNG_TYPE

public static final java.lang.String PNG_TYPE
See Also:
Constant Field Values

PDF_TYPE

public static final java.lang.String PDF_TYPE
See Also:
Constant Field Values
Constructor Detail

Attachment

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

Attachment

public Attachment(ContentEntity contentEntity,
                  java.io.File file,
                  java.lang.String contentType)

Attachment

public Attachment(ContentEntity contentEntity,
                  java.lang.String filename,
                  java.lang.String contentType,
                  java.lang.String classpathResource)

Attachment

public Attachment(ContentEntity contentEntity,
                  Attachment other)
Copy constructor -- put the provided attachment on another page.

Method Detail

getPage

public ContentEntity getPage()

getFilename

public java.lang.String getFilename()

getContentType

public java.lang.String getContentType()

getComment

public java.lang.String getComment()

getId

public long getId()

setId

public void setId(long id)

getData

public byte[] getData()

getDownloadUrl

public java.lang.String getDownloadUrl()

getThumbnailUrl

public java.lang.String getThumbnailUrl()

getImageMarkup

public java.lang.String getImageMarkup()

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface TitledContent

getUrl

public java.lang.String getUrl()
Specified by:
getUrl in interface LinkableContent


Copyright © 2003-2010 Atlassian. All Rights Reserved.