Class Overview
Checks whether a configured Feature is is enabled.
This condition can be used with StandardFeature standard features or custom features. When using a custom
feature, the provided "key" is used to construct a SimpleFeature. isDataCenter() can
be set by including a "dataCenter" parameter; it defaults to false if it's not specified.
Whether using a StandardFeature or not, it's also possible to specify a "defaultValue" parameter to
define whether the feature should be considered enabled or disabled if it's not explicitly configured. The default
value is set to false if the parameter is not provided.
Summary
| Public Methods |
|
void
|
init(Map<String, String> params)
|
|
boolean
|
shouldDisplay(Map<String, Object> context)
|
|
[Expand]
Inherited Methods |
From class
com.atlassian.bitbucket.web.conditions.AbstractFeatureCondition
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
final
void
|
wait()
|
|
From interface
com.atlassian.plugin.web.Condition
|
void
|
init(Map<String, String> arg0)
|
|
boolean
|
shouldDisplay(Map<String, Object> arg0)
|
|
Public Constructors
Protected Constructors
protected
IsFeatureEnabledCondition
(FeatureManager featureManager, Feature feature)
Instantiates a check used to determine whether the provided feature is enabled. The specified
feature cannot be overridden by calling init(Map).
Parameters
| featureManager
| the feature manager to perform the check |
| feature
| the feature to check
|
Public Methods
public
void
init
(Map<String, String> params)
public
boolean
shouldDisplay
(Map<String, Object> context)