@PublicApi @Immutable public class

FeatureEvent

extends Object
java.lang.Object
   ↳ com.atlassian.jira.config.FeatureEvent
Known Direct Subclasses

@PublicApi

This class is designed for plugins to consume (call its methods).

Clients of @PublicApi can expect that programs compiled against a given version will remain binary compatible with later versions of the @PublicApi as per each product's API policy as long as the client does not implement/extend @PublicApi interfaces or classes (refer to each product's API policy for the exact guarantee---usually binary compatibility is guaranteed at least across minor versions).

Note: since @PublicApi interfaces and classes are not designed to be implemented or extended by clients, we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces annotated with @PublicSpi are safe to extend/implement).

Class Overview

Dark feature info.

Summary

Protected Constructors
FeatureEvent(String feature)
Creates a new feature info.
FeatureEvent(String feature, ApplicationUser user)
This constructor is deprecated. use FeatureEvent(String, com.atlassian.jira.user.ApplicationUser) since 6.0
Public Methods
String feature()
@Nullable String username()
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected FeatureEvent (String feature)

Creates a new feature info.

Parameters
feature a String containing a feature name

protected FeatureEvent (String feature, ApplicationUser user)

This constructor is deprecated.
use FeatureEvent(String, com.atlassian.jira.user.ApplicationUser) since 6.0

Creates a new feature info for a per-user feature.

Parameters
feature a String containing a feature name
user a User (may be null)

Public Methods

public String feature ()

Returns
  • a string containing the name of the dark feature.

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