Class Overview
Checks whether a configured Feature is is available
.
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.
Summary
Public Methods |
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
IsFeatureAvailableCondition
(FeatureManager featureManager, Feature feature)
Instantiates a check used to determine whether the provided Feature feature is available. 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
boolean
shouldDisplay
(Map<String, Object> context)