public class

DefaultIndexPathService

extends Object
implements IndexPathService
java.lang.Object
   ↳ com.atlassian.jira.config.util.DefaultIndexPathService

Summary

Public Constructors
DefaultIndexPathService(IndexPathManager indexPathManager, PermissionManager permissionManager)
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.config.util.IndexPathService

Public Constructors

public DefaultIndexPathService (IndexPathManager indexPathManager, PermissionManager permissionManager)

Public Methods

public String getCommentIndexPath (JiraServiceContext serviceContext)

Returns the path of JIRA's comment indexes.

Parameters
serviceContext The JiraServiceContext
Returns
  • the path of JIRA's comment indexes.

public String getIndexRootPath (JiraServiceContext serviceContext)

Returns the root path of JIRA's indexes.

Parameters
serviceContext The JiraServiceContext
Returns
  • the root path of JIRA's indexes.

public String getIssueIndexPath (JiraServiceContext serviceContext)

Returns the path of JIRA's issue indexes.

Parameters
serviceContext The JiraServiceContext
Returns
  • the path of JIRA's issue indexes.

public String getPluginIndexRootPath (JiraServiceContext serviceContext)

Returns the root path of JIRA's plugin indexes.

NOTE: Each Plugin should create a new directory under this path

Parameters
serviceContext The JiraServiceContext
Returns
  • the root path of JIRA's plugin indexes.

public String getSharedEntityIndexPath (JiraServiceContext serviceContext)

Returns the path of JIRA's shared entity indexes.

Parameters
serviceContext The JiraServiceContext
Returns
  • the path of JIRA's shared entity indexes.

public void setIndexRootPath (JiraServiceContext serviceContext, String indexPath)

Specify an explicit (custom) index root path.

Parameters
serviceContext The JiraServiceContext
indexPath the path to use

public void setUseDefaultDirectory (JiraServiceContext serviceContext)

Specify that the default location within JiraHome should be used to store indexes.

Parameters
serviceContext The JiraServiceContext