public class DefaultIndexPathService extends Object implements IndexPathService
| Constructor and Description |
|---|
DefaultIndexPathService(IndexPathManager indexPathManager,
PermissionManager permissionManager) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCommentIndexPath(JiraServiceContext serviceContext)
Returns the path of JIRA's comment indexes.
|
String |
getIndexRootPath(JiraServiceContext serviceContext)
Returns the root path of JIRA's indexes.
|
String |
getIssueIndexPath(JiraServiceContext serviceContext)
Returns the path of JIRA's issue indexes.
|
String |
getPluginIndexRootPath(JiraServiceContext serviceContext)
Returns the root path of JIRA's plugin indexes.
|
String |
getSharedEntityIndexPath(JiraServiceContext serviceContext)
Returns the path of JIRA's shared entity indexes.
|
void |
setIndexRootPath(JiraServiceContext serviceContext,
String indexPath)
Specify an explicit (custom) index root path.
|
void |
setUseDefaultDirectory(JiraServiceContext serviceContext)
Specify that the default location within JiraHome should be used to store indexes.
|
public DefaultIndexPathService(IndexPathManager indexPathManager, PermissionManager permissionManager)
public String getIndexRootPath(JiraServiceContext serviceContext)
IndexPathServicegetIndexRootPath in interface IndexPathServiceserviceContext - The JiraServiceContextpublic String getIssueIndexPath(JiraServiceContext serviceContext)
IndexPathServicegetIssueIndexPath in interface IndexPathServiceserviceContext - The JiraServiceContextpublic String getCommentIndexPath(JiraServiceContext serviceContext)
IndexPathServicegetCommentIndexPath in interface IndexPathServiceserviceContext - The JiraServiceContextpublic String getPluginIndexRootPath(JiraServiceContext serviceContext)
IndexPathServiceNOTE: Each Plugin should create a new directory under this path
getPluginIndexRootPath in interface IndexPathServiceserviceContext - The JiraServiceContextpublic String getSharedEntityIndexPath(JiraServiceContext serviceContext)
IndexPathServicegetSharedEntityIndexPath in interface IndexPathServiceserviceContext - The JiraServiceContextpublic void setIndexRootPath(JiraServiceContext serviceContext, String indexPath)
IndexPathServicesetIndexRootPath in interface IndexPathServiceserviceContext - The JiraServiceContextindexPath - the path to usepublic void setUseDefaultDirectory(JiraServiceContext serviceContext)
IndexPathServicesetUseDefaultDirectory in interface IndexPathServiceserviceContext - The JiraServiceContextCopyright © 2002-2018 Atlassian. All Rights Reserved.