com.atlassian.jira.config
Enum CoreFeatures

java.lang.Object
  extended by java.lang.Enum<CoreFeatures>
      extended by com.atlassian.jira.config.CoreFeatures
All Implemented Interfaces:
Serializable, Comparable<CoreFeatures>

@Internal
public enum CoreFeatures
extends Enum<CoreFeatures>

Core manipulable JIRA features.


Enum Constant Summary
KICKASS_SEARCH
          Use kickass search.
ON_DEMAND
          Enabled when running in the 'On Demand' environment.
 
Method Summary
 String featureKey()
           
 boolean isDevFeature()
           
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ON_DEMAND

public static final CoreFeatures ON_DEMAND
Enabled when running in the 'On Demand' environment.


KICKASS_SEARCH

public static final CoreFeatures KICKASS_SEARCH
Use kickass search. If this is on, users must always use KA search. If it's not, users have the choice to opt-in. This will be removed in a future release.

Method Detail

values

public static CoreFeatures[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CoreFeatures c : CoreFeatures.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CoreFeatures valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null

featureKey

public String featureKey()

systemPropertyKey

public String systemPropertyKey()
Returns:
the name of the system property you can use to enable or disable a feature

isDevFeature

public boolean isDevFeature()

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 com.atlassian.jira.config.CoreFeatures.FEATURE.

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


Copyright © 2002-2013 Atlassian. All Rights Reserved.