Class WebappLockManager
java.lang.Object
ro.sync.ecss.extensions.api.webapp.WebappLockManager
The lock manager associated with a document.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Reason code for the editor being read-only because is locked by someone else. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
abstract void
unlock()
Releases lock associated with the corresponding document.abstract void
Updates the lock associated with the corresponding document.
-
Field Details
-
LOCKED_BY_SOMEONE_ELSE_REASON_CODE
Reason code for the editor being read-only because is locked by someone else.- See Also:
-
-
Constructor Details
-
WebappLockManager
public WebappLockManager()
-
-
Method Details
-
updateLock
Updates the lock associated with the corresponding document.- Throws:
LockException
- An exception thrown if the lock could not be updated.
-
unlock
public abstract void unlock()Releases lock associated with the corresponding document. -
isEnabled
public abstract boolean isEnabled()- Returns:
true
if locking is enabled for the current document.
-