@Internal public final enum

CoreFeatures

extends Enum<E extends Enum<E>>
implements Feature
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.atlassian.jira.config.CoreFeatures

@Internal

This enum is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

Class Overview

Core manipulable JIRA features.

Summary

Enum Values
CoreFeatures  LICENSE_ROLES_ENABLED  This field is deprecated. this is a temporary flag. We will be removing it eventually. Please do not use it. If you want want to detect if PUP is enabled then please use rolesEnabled().  
CoreFeatures  ON_DEMAND  Enabled when running in the 'On Demand' environment. 
CoreFeatures  PERMISSIONS_MANAGED_BY_UM  Enabled if ADMINISTER, SYSTEM_ADMIN and USE permissions should be managed by OnDemand's User Management. 
CoreFeatures  PREVENT_COMMENTS_LIMITING  Turn off comment limiting on view issue for performance testing only. 
Public Methods
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)
final static CoreFeatures[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface com.atlassian.jira.config.Feature
From interface java.lang.Comparable

Enum Values

public static final CoreFeatures LICENSE_ROLES_ENABLED

This field is deprecated.
this is a temporary flag. We will be removing it eventually. Please do not use it. If you want want to detect if PUP is enabled then please use rolesEnabled().

Enabled to allow for role based licensing.

public static final CoreFeatures ON_DEMAND

Enabled when running in the 'On Demand' environment.

public static final CoreFeatures PERMISSIONS_MANAGED_BY_UM

Enabled if ADMINISTER, SYSTEM_ADMIN and USE permissions should be managed by OnDemand's User Management.

public static final CoreFeatures PREVENT_COMMENTS_LIMITING

Turn off comment limiting on view issue for performance testing only.

Public Methods

public String featureKey ()

The feature key that can be used to enable, disable or query the status of a feature using the FeatureManager.

Returns
  • the unique key used to identify the feature.

public static CoreFeatures forFeatureKey (String featureKey)

Returns the core feature with the given feature key.

Parameters
featureKey the feature key to check (must not be null)
Returns
  • the CoreFeatures object with the specified feature key, or null if featureKey does not correspond to any known core feature

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.

public boolean isSystemPropertyEnabled ()

Returns true if the system property corresponding to this feature is set to true. The property name will have the form {@value FeatureManager#SYSTEM_PROPERTY_PREFIX}com.atlassian.jira.config.CoreFeatures.FEATURE.

Returns
  • a boolean indicating whether this feature is enabled by a system property

public String systemPropertyKey ()

Returns
  • the name of the system property you can use to enable or disable a core feature

public static CoreFeatures valueOf (String name)

public static final CoreFeatures[] values ()