@Internal public enum CoreFeatures extends Enum<CoreFeatures> implements Feature
Enum Constant and Description |
---|
ON_DEMAND
Deprecated.
|
PERMISSIONS_MANAGED_BY_UM
Enabled if
GlobalPermissionKey.ADMINISTER , GlobalPermissionKey.SYSTEM_ADMIN and GlobalPermissionKey.USE
permissions should be managed by OnDemand's User Management. |
PREVENT_COMMENTS_LIMITING
Turn off comment limiting on view issue for performance testing only.
|
Modifier and Type | Method and Description |
---|---|
String |
featureKey()
The feature key that can be used to enable, disable or query the status of a feature using the
FeatureManager . |
static CoreFeatures |
forFeatureKey(String featureKey)
Returns the core feature with the given feature key.
|
boolean |
isDevFeature()
Returns whether or not the feature is under active development and can be enabled or disabled by individual
users.
|
boolean |
isSystemPropertyEnabled()
Returns true if the system property corresponding to this feature is set to true.
|
String |
systemPropertyKey() |
static CoreFeatures |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CoreFeatures[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final CoreFeatures ON_DEMAND
public static final CoreFeatures PREVENT_COMMENTS_LIMITING
public static final CoreFeatures PERMISSIONS_MANAGED_BY_UM
GlobalPermissionKey.ADMINISTER
, GlobalPermissionKey.SYSTEM_ADMIN
and GlobalPermissionKey.USE
permissions should be managed by OnDemand's User Management.public static CoreFeatures[] values()
for (CoreFeatures c : CoreFeatures.values()) System.out.println(c);
public static CoreFeatures valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String featureKey()
Feature
FeatureManager
.featureKey
in interface Feature
public String systemPropertyKey()
public boolean isDevFeature()
true
if the feature is a user-configurable development feature; false
if the feature can
only be enabled or disabled system-wide.public boolean isSystemPropertyEnabled()
com.atlassian.jira.config.CoreFeatures.FEATURE
.public static CoreFeatures forFeatureKey(String featureKey)
featureKey
- the feature key to check (must not be null
)null
if featureKey
does not
correspond to any known core featureCopyright © 2002-2023 Atlassian. All Rights Reserved.