Class FeatureEvent

java.lang.Object
com.atlassian.jira.config.FeatureEvent
Direct Known Subclasses:
FeatureDisabledEvent, FeatureEnabledEvent

@PublicApi @Immutable public class FeatureEvent extends Object
Dark feature info.
Since:
v5.1
  • Constructor Details

    • FeatureEvent

      protected FeatureEvent(@Nonnull String feature)
      Creates a new feature info.
      Parameters:
      feature - a String containing a feature name
    • FeatureEvent

      protected FeatureEvent(@Nonnull String feature, @Nullable ApplicationUser user)
      Creates a new feature info for a per-user feature.
      Parameters:
      feature - a String containing a feature name
      user - a User (may be null)
  • Method Details

    • feature

      public String feature()
      Returns:
      a string containing the name of the dark feature.
    • username

      @Nullable public String username()
      Returns:
      the name of the user for whom the dark feature was enabled. Null if it's a site-wide dark feature.