public interface

FeatureManager

com.atlassian.bitbucket.server.FeatureManager

Class Overview

Provides access to bitbucket.properties flags for enabling/disabling various features.

Summary

Public Methods
boolean isAvailable(Feature feature)
boolean isEnabled(Feature feature)
boolean isEnabled(Feature feature, boolean defaultValue)

Public Methods

public boolean isAvailable (Feature feature)

Parameters
feature the feature to check
Returns
  • true if the feature is available for the current license type; otherwise false

public boolean isEnabled (Feature feature)

Parameters
feature the feature to check
Returns
  • true if the feature is available and enabled; otherwise, false

public boolean isEnabled (Feature feature, boolean defaultValue)

Parameters
feature the feature to check
defaultValue the value to return if no property has been defined for the feature
Returns
  • true if the feature is available and enabled, false if the feature is not available or disabled; otherwise defaultValue