|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.pages.AttachmentUtils
public class AttachmentUtils
All versions of attachments in confluence are stored under a folder labeled with the name with the name of the attachment.
Example:
foo.gif (directory)
|
`-- 1 (file)
|
`-- 2 (file)
The containing folder is the parent folder holding the versions of that attachment
Constructor Summary | |
---|---|
AttachmentUtils()
|
Method Summary | |
---|---|
static String |
getConfluenceAttachmentDirectory()
|
static File |
getContainingFolder(Attachment attachment)
Deprecated. since 3.1 this method returns an incorrect path. Use HierarchicalFileSystemAttachmentDataDao.getDirectoryForAttachmentContainer(long, long) |
static InputStream |
getLatestAttachmentStream(Attachment attachment)
Returns the attachment data as an InputStream This method is not specific to any implementation of the AttachmentManager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttachmentUtils()
Method Detail |
---|
@Deprecated public static File getContainingFolder(Attachment attachment)
HierarchicalFileSystemAttachmentDataDao.getDirectoryForAttachmentContainer(long, long)
attachment
-
public static InputStream getLatestAttachmentStream(Attachment attachment)
This method is not specific to any implementation of the AttachmentManager.
attachment
- the attachment the data should be retrieved for
IllegalStateException
- if the AttachmentManager could not be retrieved from the application contextpublic static String getConfluenceAttachmentDirectory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |