public static class AttachmentPathManager.PropertiesAdaptor extends Object implements AttachmentPathManager
AttachmentPathManager that uses the ApplicationProperties to get the current paths.
Nothing outside of this class should ever refer to the JIRA_PATH_ATTACHMENTS ApplicationProperty. That property
needs to be interpreted properly when using JIRA Home.AttachmentPathManager.Mode, AttachmentPathManager.PropertiesAdaptorATTACHMENTS_DIR| Constructor and Description |
|---|
PropertiesAdaptor(ApplicationProperties applicationProperties,
JiraHome jiraHome) |
| Modifier and Type | Method and Description |
|---|---|
void |
disableAttachments()
Turns "Allow Attachments" to off.
|
String |
getAttachmentPath()
Returns the path used to store attachments
|
String |
getDefaultAttachmentPath()
Returns the attachment path that will be used by default if JIRA is so configured.
|
AttachmentPathManager.Mode |
getMode() |
boolean |
getUseDefaultDirectory()
Returns true if attachments are stored within JIRA Home
|
void |
setCustomAttachmentPath(String path)
Set a custom location to store attachments
|
void |
setUseDefaultDirectory()
Use the default location within JIRA Home to store attachments
|
public PropertiesAdaptor(ApplicationProperties applicationProperties, JiraHome jiraHome)
public String getDefaultAttachmentPath()
AttachmentPathManagergetDefaultAttachmentPath in interface AttachmentPathManagerpublic String getAttachmentPath()
AttachmentPathManagergetAttachmentPath in interface AttachmentPathManagerpublic void setCustomAttachmentPath(String path)
AttachmentPathManagersetCustomAttachmentPath in interface AttachmentPathManagerpath - path to store attachmentspublic void setUseDefaultDirectory()
AttachmentPathManagersetUseDefaultDirectory in interface AttachmentPathManagerpublic boolean getUseDefaultDirectory()
AttachmentPathManagergetUseDefaultDirectory in interface AttachmentPathManagerpublic void disableAttachments()
AttachmentPathManagerdisableAttachments in interface AttachmentPathManagerpublic AttachmentPathManager.Mode getMode()
getMode in interface AttachmentPathManagerCopyright © 2002-2021 Atlassian. All Rights Reserved.