public class CmsRepositoryLockInfo
extends java.lang.Object
I_CmsRepositoryItem
.限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
DEFAULT_SCOPE
The default scope for locks.
|
static java.lang.String |
DEFAULT_TYPE
The default type for locks.
|
static int |
DEPTH_INFINITY_VALUE
Default depth is infinite.
|
static java.lang.String |
SCOPE_EXCLUSIVE
The lock scope "exclusive".
|
static java.lang.String |
SCOPE_SHARED
The lock scope "shared".
|
static int |
TIMEOUT_INFINITE_VALUE
Infinite timeout for the lock.
|
static java.lang.String |
TYPE_WRITE
The lock type "write".
|
构造器和说明 |
---|
CmsRepositoryLockInfo()
Empty default constructor.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.Date |
getCreationDate()
Returns the creationDate.
|
int |
getDepth()
Returns the depth.
|
long |
getExpiresAt()
Returns the expiresAt.
|
java.lang.String |
getOwner()
Returns the owner.
|
java.lang.String |
getPath()
Returns the path.
|
java.lang.String |
getScope()
Returns the scope.
|
java.lang.String |
getType()
Returns the type.
|
java.lang.String |
getUsername()
Returns the username.
|
boolean |
hasExpired()
Return true if the lock has expired.
|
boolean |
isExclusive()
Return true if the lock is exclusive.
|
void |
setDepth(int depth)
Sets the depth.
|
void |
setExpiresAt(long expiresAt)
Sets the expiresAt.
|
void |
setOwner(java.lang.String owner)
Sets the owner.
|
void |
setPath(java.lang.String path)
Sets the path.
|
void |
setScope(java.lang.String scope)
Sets the scope.
|
void |
setType(java.lang.String type)
Sets the type.
|
void |
setUsername(java.lang.String username)
Sets the username.
|
java.lang.String |
toString()
Get a string representation of this lock info.
|
public static final java.lang.String SCOPE_EXCLUSIVE
public static final java.lang.String DEFAULT_SCOPE
public static final int TIMEOUT_INFINITE_VALUE
public static final java.lang.String TYPE_WRITE
public static final java.lang.String DEFAULT_TYPE
public static final int DEPTH_INFINITY_VALUE
public static final java.lang.String SCOPE_SHARED
public java.util.Date getCreationDate()
public int getDepth()
public long getExpiresAt()
public java.lang.String getOwner()
public java.lang.String getPath()
public java.lang.String getScope()
public java.lang.String getType()
public java.lang.String getUsername()
public boolean hasExpired()
public boolean isExclusive()
public void setDepth(int depth)
depth
- the depth to setpublic void setExpiresAt(long expiresAt)
expiresAt
- the expiresAt to setpublic void setOwner(java.lang.String owner)
owner
- the owner to setpublic void setPath(java.lang.String path)
path
- the path to setpublic void setScope(java.lang.String scope)
scope
- the scope to setpublic void setType(java.lang.String type)
type
- the type to setpublic void setUsername(java.lang.String username)
username
- the username to setpublic java.lang.String toString()
toString
在类中 java.lang.Object