@Internal public class SharedDraftsDarkFeatureHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SHARED_DRAFTS_DARK_FEATURE |
static String |
SITE_WIDE_SHARED_DRAFTS_DARK_FEATURE |
static String |
SITE_WIDE_SYNCHRONY_DARK_FEATURE |
static String |
SYNCHRONY_DARK_FEATURE |
Constructor and Description |
---|
SharedDraftsDarkFeatureHelper(com.google.common.base.Supplier<DarkFeaturesManager> darkFeaturesManagerSupplier,
UpgradeManager upgradeManager) |
Modifier and Type | Method and Description |
---|---|
String |
getEditMode(String spaceKey) |
static String |
getSpaceDarkFeature(String spaceKey) |
static String |
getSynchronySpaceDarkFeature(String spaceKey) |
boolean |
isLimitedModeEnabled(String spaceKey) |
boolean |
isSharedDraftsFeatureEnabled(String spaceKey) |
boolean |
isUpgraded()
Returns false if upgrade is in progress so synchrony events could be suppressed.
|
public static final String SHARED_DRAFTS_DARK_FEATURE
public static final String SITE_WIDE_SHARED_DRAFTS_DARK_FEATURE
public static final String SYNCHRONY_DARK_FEATURE
public static final String SITE_WIDE_SYNCHRONY_DARK_FEATURE
public SharedDraftsDarkFeatureHelper(com.google.common.base.Supplier<DarkFeaturesManager> darkFeaturesManagerSupplier, UpgradeManager upgradeManager)
public boolean isSharedDraftsFeatureEnabled(String spaceKey)
public boolean isUpgraded()
Maybe better alternative is do synchrony event propagation via this class so upgrade check is isolated in one place.
public boolean isLimitedModeEnabled(String spaceKey)
Copyright © 2003–2016 Atlassian. All rights reserved.