java.lang.Object | |
↳ | com.atlassian.jira.issue.attachment.FileSystemAttachmentDirectoryAccessor |
Implementation of the AttachmentDirectoryAccessor that deals with filesystem-based attachment storage.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
projectManager |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Checks that the Attachment directory of the given issue is right to go - writable, accessible etc.
| |||||||||||
Checks that the temporary directory where attachments can be uploaded is writeable.
| |||||||||||
Checks that the attachment root directory and the temporary attachment directories exist and are writeable.
| |||||||||||
Get the attachment directory for the given attachment base directory, project key, and issue key.
| |||||||||||
Returns the physical directory of the attachments for the given issue.
| |||||||||||
Returns the physical directory of the attachments for the given issue.
| |||||||||||
Returns the path used to store all attachments across the system.
| |||||||||||
Returns the physical directory of the thumbnails for the given issue, creating if necessary.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.issue.attachment.AttachmentDirectoryAccessor
| |||||||||||
From interface
com.atlassian.jira.issue.attachment.AttachmentHealth
|
Checks that the Attachment directory of the given issue is right to go - writable, accessible etc. Will create it if necessary.
issue | the issue whose attachment directory to check. |
---|
AttachmentException | if the directory is not writable or missing and cannot be created. |
---|
Checks that the temporary directory where attachments can be uploaded is writeable.
AttachmentException |
---|
Checks that the attachment root directory and the temporary attachment directories exist and are writeable.
Get the attachment directory for the given attachment base directory, project key, and issue key.
The idea is to encapsulate all of the path-joinery magic to make future refactoring easier if we ever decide to move away from attachment-base/project-key/issue-ketattachmentDirectory | base of attachments |
---|---|
projectKey | the project key the issue belongs to |
issueKey | the issue key for the issue |
Returns the physical directory of the attachments for the given issue. This will create it if necessary.
issue | the issue whose attachment directory you want |
---|---|
createDirectory | If true, and the directory does not currently exist, then the directory is created. |
Returns the physical directory of the attachments for the given issue. This will create it if necessary.
issue | the issue whose attachment directory you want (required) |
---|
Returns the path used to store all attachments across the system.
Returns the physical directory of the thumbnails for the given issue, creating if necessary.
issue | the issue whose thumbnail directory you want |
---|