| java.lang.Object | |
| ↳ | com.atlassian.confluence.it.Attachment |
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | GIF_TYPE | ||||||||||
| String | MOV_TYPE | ||||||||||
| String | PDF_TYPE | ||||||||||
| String | PNG_TYPE | ||||||||||
| String | SWF_TYPE | ||||||||||
| String | TEXT_TYPE | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an Attachment object of an intended file.
| |||||||||||
Copy constructor -- put the provided attachment on another page.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the wiki markup to embed this image from another page in another space.
| |||||||||||
The application context without any slashes at all.
| |||||||||||
Gets the wiki markup to insert this attachment, as an embedded imaged, on the page to which it's attached.
| |||||||||||
Returns xpath that will match the an embedded image.
| |||||||||||
Returns xpath that will match the "unidentified attachment" placeholder for
this image.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.confluence.it.LinkableContent
| |||||||||||
From interface
com.atlassian.confluence.it.TitledContent
| |||||||||||
Creates an Attachment object of an intended file.
Example:
Attachment attachment = new Attachment(TEST_PAGE, attachmentName, Attachment.TEXT_TYPE, "your upload comment", "foo".getBytes());
| contentEntity | the page or blog where the attachment will reside |
|---|---|
| filename | the attachment file |
| contentType | mime type of the attachment |
| comment | comment associated with the attachment, which can be null |
| data | byte array of the attachment content |
Copy constructor -- put the provided attachment on another page.
Retrieves the wiki markup to embed this image from another page in another space.
The application context without any slashes at all. Eg "confluence"
Gets the wiki markup to insert this attachment, as an embedded imaged, on the page to which it's attached.
Returns xpath that will match the "unidentified attachment" placeholder for this image.