Package org.opencms.gwt.shared
Enum Class CmsClientLock.LockType
- All Implemented Interfaces:
Serializable,Comparable<CmsClientLock.LockType>,Constable
- Enclosing class:
CmsClientLock
The available lock types. Replace with
CmsLockType as soon that fulfills the serializable convention.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA lock that allows the user to edit the resource's structure record, it's resource record, and its content record.A lock that is inherited from a locked parent folder.A lock that indicates that the resource is waiting to be published in the publish queue.A lock that allows the user to edit the resource's structure record only, but not it's resource record nor content record.A lock that allows the user to edit the resource's structure record only, but not it's resource record nor content record.Type of the NULL lock obtained byCmsLock.getNullLock().A temporary exclisive lock that allows the user to edit the resource's structure record, it's resource record, and its content record.Type of the NULL system lock. -
Method Summary
Modifier and TypeMethodDescriptionintgetMode()Return the lock mode/type.booleanReturnstrueif this lock is in fact unlocked.toString()static CmsClientLock.LockTypevalueOf(int mode) Returns the lock type according to the given mode.static CmsClientLock.LockTypeReturns the enum constant of this class with the specified name.static CmsClientLock.LockType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXCLUSIVE
A lock that allows the user to edit the resource's structure record, it's resource record, and its content record.This lock is assigned to files that are locked via the context menu.
-
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.This lock is assigned to files if a sibling of the resource record has already an exclusive lock.
-
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.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.
-
TEMPORARY
A temporary exclisive lock that allows the user to edit the resource's structure record, it's resource record, and its content record.This lock is identical to the
EXCLUSIVElock, but it is automatically removed after a user is logged out. -
SYSTEM_UNLOCKED
Type of the NULL lock obtained byCmsLock.getNullLock(). -
UNLOCKED
Type of the NULL system lock.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
valueOf
Returns the lock type according to the given mode.- Parameters:
mode- the lock mode/type int- Returns:
- the lock type
-
isUnlocked
Returnstrueif this lock is in fact unlocked.Only if this is
true, the result lock is equal to theNULLlock, which can be obtained byCmsLock.getNullLock().- Returns:
trueif this lock is in fact unlocked
-
toString
- Overrides:
toStringin classEnum<CmsClientLock.LockType>- See Also:
-
getMode
Return the lock mode/type.- Returns:
- the lock mode/type
-