|
||||||||||
| 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 java.lang.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,
java.lang.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 |
java.lang.String |
getLockToken(javax.jcr.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 |
java.lang.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 java.lang.String lockOwner
protected SessionImpl lockHolder
protected boolean live
| Constructor Detail |
|---|
public AbstractLockInfo(org.apache.jackrabbit.core.lock.LockToken lockToken,
boolean sessionScoped,
boolean deep,
java.lang.String lockOwner)
lockToken - lock tokensessionScoped - whether lock token is session scopeddeep - whether lock is deeplockOwner - owner of lock| Method 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 java.lang.String getLockToken(javax.jcr.Session session)
null string
public boolean isLive()
true if the lock is live; otherwise falsepublic boolean mayChange()
public boolean isSessionScoped()
true if the lock is session-scoped;
otherwise falsepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||