|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||
java.lang.Objectjava.lang.Enum<CmsClientLock.LockType>
org.opencms.gwt.shared.CmsClientLock.LockType
public static enum CmsClientLock.LockType
The available lock types. Replace with CmsLockType as soon that fulfills the serializable convention.
| Enum Constant Summary | |
|---|---|
EXCLUSIVE
A lock that allows the user to edit the resource's structure record, it's resource record, and its content record. |
|
INHERITED
A lock that is inherited from a locked parent folder. |
|
PUBLISH
A lock that indicates that the resource is waiting to be published in the publish queue. |
|
SHARED_EXCLUSIVE
A lock that allows the user to edit the resource's structure record only, but not it's resource record nor content record. |
|
SHARED_INHERITED
A lock that allows the user to edit the resource's structure record only, but not it's resource record nor content record. |
|
SYSTEM_UNLOCKED
Type of the NULL lock obtained by CmsLock.getNullLock(). |
|
TEMPORARY
A temporary exclisive lock that allows the user to edit the resource's structure record, it's resource record, and its content record. |
|
UNLOCKED
Type of the NULL system lock. |
|
| Method Summary | |
|---|---|
int |
getMode()
Return the lock mode/type. |
boolean |
isUnlocked()
Returns true if this lock is in fact unlocked. |
java.lang.String |
toString()
|
static CmsClientLock.LockType |
valueOf(int mode)
Returns the lock type according to the given mode. |
static CmsClientLock.LockType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CmsClientLock.LockType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final CmsClientLock.LockType EXCLUSIVE
This lock is assigned to files that are locked via the context menu.
public static final CmsClientLock.LockType INHERITED
public static final CmsClientLock.LockType PUBLISH
public static final CmsClientLock.LockType SHARED_EXCLUSIVE
This lock is assigned to files if a sibling of the resource record has already an exclusive lock.
public static final CmsClientLock.LockType SHARED_INHERITED
This lock is assigned to resources that already have a shared exclusive lock, and then inherit a lock because one if it's parent folders gets locked.
public static final CmsClientLock.LockType TEMPORARY
This lock is identical to the EXCLUSIVE lock, but it is automatically removed after
a user is logged out.
public static final CmsClientLock.LockType SYSTEM_UNLOCKED
CmsLock.getNullLock().
public static final CmsClientLock.LockType UNLOCKED
| Method Detail |
|---|
public static CmsClientLock.LockType[] values()
for (CmsClientLock.LockType c : CmsClientLock.LockType.values()) System.out.println(c);
public static CmsClientLock.LockType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static CmsClientLock.LockType valueOf(int mode)
mode - the lock mode/type int
public boolean isUnlocked()
true if this lock is in fact unlocked.
Only if this is true, the result lock is equal to the NULL lock,
which can be obtained by CmsLock.getNullLock().
true if this lock is in fact unlockedpublic java.lang.String toString()
toString in class java.lang.Enum<CmsClientLock.LockType>Object.toString()public int getMode()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||