public interface ActiveLock extends XmlSerializable
ActiveLock
encapsulates the lock information for a
DavResource
.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLockroot()
Returns the lockroot.
|
java.lang.String |
getOwner()
Return the name (or id) of the lock owner.
|
Scope |
getScope()
Return the scope of this lock.
|
long |
getTimeout()
Return the number of milliseconds the lock will live until it is expired
or -1 if the timeout is not available (or the client is not allowed
to retrieve it).
|
java.lang.String |
getToken()
Return the lock token.
|
Type |
getType()
Return the type of this lock.
|
boolean |
isDeep()
Return true if the lock is deep.
|
boolean |
isExpired()
Returns true, if this lock is already expired.
|
boolean |
isLockedByToken(java.lang.String lockToken)
Return true, if the given token matches the lock token present in this
lock thus indicating that any lock relevant operation should not fail
due to a lock.
|
void |
setIsDeep(boolean isDeep)
Set the lock deepness.
|
void |
setLockroot(java.lang.String lockroot)
Set the lockroot.
|
void |
setOwner(java.lang.String owner)
Set the name (or id) of the lock owner
|
void |
setTimeout(long timeout)
Defines the number of milliseconds until the timeout is reached.
|
toXml
boolean isLockedByToken(java.lang.String lockToken)
lockToken
- to be checkedboolean isExpired()
java.lang.String getToken()
java.lang.String getOwner()
void setOwner(java.lang.String owner)
owner
- long getTimeout()
void setTimeout(long timeout)
timeout
- boolean isDeep()
void setIsDeep(boolean isDeep)
isDeep
- java.lang.String getLockroot()
void setLockroot(java.lang.String lockroot)
lockroot
- Type getType()
Scope getScope()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"