public interface JiraProperties
System.getProperty(String)
or Boolean.getBoolean(String)
.
You may obtain implementations in the following ways:
JiraSystemProperties.getInstance()
Modifier and Type | Method and Description |
---|---|
Boolean |
getBoolean(String key)
Retrieves a system property of the given name as a boolean.
|
String |
getCustomDirectoryPlugins() |
Integer |
getInteger(String key)
Retrieves a system property of the given name as an integer.
|
Integer |
getInteger(String key,
Integer defaultInteger)
Retrieves a system property of the given name as an integer, with a default value to be returned if property is not set.
|
Long |
getLong(String key)
Retrieves a system property of the given name as a long.
|
Long |
getLong(String key,
Long defaultLong)
Retrieves a system property of the given name as a long, with a default value to be returned if property is not set.
|
String |
getPluginsRosterFile() |
String |
getProductName()
Name of the product as it was when originally installed.
|
Properties |
getProperties()
Retrieves all system properties as a properties object.
|
String |
getProperty(String key)
Retrieves a system property of the given name
|
String |
getProperty(String key,
String defaultString)
Retrieves a system property of the given name, with a default value to be returned if property is not set.
|
boolean |
isBundledPluginsDisabled() |
boolean |
isCustomPathPluginsEnabled() |
boolean |
isDangerMode()
Deprecated.
DangerMode has been removed. To be removed in 7.0.
|
boolean |
isDarkFeaturesDisabled() |
boolean |
isDecodeMailParameters() |
boolean |
isDevMode() |
boolean |
isI18nReloadBundles() |
boolean |
isPluginsRosterFileEnabled() |
boolean |
isResourceBundleCacheCleaningDisabled() |
boolean |
isSuperBatchingDisabled() |
boolean |
isWebSudoDisabled() |
boolean |
isXsrfDetectionCheckRequired() |
boolean |
isXsrfDiagnostics() |
void |
refresh()
Causes any previously cached values to be invalidated.
|
void |
setProperties(Properties props)
Sets the given properties as system properties.
|
<T> void |
setProperty(String key,
T value)
Sets the key-value pair into the system properties.
|
boolean |
showPerformanceMonitor() |
void |
unsetProperty(String key)
Removes an entry in system properties under the given key.
|
String getProperty(String key)
key
- the name of the property.String getProperty(String key, String defaultString)
key
- the name of the property.defaultString
- the default value.<T> void setProperty(String key, T value)
Object.toString()
methodkey
- the name of the propertyvalue
- the value of the property, stored as a String.void unsetProperty(String key)
key
- the name of the property to be removed.Boolean getBoolean(String key)
key
- the name of the property.Integer getInteger(String key)
key
- the name of the property.Integer getInteger(String key, Integer defaultInteger)
key
- the name of the property.defaultInteger
- the default value.Long getLong(String key)
key
- the name of the property.Long getLong(String key, Long defaultLong)
key
- the name of the property.defaultLong
- the default value.Properties getProperties()
void setProperties(Properties props)
props
- the target system properties.System#setProperties(Properties)}
void refresh()
setProperty(String, Object)
, setProperties(java.util.Properties)
or
unsetProperty(String)
.boolean isDevMode()
boolean isXsrfDetectionCheckRequired()
boolean isSuperBatchingDisabled()
boolean isDecodeMailParameters()
boolean isCustomPathPluginsEnabled()
String getCustomDirectoryPlugins()
boolean isPluginsRosterFileEnabled()
String getPluginsRosterFile()
boolean isWebSudoDisabled()
boolean isI18nReloadBundles()
boolean showPerformanceMonitor()
boolean isBundledPluginsDisabled()
boolean isDarkFeaturesDisabled()
@Deprecated boolean isDangerMode()
boolean isXsrfDiagnostics()
boolean isResourceBundleCacheCleaningDisabled()
@ExperimentalApi String getProductName()
Copyright © 2002-2015 Atlassian. All Rights Reserved.