public final class CmsLockType extends A_CmsModeIntEnumeration
限定符和类型 | 字段和说明 |
---|---|
static CmsLockType |
EXCLUSIVE
A lock that allows the user to edit the resource's structure record,
it's resource record, and its content record.
|
static CmsLockType |
INHERITED
A lock that is inherited from a locked parent folder.
|
static CmsLockType |
PUBLISH
A lock that indicates that the resource is waiting to be published in the publish queue.
|
static CmsLockType |
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.
|
static CmsLockType |
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.
|
protected static CmsLockType |
SYSTEM_UNLOCKED
Type of the NULL system lock.
|
static CmsLockType |
TEMPORARY
A temporary exclusive lock that allows the user to edit the resource's structure record,
it's resource record, and its content record.
|
static CmsLockType |
UNLOCKED
Type of the NULL lock obtained by
CmsLock.getNullLock() . |
限定符和类型 | 方法和说明 |
---|---|
boolean |
isDirectlyInherited()
Returns
true if this is an directly inherited lock. |
boolean |
isExclusive()
Returns
true if this is an exclusive (or temporary exclusive) lock. |
boolean |
isInherited()
Returns
true if this is an inherited lock, which may either be directly or shared inherited. |
boolean |
isPersistent()
Returns
true if this is a persistent lock that should be saved when the systems shuts down. |
boolean |
isPublish()
Returns
true if this is a publish lock. |
boolean |
isShared()
Returns
true if this is a shared lock. |
boolean |
isSharedExclusive()
Returns
true if this is an shared exclusive lock. |
boolean |
isSharedInherited()
Returns
true if this is an shared inherited lock. |
boolean |
isSystem()
Returns
true if this is a system (2nd level) lock. |
boolean |
isTemporary()
Returns
true if this is a temporary lock. |
boolean |
isUnlocked()
Returns
true if this lock is in fact unlocked. |
java.lang.String |
toString() |
static CmsLockType |
valueOf(int type)
Returns the lock type for the given type value.
|
equals, getMode, hashCode
public static final CmsLockType EXCLUSIVE
This lock is assigned to files that are locked via the context menu.
public static final CmsLockType INHERITED
public static final CmsLockType PUBLISH
public static final CmsLockType SHARED_EXCLUSIVE
This lock is assigned to files if a sibling of the resource record has already an exclusive lock.
public static final CmsLockType SHARED_INHERITED
This lock is assigned to resources that already have a shared exclusive lock, and then inherit a lock because one of it's parent folders gets locked.
public static final CmsLockType TEMPORARY
This lock is identical to the EXCLUSIVE
lock, but it is automatically removed after
a user is logged out.
public static final CmsLockType UNLOCKED
CmsLock.getNullLock()
.protected static final CmsLockType SYSTEM_UNLOCKED
public static CmsLockType valueOf(int type)
This is used only for serialization and should not be accessed for other purposes.
type
- the type value to get the lock type forpublic boolean isDirectlyInherited()
true
if this is an directly inherited lock.true
if this is an directly inherited lockpublic boolean isExclusive()
true
if this is an exclusive (or temporary exclusive) lock.true
if this is an exclusive (or temporary exclusive) lockpublic boolean isInherited()
true
if this is an inherited lock, which may either be directly or shared inherited.true
if this is an inherited lock, which may either be directly or shared inheritedpublic boolean isPersistent()
true
if this is a persistent lock that should be saved when the systems shuts down.true
if this is a persistent lock that should be saved when the systems shuts downpublic boolean isPublish()
true
if this is a publish lock.true
if this is a publish lockpublic boolean isShared()
true
if this is a shared lock.true
if this is a shared lockpublic boolean isSharedExclusive()
true
if this is an shared exclusive lock.true
if this is an shared exclusive lockpublic boolean isSharedInherited()
true
if this is an shared inherited lock.true
if this is an shared inherited lockpublic boolean isSystem()
true
if this is a system (2nd level) lock.true
if this is a system (2nd level) lockpublic boolean isTemporary()
true
if this is a temporary lock.true
if this is a temporary lockpublic 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
在类中 A_CmsModeIntEnumeration
Object.toString()