|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.spi.commons.LockInfoImpl
public class LockInfoImpl
LockInfoImpl
implements a serializable LockInfo
based on another lock info.
Constructor Summary | |
---|---|
LockInfoImpl(String lockToken,
String lockOwner,
boolean isDeep,
boolean isSessionScoped,
NodeId nodeId)
Creates a new lock info for the given lock info. |
Method Summary | |
---|---|
String |
getLockToken()
Returns the lock token for this lock if it is hold by the requesting session or null otherwise. |
NodeId |
getNodeId()
Returns the NodeId of the lock-holding Node. |
String |
getOwner()
Returns the user ID of the user who owns this lock. |
boolean |
isDeep()
Returns true if the Lock is deep. |
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(String lockToken, String lockOwner, boolean isDeep, boolean isSessionScoped, NodeId nodeId)
lock
info.
lockToken
- the lock tokenlockOwner
- the lock ownerisDeep
- whether this lock is deep or notisSessionScoped
- whether this lock is session scoped or notnodeId
- the node id of the locked node.Method Detail |
---|
public String getLockToken()
null
otherwise.
getLockToken
in interface LockInfo
null
Lock.getLockToken()
public String getOwner()
getOwner
in interface LockInfo
Lock.getLockOwner()
public boolean isDeep()
isDeep
in interface LockInfo
Lock.isDeep()
public boolean isSessionScoped()
isSessionScoped
in interface LockInfo
Lock.isSessionScoped()
public NodeId getNodeId()
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 |