Package org.opencms.repository
Class CmsRepositoryLockInfo
java.lang.Object
org.opencms.repository.CmsRepositoryLockInfo
The class represents a lock to a
I_CmsRepositoryItem
.- Since:
- 6.2.4
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The default scope for locks.static final String
The default type for locks.static final int
Default depth is infinite.static final String
The lock scope "exclusive".static final String
The lock scope "shared".static final int
Infinite timeout for the lock.static final String
The lock type "write". -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the creationDate.int
getDepth()
Returns the depth.long
Returns the expiresAt.getOwner()
Returns the owner.getPath()
Returns the path.getScope()
Returns the scope.getType()
Returns the type.Returns the username.boolean
Return true if the lock has expired.boolean
Return true if the lock is exclusive.void
setDepth
(int depth) Sets the depth.void
setExpiresAt
(long expiresAt) Sets the expiresAt.void
Sets the owner.void
Sets the path.void
Sets the scope.void
Sets the type.void
setUsername
(String username) Sets the username.toString()
Get a string representation of this lock info.
-
Field Details
-
SCOPE_EXCLUSIVE
The lock scope "exclusive".- See Also:
-
DEFAULT_SCOPE
The default scope for locks.- See Also:
-
TIMEOUT_INFINITE_VALUE
Infinite timeout for the lock.- See Also:
-
TYPE_WRITE
The lock type "write".- See Also:
-
DEFAULT_TYPE
The default type for locks.- See Also:
-
DEPTH_INFINITY_VALUE
Default depth is infinite.- See Also:
-
SCOPE_SHARED
The lock scope "shared".- See Also:
-
-
Constructor Details
-
CmsRepositoryLockInfo
public CmsRepositoryLockInfo()Empty default constructor.
-
-
Method Details
-
getCreationDate
Returns the creationDate.- Returns:
- the creationDate
-
getDepth
Returns the depth.- Returns:
- the depth
-
getExpiresAt
Returns the expiresAt.- Returns:
- the expiresAt
-
getOwner
Returns the owner.- Returns:
- the owner
-
getPath
Returns the path.- Returns:
- the path
-
getScope
Returns the scope.- Returns:
- the scope
-
getType
Returns the type.- Returns:
- the type
-
getUsername
Returns the username.- Returns:
- the username
-
hasExpired
Return true if the lock has expired.- Returns:
- true if the lock has expired
-
isExclusive
Return true if the lock is exclusive.- Returns:
- true if the lock is exclusive
-
setDepth
Sets the depth.- Parameters:
depth
- the depth to set
-
setExpiresAt
Sets the expiresAt.- Parameters:
expiresAt
- the expiresAt to set
-
setOwner
Sets the owner.- Parameters:
owner
- the owner to set
-
setPath
Sets the path.- Parameters:
path
- the path to set
-
setScope
Sets the scope.- Parameters:
scope
- the scope to set
-
setType
Sets the type.- Parameters:
type
- the type to set
-
setUsername
Sets the username.- Parameters:
username
- the username to set
-
toString
Get a string representation of this lock info.
-