public class

MockAttachmentPathManager

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

Summary

Constants
String DEFAULT_PATH
[Expand]
Inherited Fields
From interface com.atlassian.jira.config.util.AttachmentPathManager
Public Constructors
MockAttachmentPathManager()
MockAttachmentPathManager(String path)
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 indexPath)
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

Constants

public static final String DEFAULT_PATH

Constant Value: "/a/p/a/t/h"

Public Constructors

public MockAttachmentPathManager ()

public MockAttachmentPathManager (String path)

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 indexPath)

Set a custom location to store attachments

Parameters
indexPath path to store attachments

public void setUseDefaultDirectory ()

Use the default location within JIRA Home to store attachments