Class IndexPathManager.PropertiesAdaptor

java.lang.Object
com.atlassian.jira.config.util.IndexPathManager.PropertiesAdaptor
All Implemented Interfaces:
IndexPathManager
Enclosing interface:
IndexPathManager

public static class IndexPathManager.PropertiesAdaptor extends Object implements IndexPathManager
Implementation of 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.
  • Constructor Details

    • PropertiesAdaptor

      public PropertiesAdaptor(JiraHome jiraHome)
  • Method Details

    • getIndexRootPath

      public String getIndexRootPath()
      Description copied from interface: IndexPathManager
      Returns the root path of JIRA's indexes. This directory is a sub-directory of the configured jira-home and is defined in the Atlassian home directory specification to live under [jira-home]/caches/indexesV1/ by default.
      Specified by:
      getIndexRootPath in interface IndexPathManager
      Returns:
      the root path of JIRA's indexes
    • getIssueIndexPath

      public String getIssueIndexPath()
      Description copied from interface: IndexPathManager
      Returns the path of JIRA's issue indexes.
      Specified by:
      getIssueIndexPath in interface IndexPathManager
      Returns:
      the path of JIRA's issue indexes
    • getCommentIndexPath

      public String getCommentIndexPath()
      Description copied from interface: IndexPathManager
      Returns the path of JIRA's comment indexes.
      Specified by:
      getCommentIndexPath in interface IndexPathManager
      Returns:
      the path of JIRA's comment indexes
    • getWorklogIndexPath

      public String getWorklogIndexPath()
      Description copied from interface: IndexPathManager
      Returns the path of JIRA's worklog indexes
      Specified by:
      getWorklogIndexPath in interface IndexPathManager
      Returns:
      the path of JIRA's worklog indexes
    • getChangeHistoryIndexPath

      public String getChangeHistoryIndexPath()
      Description copied from interface: IndexPathManager
      Returns the path of JIRA's change history indexes.
      Specified by:
      getChangeHistoryIndexPath in interface IndexPathManager
      Returns:
      the path of JIRA's change history indexes
    • getSharedEntityIndexPath

      public String getSharedEntityIndexPath()
      Description copied from interface: IndexPathManager
      Returns the path of JIRA's shared entity indexes.
      Specified by:
      getSharedEntityIndexPath in interface IndexPathManager
      Returns:
      the path of JIRA's shared entity indexes
    • getPluginIndexRootPath

      public String getPluginIndexRootPath()
      Description copied from interface: IndexPathManager
      Returns the root path of JIRA's plugin indexes.

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

      Specified by:
      getPluginIndexRootPath in interface IndexPathManager
      Returns:
      the root path of JIRA's plugin indexes