|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.repository.CmsRepositoryLockInfo
public class CmsRepositoryLockInfo
The class represents a lock to a I_CmsRepositoryItem
.
Field Summary | |
---|---|
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". |
Constructor Summary | |
---|---|
CmsRepositoryLockInfo()
Empty default constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public CmsRepositoryLockInfo()
Method Detail |
---|
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
in class java.lang.Object
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |