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
FieldsModifier and TypeFieldDescriptionstatic final StringThe default scope for locks.static final StringThe default type for locks.static final intDefault depth is infinite.static final StringThe lock scope "exclusive".static final StringThe lock scope "shared".static final intInfinite timeout for the lock.static final StringThe lock type "write". -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the creationDate.intgetDepth()Returns the depth.longReturns the expiresAt.getOwner()Returns the owner.getPath()Returns the path.getScope()Returns the scope.getType()Returns the type.Returns the username.booleanReturn true if the lock has expired.booleanReturn true if the lock is exclusive.voidsetDepth(int depth) Sets the depth.voidsetExpiresAt(long expiresAt) Sets the expiresAt.voidSets the owner.voidSets the path.voidSets the scope.voidSets the type.voidsetUsername(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.
-