public static class

AttachmentPathManager.PropertiesAdaptor

extends Object
implements AttachmentPathManager
java.lang.Object
   ↳ com.atlassian.jira.config.util.AttachmentPathManager.PropertiesAdaptor

Class Overview

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.

Summary

[Expand]
Inherited Fields
From interface com.atlassian.jira.config.util.AttachmentPathManager
Public Constructors
PropertiesAdaptor(ApplicationProperties applicationProperties, JiraHome jiraHome)
Public Methods
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
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.config.util.AttachmentPathManager

Public Constructors

public PropertiesAdaptor (ApplicationProperties applicationProperties, JiraHome jiraHome)

Public Methods

public void disableAttachments ()

Turns "Allow Attachments" to off.

public String getAttachmentPath ()

Returns the path used to store attachments

Returns
  • the path used to store attachments

public String getDefaultAttachmentPath ()

Returns the attachment path that will be used by default if JIRA is so configured. This will live as a subdirectory of jira-home.

Returns
  • the attachment path that will be used by default if JIRA is so configured.

public AttachmentPathManager.Mode getMode ()

public boolean getUseDefaultDirectory ()

Returns true if attachments are stored within JIRA Home

Returns
  • true if attachments are stored within JIRA Home

public void setCustomAttachmentPath (String path)

Set a custom location to store attachments

Parameters
path path to store attachments

public void setUseDefaultDirectory ()

Use the default location within JIRA Home to store attachments