Package org.apache.jackrabbit.spi
Interface LockInfo
-
- All Known Implementing Classes:
LockInfoImpl,LockInfoImpl
public interface LockInfoLockInfois used to transport lock information across the SPI boundary.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetLockToken()Returns the lock token for this lock ornullif the token should not be exposed to the API user.NodeIdgetNodeId()Returns theNodeIdof the lock-holding Node.StringgetOwner()Returns the user ID of the user who owns this lock or some user defined information about the lock owner.longgetSecondsRemaining()Returns the seconds remaining until the lock times out or (Long.MAX_VALUEif the timeout is unknown or infinite).booleanisDeep()Returns true if the Lock is deep.booleanisLockOwner()Returnstrueif theSessionInfoused to retrieve thisLockInfois the lock holder and thus enabled to refresh or release the lock.booleanisSessionScoped()Returns true if the Lock is session scoped.
-
-
-
Method Detail
-
getLockToken
String getLockToken()
Returns the lock token for this lock ornullif the token should not be exposed to the API user.- Returns:
- lock token or
null - See Also:
Lock.getLockToken()
-
getOwner
String getOwner()
Returns the user ID of the user who owns this lock or some user defined information about the lock owner.- Returns:
- user ID of the user who owns this lock.
- See Also:
Lock.getLockOwner()
-
isDeep
boolean isDeep()
Returns true if the Lock is deep. False otherwise.- Returns:
- true if the Lock is deep. False otherwise.
- See Also:
Lock.isDeep()
-
isSessionScoped
boolean isSessionScoped()
Returns true if the Lock is session scoped. False otherwise.- Returns:
- true if the Lock is session scoped. False otherwise.
- See Also:
Lock.isSessionScoped()
-
getSecondsRemaining
long getSecondsRemaining()
Returns the seconds remaining until the lock times out or (Long.MAX_VALUEif the timeout is unknown or infinite).- Returns:
- number of seconds until the lock times out.
- Since:
- JCR 2.0
- See Also:
Lock.getSecondsRemaining()
-
isLockOwner
boolean isLockOwner()
Returnstrueif theSessionInfoused to retrieve thisLockInfois the lock holder and thus enabled to refresh or release the lock.- Returns:
trueif theSessionInfoused to retrieve thisLockInfois the lock holder.- Since:
- JCR 2.0
- See Also:
Lock.isLockOwningSession()
-
getNodeId
NodeId getNodeId()
Returns theNodeIdof the lock-holding Node.- Returns:
- the
NodeIdof the lock-holding Node.
-
-