Package com.atlassian.jira.config.util
Class AbstractJiraHome
java.lang.Object
com.atlassian.jira.config.util.AbstractJiraHome
- All Implemented Interfaces:
JiraHome
- Direct Known Subclasses:
DefaultJiraHome
,JiraHomeLocator.SystemJiraHome
,MockJiraHome
,SecondaryJiraHome
,StartupJiraHome
Class that helps with the implementation of the
JiraHome
interface.- Since:
- v4.1
-
Field Summary
Fields inherited from interface com.atlassian.jira.config.util.JiraHome
CACHES, DATA, EXPORT, EXPORT_BACKUPS, IMPORT, IMPORT_ATTACHMENTS, INDEX_SNAPSHOTS, INDEXES_DIR, localsubdirs, LOG, PLUGINS, sharedsubdirs, subdirs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal File
Get theFile
object representing the caches directory in JIRA home.final File
Get theFile
object representing the data directory in JIRA home.Get theFile
object representing the export/backups directory in JIRA home.final File
Get theFile
object representing the export directory in JIRA home.getHome()
Get theFile
object representing the JIRA home directory.Get the canonical path to the JIRA home directory.final File
Get theFile
object representing the import/attachments directory in JIRA home.final File
Get theFile
object representing the import directory in JIRA home.final File
Get theFile
object representing the index snapshots directory in JIRA home.final String
Get the canonical path to the JIRA local home directory.final File
Get theFile
object representing the log directory in JIRA home.final File
Get theFile
object representing the plugins directory in JIRA home.Get theFile
object representing the caches directory in JIRA home.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.jira.config.util.JiraHome
getLocalHome
-
Constructor Details
-
AbstractJiraHome
public AbstractJiraHome()
-
-
Method Details
-
getHome
Description copied from interface:JiraHome
Get theFile
object representing the JIRA home directory. -
getLogDirectory
Description copied from interface:JiraHome
Get theFile
object representing the log directory in JIRA home.- Specified by:
getLogDirectory
in interfaceJiraHome
- Returns:
- the file path, must be a directory.
-
getCachesDirectory
Description copied from interface:JiraHome
Get theFile
object representing the caches directory in JIRA home.- Specified by:
getCachesDirectory
in interfaceJiraHome
- Returns:
- the file path, must be a directory.
-
getExportDirectory
Description copied from interface:JiraHome
Get theFile
object representing the export directory in JIRA home.- Specified by:
getExportDirectory
in interfaceJiraHome
- Returns:
- the file path, must be a directory.
-
getExportBackupsDirectory
Description copied from interface:JiraHome
Get theFile
object representing the export/backups directory in JIRA home.- Specified by:
getExportBackupsDirectory
in interfaceJiraHome
- Returns:
- the file path, must be a directory.
-
getImportDirectory
Description copied from interface:JiraHome
Get theFile
object representing the import directory in JIRA home.- Specified by:
getImportDirectory
in interfaceJiraHome
- Returns:
- the file path, must be a directory.
-
getImportAttachmentsDirectory
Description copied from interface:JiraHome
Get theFile
object representing the import/attachments directory in JIRA home.- Specified by:
getImportAttachmentsDirectory
in interfaceJiraHome
- Returns:
- the file path, must be a directory.
-
getPluginsDirectory
Description copied from interface:JiraHome
Get theFile
object representing the plugins directory in JIRA home.- Specified by:
getPluginsDirectory
in interfaceJiraHome
- Returns:
- the file path, must be a directory.
-
getDataDirectory
Description copied from interface:JiraHome
Get theFile
object representing the data directory in JIRA home.- Specified by:
getDataDirectory
in interfaceJiraHome
- Returns:
- the file path, must be a directory.
-
getIndexSnapshotsDirectory
Description copied from interface:JiraHome
Get theFile
object representing the index snapshots directory in JIRA home.- Specified by:
getIndexSnapshotsDirectory
in interfaceJiraHome
- Returns:
- the file path, must be a directory.
-
getHomePath
Description copied from interface:JiraHome
Get the canonical path to the JIRA home directory.- Specified by:
getHomePath
in interfaceJiraHome
- Returns:
- the String path
-
getLocalHomePath
Description copied from interface:JiraHome
Get the canonical path to the JIRA local home directory. In a clustered or HA deployment this will be different from jira.home, but in a standalone installation will generally be the same as jira.home.- Specified by:
getLocalHomePath
in interfaceJiraHome
- Returns:
- the String path
-