public abstract class

AbstractFeatureCondition

extends Object
implements Condition
java.lang.Object
   ↳ com.atlassian.bitbucket.web.conditions.AbstractFeatureCondition
Known Direct Subclasses

Class Overview

An abstract base class for creating Feature based conditions. If the feature is not supplied directly by the derived class, it will be parsed from the initialisation context using the "key" parameter.

Feature 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.

Derived classes must implement shouldDisplay(Map) and make the desired check using the featureManager.

Summary

Fields
protected final FeatureManager featureManager
Public Constructors
AbstractFeatureCondition(FeatureManager featureManager)
Protected Constructors
AbstractFeatureCondition(FeatureManager featureManager, Feature feature)
Public Methods
void init(Map<String, String> params)
Protected Methods
Feature getFeature()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.web.Condition

Fields

protected final FeatureManager featureManager

Public Constructors

public AbstractFeatureCondition (FeatureManager featureManager)

Protected Constructors

protected AbstractFeatureCondition (FeatureManager featureManager, Feature feature)

Public Methods

public void init (Map<String, String> params)

Throws
PluginParseException

Protected Methods

protected Feature getFeature ()