org.opencms.gwt.shared
public class CmsClientLock extends java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
Modifier and Type | Class and Description |
---|---|
static class |
CmsClientLock.LockType
The available lock types.
|
Constructor and Description |
---|
CmsClientLock()
Default constructor for serialization.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLockOwner()
Returns the lock owner name.
|
CmsClientLock.LockType |
getLockType()
Returns the lock type.
|
boolean |
isOwnedByUser()
Returns if the current lock is owned by the current user.
|
void |
setLockOwner(java.lang.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.
|
public java.lang.String getLockOwner()
public CmsClientLock.LockType getLockType()
public boolean isOwnedByUser()
public void setLockOwner(java.lang.String lockOwner)
lockOwner
- the lock owner name to setpublic void setLockType(CmsClientLock.LockType lockType)
lockType
- the lock type to setpublic void setOwnedByUser(boolean isOwnedByUser)
isOwnedByUser
- if the current lock is owned by the current user