@Internal
public interface CollaborativeEditingHelper
Modifier and Type | Field and Description |
---|---|
static String |
COLLABORATIVE_MODE |
static String |
LEGACY_MODE |
static String |
LIMITED_MODE |
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 |
static String |
USER_LIMIT_DARK_FEATURE_DISABLE |
Modifier and Type | Method and Description |
---|---|
String |
getEditMode(String spaceKey)
Returns the current editing mode.
|
int |
getUserLimit()
Returns the number of users allowed in editor.
|
boolean |
isLimitedModeEnabled(String spaceKey) |
boolean |
isOverLimit(int numberOfConcurrentUsers) |
boolean |
isSharedDraftsFeatureEnabled(String spaceKey)
Checks if the Shared Drafts dark feature is enabled for the space or globally when no space is passed.
|
boolean |
isUpgraded()
Maybe better alternative is do synchrony event propagation via this class so upgrade check is isolated in one place.
|
static final String COLLABORATIVE_MODE
static final String LEGACY_MODE
static final String LIMITED_MODE
static final String SHARED_DRAFTS_DARK_FEATURE
static final String SITE_WIDE_SHARED_DRAFTS_DARK_FEATURE
static final String SYNCHRONY_DARK_FEATURE
static final String SITE_WIDE_SYNCHRONY_DARK_FEATURE
static final String USER_LIMIT_DARK_FEATURE_DISABLE
boolean isSharedDraftsFeatureEnabled(String spaceKey)
spaceKey
- boolean isUpgraded()
boolean isLimitedModeEnabled(String spaceKey)
spaceKey
- String getEditMode(String spaceKey)
spaceKey
- LEGACY_MODE
, COLLABORATIVE_MODE
,
LIMITED_MODE
boolean isOverLimit(int numberOfConcurrentUsers)
numberOfConcurrentUsers
- Number of users currently in the editor including the current user.int getUserLimit()
Copyright © 2003–2017 Atlassian. All rights reserved.