|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JiraProperties
Provides controlled access to system properties. Available from the container.
Default implementation provides caching of keys to minimize access to synchronized static getters such asSystem.getProperty(String)
or Boolean.getBoolean(String)
.
You may obtain implementations in the following ways:
JiraSystemProperties.getInstance()
Method Summary | ||
---|---|---|
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 |
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()
|
|
boolean |
isDarkFeaturesDisabled()
|
|
boolean |
isDecodeMailParameters()
|
|
boolean |
isDevMode()
|
|
boolean |
isI18nReloadBundles()
|
|
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. |
|
|
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. |
Method Detail |
---|
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()
method
key
- 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 isWebSudoDisabled()
boolean isI18nReloadBundles()
boolean showPerformanceMonitor()
boolean isBundledPluginsDisabled()
boolean isDarkFeaturesDisabled()
boolean isDangerMode()
boolean isXsrfDiagnostics()
@ExperimentalApi String getProductName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |