@Internal
public interface DarkFeatureService
| Modifier and Type | Method and Description |
|---|---|
void |
disableFeatureForCurrentUser(String featureKey)
Disable a given feature for the current user.
|
void |
disableFeatureForUser(String featureKey,
com.atlassian.user.User user)
Disable a given feature for a given user.
|
void |
enableFeatureForCurrentUser(String featureKey)
Enable a given feature for the current user.
|
void |
enableFeatureForUser(String featureKey,
com.atlassian.user.User user)
Enable a given feature for a given user.
|
boolean |
isArtifactStorageConfigurationEnabled()
Check whether the artifact storage configuration is enabled.
|
boolean |
isArtifactStorageSpaceLimited()
Whether server-side artifact storage space is limited according to
AdministrationConfiguration.getStorageLimit()
storage limits. |
boolean |
isExperimentalRestAdminApiEnabled()
Check whether the experimental REST admin API is enabled.
|
boolean |
isFeatureForCurrentUserEnabled(String featureKey)
Check whether a given feature key is enabled for the current user.
|
boolean |
isFeatureForUserEnabled(String featureKey,
com.atlassian.user.User user)
Check whether a given feature key is enabled for a given user.
|
boolean |
isSimplifiedPlanConfigEnabled()
Check whether the simplified plan configuration is enabled.
|
boolean isSimplifiedPlanConfigEnabled()
boolean isArtifactStorageConfigurationEnabled()
boolean isArtifactStorageSpaceLimited()
AdministrationConfiguration.getStorageLimit()
storage limits.boolean isExperimentalRestAdminApiEnabled()
void enableFeatureForCurrentUser(@NotNull
String featureKey)
featureKey - the feature key to be enabled.IllegalArgumentException - if the current user is not logged in.void enableFeatureForUser(@NotNull
String featureKey,
@NotNull
com.atlassian.user.User user)
featureKey - the feature key to be enabled.user - the user for which the feature should be enabled.org.acegisecurity.AccessDeniedException - if the current user is not an admin.void disableFeatureForCurrentUser(@NotNull
String featureKey)
featureKey - the feature key to be enabled.IllegalArgumentException - if the current user is not logged in.void disableFeatureForUser(@NotNull
String featureKey,
@NotNull
com.atlassian.user.User user)
featureKey - the feature key to be disabled.user - the user for which the feature should be disabled.org.acegisecurity.AccessDeniedException - if the current user is not an admin.boolean isFeatureForUserEnabled(@NotNull
String featureKey,
@NotNull
com.atlassian.user.User user)
featureKey - the feature keyuser - the userboolean isFeatureForCurrentUserEnabled(@NotNull
String featureKey)
featureKey - the feature keyCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.