@Internal
public interface DarkFeatureService
Modifier and Type | Field and Description |
---|---|
static String |
CREATE_DEPLOYMENT_GRANTED_BY_PROJECT |
static String |
RSS_CREATE_RESULT_IF_NO_CHANGES |
static String |
SOX_COMPLIANCE_CONFIGURABLE_KEY |
static String |
VIEW_CONFIGURATION_PERMISSION_DISABLED |
Modifier and Type | Method and Description |
---|---|
void |
disableFeatureForCurrentUser(@NotNull String featureKey)
Disable a given feature for the current user.
|
void |
disableFeatureForUser(@NotNull String featureKey,
@NotNull com.atlassian.user.User user)
Disable a given feature for a given user.
|
void |
enableFeatureForCurrentUser(@NotNull String featureKey)
Enable a given feature for the current user.
|
void |
enableFeatureForUser(@NotNull String featureKey,
@NotNull com.atlassian.user.User user)
Enable a given feature for a given user.
|
boolean |
isAtlassianAccountEnabled()
Whether user profiles are managed by Atlassian Account
|
boolean |
isCloudExportEnabled()
Check if export for cloud is enabled (mainly view is available for users)
|
boolean |
isExperimentalRestAdminApiEnabled()
Deprecated.
since 9.0 returns true.
|
boolean |
isFeatureForCurrentUserEnabled(@NotNull String featureKey)
Check whether a given feature key is enabled for the current user.
|
boolean |
isFeatureForUserEnabled(@NotNull String featureKey,
@NotNull com.atlassian.user.User user)
Check whether a given feature key is enabled for a given user.
|
boolean |
isImprovedAdminPanelNav()
Whether improved navigation in administration panel is enabled.
|
boolean |
isSimplifiedPlanConfigEnabled()
Check whether the simplified plan configuration is enabled.
|
boolean |
isViewConfigurationPermissionDisabled()
Is VIEW_CONFIGURATION permission disabled.
|
static final String SOX_COMPLIANCE_CONFIGURABLE_KEY
static final String CREATE_DEPLOYMENT_GRANTED_BY_PROJECT
static final String VIEW_CONFIGURATION_PERMISSION_DISABLED
static final String RSS_CREATE_RESULT_IF_NO_CHANGES
boolean isCloudExportEnabled()
boolean isSimplifiedPlanConfigEnabled()
@Deprecated boolean isExperimentalRestAdminApiEnabled()
boolean isViewConfigurationPermissionDisabled()
boolean isAtlassianAccountEnabled()
boolean isImprovedAdminPanelNav()
void enableFeatureForCurrentUser(@NotNull @NotNull String featureKey)
featureKey
- the feature key to be enabled.IllegalArgumentException
- if the current user is not logged in.void enableFeatureForUser(@NotNull @NotNull String featureKey, @NotNull @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 @NotNull String featureKey)
featureKey
- the feature key to be enabled.IllegalArgumentException
- if the current user is not logged in.void disableFeatureForUser(@NotNull @NotNull String featureKey, @NotNull @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 @NotNull String featureKey, @NotNull @NotNull com.atlassian.user.User user)
featureKey
- the feature keyuser
- the userboolean isFeatureForCurrentUserEnabled(@NotNull @NotNull String featureKey)
featureKey
- the feature keyCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.