|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttachmentDirectoryAccessor
Interface for a component that provides access to attachment directories. This is typically only useful for file-based attachment stores.
Method Summary | |
---|---|
void |
checkValidAttachmentDirectory(Issue issue)
Deprecated. Use AttachmentHealth.errors() instead. This method is here while AttachmentStore
is still in jira-api. |
void |
checkValidTemporaryAttachmentDirectory()
Deprecated. Use AttachmentHealth.errors() instead. This method is here while AttachmentStore
is still in jira-api. |
File |
getAttachmentDirectory(Issue issue)
Returns the physical directory of the attachments for the given issue. |
File |
getAttachmentDirectory(Issue issue,
boolean createDirectory)
Returns the physical directory of the attachments for the given issue. |
File |
getAttachmentDirectory(String issueKey)
|
File |
getAttachmentDirectory(String attachmentDirectory,
String projectKey,
String issueKey)
Get the attachment directory for the given attachment base directory, project key, and issue key. |
File |
getAttachmentRootPath()
Returns the path used to store all attachments across the system. |
File |
getTemporaryAttachmentDirectory()
|
File |
getThumbnailDirectory(Issue issue)
Returns the physical directory of the thumbnails for the given issue, creating if necessary. |
Methods inherited from interface com.atlassian.jira.issue.attachment.AttachmentHealth |
---|
errors |
Method Detail |
---|
@Nonnull File getThumbnailDirectory(@Nonnull Issue issue)
issue
- the issue whose thumbnail directory you want
@Nullable File getAttachmentDirectory(@Nonnull String issueKey)
File getAttachmentDirectory(@Nonnull Issue issue, boolean createDirectory)
issue
- the issue whose attachment directory you wantcreateDirectory
- If true, and the directory does not currently exist, then the directory is created.
File getTemporaryAttachmentDirectory()
File getAttachmentDirectory(@Nonnull Issue issue)
issue
- the issue whose attachment directory you want
File getAttachmentDirectory(String attachmentDirectory, String projectKey, String issueKey)
attachmentDirectory
- base of attachmentsprojectKey
- the project key the issue belongs toissueKey
- the issue key for the issue
void checkValidAttachmentDirectory(Issue issue) throws AttachmentException
AttachmentHealth.errors()
instead. This method is here while AttachmentStore
is still in jira-api.
issue
- the issue whose attachment directory to check.
AttachmentException
- if the directory is not writable or missing and cannot be created.void checkValidTemporaryAttachmentDirectory() throws AttachmentException
AttachmentHealth.errors()
instead. This method is here while AttachmentStore
is still in jira-api.
AttachmentException
- if the directory is not writable or missing and cannot be created.File getAttachmentRootPath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |