public class

IsFeatureAvailableCondition

extends AbstractFeatureCondition
java.lang.Object
   ↳ com.atlassian.bitbucket.web.conditions.AbstractFeatureCondition
     ↳ com.atlassian.bitbucket.web.conditions.IsFeatureAvailableCondition

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

[Expand]
Inherited Fields
From class com.atlassian.bitbucket.web.conditions.AbstractFeatureCondition
Public Constructors
IsFeatureAvailableCondition(FeatureManager featureManager)
Protected Constructors
IsFeatureAvailableCondition(FeatureManager featureManager, Feature feature)
Instantiates a check used to determine whether the provided Feature feature is available.
Public Methods
boolean shouldDisplay(Map<String, Object> context)
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.web.conditions.AbstractFeatureCondition
From class java.lang.Object
From interface com.atlassian.plugin.web.Condition

Public Constructors

public IsFeatureAvailableCondition (FeatureManager featureManager)

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)