|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.config.util.AttachmentPathManager.PropertiesAdaptor
public static class AttachmentPathManager.PropertiesAdaptor
Implementation of 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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.config.util.AttachmentPathManager |
---|
AttachmentPathManager.Mode, AttachmentPathManager.PropertiesAdaptor |
Field Summary |
---|
Fields inherited from interface com.atlassian.jira.config.util.AttachmentPathManager |
---|
ATTACHMENTS_DIR |
Constructor Summary | |
---|---|
AttachmentPathManager.PropertiesAdaptor(ApplicationProperties applicationProperties,
JiraHome jiraHome)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttachmentPathManager.PropertiesAdaptor(ApplicationProperties applicationProperties, JiraHome jiraHome)
Method Detail |
---|
public String getDefaultAttachmentPath()
AttachmentPathManager
getDefaultAttachmentPath
in interface AttachmentPathManager
public String getAttachmentPath()
AttachmentPathManager
getAttachmentPath
in interface AttachmentPathManager
public void setCustomAttachmentPath(String path)
AttachmentPathManager
setCustomAttachmentPath
in interface AttachmentPathManager
path
- path to store attachmentspublic void setUseDefaultDirectory()
AttachmentPathManager
setUseDefaultDirectory
in interface AttachmentPathManager
public boolean getUseDefaultDirectory()
AttachmentPathManager
getUseDefaultDirectory
in interface AttachmentPathManager
public void disableAttachments()
AttachmentPathManager
disableAttachments
in interface AttachmentPathManager
public AttachmentPathManager.Mode getMode()
getMode
in interface AttachmentPathManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |