com.atlassian.jira.config
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 Summary |
protected |
FeatureEvent(String feature)
Creates a new feature info. |
protected |
FeatureEvent(String feature,
com.atlassian.crowd.embedded.api.User user)
Creates a new feature info for a per-user feature. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
com.atlassian.crowd.embedded.api.User user)
- Creates a new feature info for a per-user feature.
- Parameters:
feature
- a String containing a feature nameuser
- a User (may be null)
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.
Copyright © 2002-2012 Atlassian. All Rights Reserved.