Package com.atlassian.jira.config
Enum Class CoreFeatures
- All Implemented Interfaces:
Feature
,Serializable
,Comparable<CoreFeatures>
,Constable
Core manipulable JIRA features.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Enabled ifGlobalPermissionKey.ADMINISTER
,GlobalPermissionKey.SYSTEM_ADMIN
andGlobalPermissionKey.USE
permissions should be managed by OnDemand's User Management.Turn off comment limiting on view issue for performance testing only. -
Method Summary
Modifier and TypeMethodDescriptionThe feature key that can be used to enable, disable or query the status of a feature using theFeatureManager
.static CoreFeatures
forFeatureKey
(String featureKey) Returns the core feature with the given feature key.boolean
Returns whether or not the feature is under active development and can be enabled or disabled by individual users.boolean
Returns true if the system property corresponding to this feature is set to true.static CoreFeatures
Returns the enum constant of this class with the specified name.static CoreFeatures[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ON_DEMAND
Deprecated.Enabled when running in the 'On Demand' environment. -
PREVENT_COMMENTS_LIMITING
Turn off comment limiting on view issue for performance testing only. -
PERMISSIONS_MANAGED_BY_UM
Enabled ifGlobalPermissionKey.ADMINISTER
,GlobalPermissionKey.SYSTEM_ADMIN
andGlobalPermissionKey.USE
permissions should be managed by OnDemand's User Management.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
featureKey
Description copied from interface:Feature
The feature key that can be used to enable, disable or query the status of a feature using theFeatureManager
.- Specified by:
featureKey
in interfaceFeature
- Returns:
- the unique key used to identify the feature.
-
systemPropertyKey
- Returns:
- the name of the system property you can use to enable or disable a core feature
-
isDevFeature
public boolean isDevFeature()Returns whether or not the feature is under active development and can be enabled or disabled by individual users.- Returns:
true
if the feature is a user-configurable development feature;false
if the feature can only be enabled or disabled system-wide.
-
isSystemPropertyEnabled
public boolean isSystemPropertyEnabled()Returns true if the system property corresponding to this feature is set to true. The property name will have the form"atlassian.darkfeature."com.atlassian.jira.config.CoreFeatures.FEATURE
.- Returns:
- a boolean indicating whether this feature is enabled by a system property
-
forFeatureKey
Returns the core feature with the given feature key.- Parameters:
featureKey
- the feature key to check (must not benull
)- Returns:
- the CoreFeatures object with the specified feature key, or
null
iffeatureKey
does not correspond to any known core feature
-