|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.lock.AbstractLockInfo
public abstract class AbstractLockInfo
Common information about a lock.
Field Summary | |
---|---|
protected boolean |
deep
Flag indicating whether lock is deep |
protected boolean |
live
Flag indicating whether this lock is live |
protected SessionImpl |
lockHolder
Session currently holding lock |
protected String |
lockOwner
Lock owner, determined on creation time |
protected org.apache.jackrabbit.core.lock.LockToken |
lockToken
Lock token |
protected boolean |
sessionScoped
Flag indicating whether lock is session scoped |
Constructor Summary | |
---|---|
AbstractLockInfo(org.apache.jackrabbit.core.lock.LockToken lockToken,
boolean sessionScoped,
boolean deep,
String lockOwner)
Create a new instance of this class. |
Method Summary | |
---|---|
NodeId |
getId()
Return the ID of the lock holding node |
SessionImpl |
getLockHolder()
Return the session currently holding the lock |
String |
getLockToken(Session session)
Return the lock token as seen by the session passed as parameter. |
boolean |
isLive()
Return a flag indicating whether the lock is live |
boolean |
isSessionScoped()
Return a flag indicating whether the lock is session-scoped |
boolean |
mayChange()
Return a flag indicating whether the lock information may still change. |
void |
setLive(boolean live)
Set the live flag |
void |
setLockHolder(SessionImpl lockHolder)
Set the session currently holding the lock |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final org.apache.jackrabbit.core.lock.LockToken lockToken
protected final boolean sessionScoped
protected final boolean deep
protected final String lockOwner
protected SessionImpl lockHolder
protected boolean live
Constructor Detail |
---|
public AbstractLockInfo(org.apache.jackrabbit.core.lock.LockToken lockToken, boolean sessionScoped, boolean deep, String lockOwner)
lockToken
- lock tokensessionScoped
- whether lock token is session scopeddeep
- whether lock is deeplockOwner
- owner of lockMethod Detail |
---|
public void setLive(boolean live)
live
- live flagpublic NodeId getId()
public SessionImpl getLockHolder()
public void setLockHolder(SessionImpl lockHolder)
lockHolder
- session currently holding the lockpublic String getLockToken(Session session)
null
string
public boolean isLive()
true
if the lock is live; otherwise false
public boolean mayChange()
public boolean isSessionScoped()
true
if the lock is session-scoped;
otherwise false
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |