com.atlassian.jira.config
Class FeatureEvent

java.lang.Object
  extended by 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, ApplicationUser user)
          Creates a new feature info for a per-user feature.
protected FeatureEvent(String feature, com.atlassian.crowd.embedded.api.User user)
          Deprecated. use FeatureEvent(String, com.atlassian.jira.user.ApplicationUser) since 6.0
 
Method Summary
 String feature()
           
 String username()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
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)

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 ApplicationUser (may be null)
Method Detail

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-2013 Atlassian. All Rights Reserved.