Package org.apache.jackrabbit.spi2dav
Class LockInfoImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi2dav.LockInfoImpl
-
-
Constructor Summary
Constructors Constructor Description LockInfoImpl(ActiveLock activeLock, NodeId nodeId, Set<String> sessionLockTokens)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLockToken()
Returns the lock token for this lock ornull
if the token should not be exposed to the API user.NodeId
getNodeId()
Returns theNodeId
of the lock-holding Node.String
getOwner()
Returns the user ID of the user who owns this lock or some user defined information about the lock owner.long
getSecondsRemaining()
Returns the seconds remaining until the lock times out or (Long.MAX_VALUE
if the timeout is unknown or infinite).boolean
isDeep()
Returns true if the Lock is deep.boolean
isLockOwner()
Returnstrue
if theSessionInfo
used to retrieve thisLockInfo
is the lock holder and thus enabled to refresh or release the lock.boolean
isSessionScoped()
Returns true if the Lock is session scoped.
-
-
-
Constructor Detail
-
LockInfoImpl
public LockInfoImpl(ActiveLock activeLock, NodeId nodeId, Set<String> sessionLockTokens)
-
-
Method Detail
-
getLockToken
public String getLockToken()
Description copied from interface:LockInfo
Returns the lock token for this lock ornull
if the token should not be exposed to the API user.- Specified by:
getLockToken
in interfaceLockInfo
- Returns:
- lock token or
null
- See Also:
Lock.getLockToken()
-
getOwner
public String getOwner()
Description copied from interface:LockInfo
Returns the user ID of the user who owns this lock or some user defined information about the lock owner.- Specified by:
getOwner
in interfaceLockInfo
- Returns:
- user ID of the user who owns this lock.
- See Also:
Lock.getLockOwner()
-
isDeep
public boolean isDeep()
Description copied from interface:LockInfo
Returns true if the Lock is deep. False otherwise.- Specified by:
isDeep
in interfaceLockInfo
- Returns:
- true if the Lock is deep. False otherwise.
- See Also:
Lock.isDeep()
-
isSessionScoped
public boolean isSessionScoped()
Description copied from interface:LockInfo
Returns true if the Lock is session scoped. False otherwise.- Specified by:
isSessionScoped
in interfaceLockInfo
- Returns:
- true if the Lock is session scoped. False otherwise.
- See Also:
Lock.isSessionScoped()
-
getSecondsRemaining
public long getSecondsRemaining()
Description copied from interface:LockInfo
Returns the seconds remaining until the lock times out or (Long.MAX_VALUE
if the timeout is unknown or infinite).- Specified by:
getSecondsRemaining
in interfaceLockInfo
- Returns:
- number of seconds until the lock times out.
- See Also:
Lock.getSecondsRemaining()
-
isLockOwner
public boolean isLockOwner()
Description copied from interface:LockInfo
Returnstrue
if theSessionInfo
used to retrieve thisLockInfo
is the lock holder and thus enabled to refresh or release the lock.- Specified by:
isLockOwner
in interfaceLockInfo
- Returns:
true
if theSessionInfo
used to retrieve thisLockInfo
is the lock holder.- See Also:
Lock.isLockOwningSession()
-
-