com.atlassian.jira.config.util
Class MockAttachmentPathManager
java.lang.Object
com.atlassian.jira.config.util.MockAttachmentPathManager
- All Implemented Interfaces:
- AttachmentPathManager
public class MockAttachmentPathManager
- extends Object
- implements AttachmentPathManager
- Since:
- v4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PATH
public static final String DEFAULT_PATH
- See Also:
- Constant Field Values
MockAttachmentPathManager
public MockAttachmentPathManager()
MockAttachmentPathManager
public MockAttachmentPathManager(String path)
getDefaultAttachmentPath
public String getDefaultAttachmentPath()
- Description copied from interface:
AttachmentPathManager
- Returns the attachment path that will be used by default if JIRA is so configured.
This will live as a subdirectory of jira-home.
- Specified by:
getDefaultAttachmentPath
in interface AttachmentPathManager
- Returns:
- the attachment path that will be used by default if JIRA is so configured.
getAttachmentPath
public String getAttachmentPath()
- Description copied from interface:
AttachmentPathManager
- Returns the path used to store attachments
- Specified by:
getAttachmentPath
in interface AttachmentPathManager
- Returns:
- the path used to store attachments
setCustomAttachmentPath
public void setCustomAttachmentPath(String indexPath)
- Description copied from interface:
AttachmentPathManager
- Set a custom location to store attachments
- Specified by:
setCustomAttachmentPath
in interface AttachmentPathManager
- Parameters:
indexPath
- path to store attachments
setUseDefaultDirectory
public void setUseDefaultDirectory()
- Description copied from interface:
AttachmentPathManager
- Use the default location within JIRA Home to store attachments
- Specified by:
setUseDefaultDirectory
in interface AttachmentPathManager
getUseDefaultDirectory
public boolean getUseDefaultDirectory()
- Description copied from interface:
AttachmentPathManager
- Returns true if attachments are stored within JIRA Home
- Specified by:
getUseDefaultDirectory
in interface AttachmentPathManager
- Returns:
- true if attachments are stored within JIRA Home
disableAttachments
public void disableAttachments()
- Description copied from interface:
AttachmentPathManager
- Turns "Allow Attachments" to off.
- Specified by:
disableAttachments
in interface AttachmentPathManager
getMode
public AttachmentPathManager.Mode getMode()
- Specified by:
getMode
in interface AttachmentPathManager
Copyright © 2002-2013 Atlassian. All Rights Reserved.