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 SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiongetEditMode(String spaceKey) Returns the current editing mode.intReturns the number of users allowed in editor.booleanisLimitedModeEnabled(String spaceKey) Deprecated.since 7.5.0.booleanisOverLimit(int numberOfConcurrentUsers) booleanisSharedDraftsFeatureEnabled(String spaceKey) Checks if the Shared Drafts dark feature is enabled for the space or globally when no space is passed.booleanMaybe 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_MODEDeprecated.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_FEATUREDeprecated.since 7.5.0. Limited mode is no longer supported since 7.5.0- See Also:
 
- 
SITE_WIDE_SYNCHRONY_DARK_FEATUREDeprecated.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
- 
isUpgradedboolean 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.
 
- 
isLimitedModeEnabledDeprecated.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)
 
- 
getEditModeReturns the current editing mode.- Parameters:
- spaceKey- space key
- Returns:
- the current editing mode, one of LEGACY_MODE,COLLABORATIVE_MODE,
 
- 
isOverLimitboolean 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
 
- 
getUserLimitint getUserLimit()Returns the number of users allowed in editor.- Returns:
- the number of users allowed in editor