|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.spi2dav.LockInfoImpl
public class LockInfoImpl
LockInfoImpl
...
Constructor Summary | |
---|---|
LockInfoImpl(ActiveLock activeLock,
NodeId nodeId)
|
Method Summary | |
---|---|
String |
getLockToken()
Returns the lock token for this lock or null if the token
should not be exposed to the API user. |
NodeId |
getNodeId()
Returns the NodeId 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()
Returns true if the SessionInfo used to
retrieve this LockInfo is the lock holder and thus enabled
to refresh or release the lock. |
boolean |
isSessionScoped()
Returns true if the Lock is session scoped. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LockInfoImpl(ActiveLock activeLock, NodeId nodeId)
Method Detail |
---|
public String getLockToken()
LockInfo
null
if the token
should not be exposed to the API user.
getLockToken
in interface LockInfo
null
Lock.getLockToken()
public String getOwner()
LockInfo
getOwner
in interface LockInfo
Lock.getLockOwner()
public boolean isDeep()
LockInfo
isDeep
in interface LockInfo
Lock.isDeep()
public boolean isSessionScoped()
LockInfo
isSessionScoped
in interface LockInfo
Lock.isSessionScoped()
public long getSecondsRemaining()
LockInfo
Long.MAX_VALUE
if the timeout is unknown or infinite).
getSecondsRemaining
in interface LockInfo
javax.jcr.lock.Lock#getSecondsRemaining()
public boolean isLockOwner()
LockInfo
true
if the SessionInfo
used to
retrieve this LockInfo
is the lock holder and thus enabled
to refresh or release the lock.
isLockOwner
in interface LockInfo
true
if the SessionInfo
used to
retrieve this LockInfo
is the lock holder.javax.jcr.lock.Lock#isLockOwningSession()
public NodeId getNodeId()
LockInfo
NodeId
of the lock-holding Node.
getNodeId
in interface LockInfo
NodeId
of the lock-holding Node.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |