Interface CollaborativeEditingHelper
- All Known Implementing Classes:
DefaultCollaborativeEditingHelper
@Internal
public interface CollaborativeEditingHelper
Provides helper methods to check Collaborative Editing Mode and status.
- Since:
- 6.3.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetEditMode
(String spaceKey) Returns the current editing mode.int
Returns the number of users allowed in editor.boolean
isLimitedModeEnabled
(String spaceKey) Deprecated.since 7.5.0.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
Maybe better alternative is do synchrony event propagation via this class so upgrade check is isolated in one place.
-
Field Details
-
COLLABORATIVE_MODE
- See Also:
-
LEGACY_MODE
- See Also:
-
LIMITED_MODE
Deprecated.since 7.5.0. Limited mode is no longer supported since 7.5.0- See Also:
-
SHARED_DRAFTS_DARK_FEATURE
- See Also:
-
SITE_WIDE_SHARED_DRAFTS_DARK_FEATURE
- See Also:
-
SYNCHRONY_DARK_FEATURE
Deprecated.since 7.5.0. Limited mode is no longer supported since 7.5.0- See Also:
-
SITE_WIDE_SYNCHRONY_DARK_FEATURE
Deprecated.since 7.5.0. Limited mode is no longer supported since 7.5.0- See Also:
-
USER_LIMIT_DARK_FEATURE_DISABLE
- See Also:
-
-
Method Details
-
isUpgraded
boolean isUpgraded()Maybe better alternative is do synchrony event propagation via this class so upgrade check is isolated in one place.- Returns:
- false if upgrade is in progress so synchrony events could be suppressed.
-
isLimitedModeEnabled
Deprecated.since 7.5.0. Limited mode is no longer supported since 7.5.0- Parameters:
spaceKey
- space key- Returns:
- true if limited mode is enabled (since 7.5.0 this method always returns
false
)
-
getEditMode
Returns the current editing mode.- Parameters:
spaceKey
- space key- Returns:
- the current editing mode, one of
LEGACY_MODE
,COLLABORATIVE_MODE
,
-
isOverLimit
boolean isOverLimit(int numberOfConcurrentUsers) - Parameters:
numberOfConcurrentUsers
- Number of users currently in the editor including the current user.- Returns:
- true if the number of users in the editor is greater than the limit
-
getUserLimit
int getUserLimit()Returns the number of users allowed in editor.- Returns:
- the number of users allowed in editor