java.lang.Object | |||||
↳ | com.atlassian.core.bean.EntityObject | ||||
↳ | com.atlassian.confluence.core.ConfluenceEntityObject | ||||
↳ | com.atlassian.confluence.core.AbstractVersionedEntityObject | ||||
↳ | com.atlassian.confluence.core.AbstractLabelableEntityObject | ||||
↳ | com.atlassian.confluence.pages.Attachment |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Attachment.Type | An enum of basic Attachment types with a text description of each type. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CONTENT_TYPE | ||||||||||
String | PROFILE_PICTURE_COMMENT |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.confluence.core.AbstractVersionedEntityObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new Attachment.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
accessor methods provided for hibernate proxy use only.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.confluence.core.AbstractLabelableEntityObject
| |||||||||||
From class
com.atlassian.confluence.core.AbstractVersionedEntityObject
| |||||||||||
From class
com.atlassian.confluence.core.ConfluenceEntityObject
| |||||||||||
From class
com.atlassian.core.bean.EntityObject
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.bonnie.Searchable
| |||||||||||
From interface
com.atlassian.bonnie.search.SearchableAttachment
| |||||||||||
From interface
com.atlassian.confluence.core.Addressable
| |||||||||||
From interface
com.atlassian.confluence.core.ContentTypeAware
| |||||||||||
From interface
com.atlassian.confluence.core.HasLinkWikiMarkup
| |||||||||||
From interface
com.atlassian.confluence.core.Versioned
| |||||||||||
From interface
com.atlassian.confluence.labels.EditableLabelable
| |||||||||||
From interface
com.atlassian.confluence.labels.Labelable
| |||||||||||
From interface
com.atlassian.confluence.spaces.Spaced
|
Constructs a new Attachment.
The object to which the attachment is attached. Eg the page or blog post to which its attached.
mimeType | the mime type to be described. Should not be null |
---|---|
fileExtension | the file extension to help with the deriving of the description. |
Returns the file extension of the attachment. If there is no extension, an empty string is returned.
Spaced
), or null otherwise.
Only the current version of an attachment is indexable (until we can deal with old objects in search results) We also don't want to index attachments associated with drafts or global descriptions.
Determines whether the Attachment is a user's profile picture
accessor methods provided for hibernate proxy use only. use ImageDetailsManager.getImageDetails(Attachment attachment)