|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.util.AttachmentUtils
public class AttachmentUtils
Static utilities for working with the attachment files and their directories.
Constructor Summary | |
---|---|
AttachmentUtils()
|
Method Summary | |
---|---|
static void |
checkValidAttachmentDirectory(org.ofbiz.core.entity.GenericValue issue)
Deprecated. use checkValidAttachmentDirectory(com.atlassian.jira.issue.Issue) TODO: remove in 4.2 |
static void |
checkValidAttachmentDirectory(Issue issue)
Checks that the Attachment directory of the given issue is right to go - writable, accessible etc. |
static File |
getAttachmentDirectory(org.ofbiz.core.entity.GenericValue issue)
Deprecated. use getAttachmentDirectory(com.atlassian.jira.issue.Issue) TODO: remove in 4.2 |
static File |
getAttachmentDirectory(Issue issue)
Returns the physical directory of the attachments for the given issue. |
static File |
getAttachmentFile(Attachment attachment)
Returns the physical File for the given Attachment. |
static File |
getThumbnailFile(Attachment attachment)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttachmentUtils()
Method Detail |
---|
public static File getAttachmentDirectory(org.ofbiz.core.entity.GenericValue issue) throws DataAccessException
getAttachmentDirectory(com.atlassian.jira.issue.Issue)
TODO: remove in 4.2
issue
- the issue.
DataAccessException
- on failure getting required project or issue info.public static File getAttachmentDirectory(Issue issue) throws AttachmentException
issue
- the issue whose attachment directory you want.
AttachmentException
- if the directory cannot be determined.public static File getAttachmentFile(Attachment attachment) throws DataAccessException
attachment
- the attachment.
DataAccessException
- on failure getting required attachment info.public static File getThumbnailFile(Attachment attachment) throws DataAccessException
DataAccessException
public static void checkValidAttachmentDirectory(org.ofbiz.core.entity.GenericValue issue) throws AttachmentException
checkValidAttachmentDirectory(com.atlassian.jira.issue.Issue)
TODO: remove in 4.2
issue
- the issue.
AttachmentException
- if the atttachment directory is invalid or not writable.public static void checkValidAttachmentDirectory(Issue issue) throws AttachmentException
issue
- the issue whose attachment directory to check.
AttachmentException
- if the directory is not writable or missing and cannot be created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |