Package org.opencms.gwt.shared
Class CmsClientLock
java.lang.Object
org.opencms.gwt.shared.CmsClientLock
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
Client side lock class.
- Since:
- 8.0.0
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the lock owner name.Returns the lock type.boolean
Returns if the current lock is owned by the current user.void
setLockOwner
(String lockOwner) Sets the lock owner name.void
setLockType
(CmsClientLock.LockType lockType) Sets the lock type.void
setOwnedByUser
(boolean isOwnedByUser) Sets if the current lock is owned by the current user.
-
Constructor Details
-
CmsClientLock
public CmsClientLock()Default constructor for serialization.
-
-
Method Details
-
getLockOwner
Returns the lock owner name.- Returns:
- the lock owner name
-
getLockType
Returns the lock type.- Returns:
- the lock type
-
isOwnedByUser
Returns if the current lock is owned by the current user.- Returns:
- if the current lock is owned by the current user
-
setLockOwner
Sets the lock owner name.- Parameters:
lockOwner
- the lock owner name to set
-
setOwnedByUser
Sets if the current lock is owned by the current user.- Parameters:
isOwnedByUser
- if the current lock is owned by the current user
-