public static class IndexPathManager.PropertiesAdaptor extends Object implements IndexPathManager
IndexPathManager that uses the ApplicationProperties to get the current paths.
Nothing outside of this class should ever refer to the JIRA_PATH_INDEX ApplicationProperty. That property
needs to be interpreted properly when using JIRA Home.IndexPathManager.Directory, IndexPathManager.Mode, IndexPathManager.PropertiesAdaptorINDEXES_DIR| Constructor and Description |
|---|
PropertiesAdaptor(ApplicationProperties applicationProperties,
JiraHome jiraHome) |
| Modifier and Type | Method and Description |
|---|---|
String |
getChangeHistoryIndexPath()
Returns the path of JIRA's change history indexes.
|
String |
getCommentIndexPath()
Returns the path of JIRA's comment indexes.
|
String |
getDefaultIndexRootPath()
This returns the root index directory that JIRA will use by default, if it is configured to do so.
|
String |
getIndexRootPath()
Returns the root path of JIRA's indexes.
|
String |
getIssueIndexPath()
Returns the path of JIRA's issue indexes.
|
IndexPathManager.Mode |
getMode() |
String |
getPluginIndexRootPath()
Returns the root path of JIRA's plugin indexes.
|
String |
getSharedEntityIndexPath()
Returns the path of JIRA's shared entity indexes.
|
boolean |
getUseDefaultDirectory()
Whether we are using the default index directory (within JIRA Home).
|
String |
getWorklogIndexPath()
Returns the path of JIRA's worklog indexes
|
void |
setIndexRootPath(String rootPath)
Specify an explicit index root path.
|
void |
setUseDefaultDirectory()
Specify that the default location within JIRA Home should be used to store indexes.
|
public PropertiesAdaptor(ApplicationProperties applicationProperties, JiraHome jiraHome)
public String getIndexRootPath()
IndexPathManagergetIndexRootPath in interface IndexPathManagerpublic String getDefaultIndexRootPath()
IndexPathManagergetDefaultIndexRootPath in interface IndexPathManagerpublic void setIndexRootPath(String rootPath)
IndexPathManagersetIndexRootPath in interface IndexPathManagerrootPath - the path to usepublic void setUseDefaultDirectory()
IndexPathManagersetUseDefaultDirectory in interface IndexPathManagerpublic boolean getUseDefaultDirectory()
IndexPathManagergetUseDefaultDirectory in interface IndexPathManagerpublic IndexPathManager.Mode getMode()
getMode in interface IndexPathManagerpublic String getIssueIndexPath()
IndexPathManagergetIssueIndexPath in interface IndexPathManagerpublic String getCommentIndexPath()
IndexPathManagergetCommentIndexPath in interface IndexPathManagerpublic String getWorklogIndexPath()
IndexPathManagergetWorklogIndexPath in interface IndexPathManagerpublic String getChangeHistoryIndexPath()
IndexPathManagergetChangeHistoryIndexPath in interface IndexPathManagerpublic String getSharedEntityIndexPath()
IndexPathManagergetSharedEntityIndexPath in interface IndexPathManagerpublic String getPluginIndexRootPath()
IndexPathManagerNOTE: Each Plugin should create a new directory under this path
getPluginIndexRootPath in interface IndexPathManagerCopyright © 2002-2015 Atlassian. All Rights Reserved.