|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.lock.AbstractActiveLock
org.apache.jackrabbit.webdav.jcr.lock.JcrActiveLock
public class JcrActiveLock
JcrActiveLock wraps a JCR lock object.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
JcrActiveLock(javax.jcr.lock.Lock lock)
Create a new ActiveLock object with type 'write'
and scope 'exclusive'. |
|
JcrActiveLock(javax.jcr.lock.Lock lock,
boolean sessionScoped)
Create a new ActiveLock object with type 'write'
and scope 'exclusive'. |
|
| Method Summary | |
|---|---|
java.lang.String |
getOwner()
Return the name (or id) of the lock owner. |
Scope |
getScope()
Return the scope of this lock. |
long |
getTimeout()
Since jcr locks do not reveal the time left until they expire, DavConstants.INFINITE_TIMEOUT
is returned. |
java.lang.String |
getToken()
Return the lock token if the Session that optained the lock
is the lock token holder, null otherwise.NOTE: currently the token generated by the underlying JCR repository is not checked for compliance with RFC 2518 ("OpaqueLockToken-URI = "opaquelocktoken:" UUID [Extension] ; The UUID production is the string representation of a UUID, as defined in [ISO-11578]. |
Type |
getType()
Always returns Type.WRITE. |
boolean |
isDeep()
Return true if the lock is deep. |
boolean |
isExpired()
Returns true, if this lock is already expired. |
boolean |
isLockedByToken(java.lang.String lockToken)
Return true if the given lock token equals the token holding that lock. |
void |
setIsDeep(boolean isDeep)
Set the lock deepness. |
void |
setOwner(java.lang.String owner)
Set the name (or id) of the lock owner |
void |
setTimeout(long timeout)
Throws UnsupportedOperationException |
| Methods inherited from class org.apache.jackrabbit.webdav.lock.AbstractActiveLock |
|---|
toXml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jackrabbit.webdav.xml.XmlSerializable |
|---|
toXml |
| Constructor Detail |
|---|
public JcrActiveLock(javax.jcr.lock.Lock lock)
ActiveLock object with type 'write'
and scope 'exclusive'.
lock -
public JcrActiveLock(javax.jcr.lock.Lock lock,
boolean sessionScoped)
ActiveLock object with type 'write'
and scope 'exclusive'.
lock - | Method Detail |
|---|
public boolean isLockedByToken(java.lang.String lockToken)
isLockedByToken in interface ActiveLocklockToken -
ActiveLock.isLockedByToken(String)public boolean isExpired()
ActiveLock
isExpired in interface ActiveLockActiveLock.isExpired()public java.lang.String getToken()
Session that optained the lock
is the lock token holder, null otherwise.
getToken in interface ActiveLockActiveLock.getToken()public java.lang.String getOwner()
ActiveLock
getOwner in interface ActiveLockActiveLock.getOwner()public void setOwner(java.lang.String owner)
ActiveLock
setOwner in interface ActiveLockActiveLock.setOwner(String)public long getTimeout()
DavConstants.INFINITE_TIMEOUT
is returned. A missing timeout causes problems with Microsoft clients.
getTimeout in interface ActiveLockDavConstants.INFINITE_TIMEOUTActiveLock.getTimeout()public void setTimeout(long timeout)
UnsupportedOperationException
setTimeout in interface ActiveLockActiveLock.setTimeout(long)public boolean isDeep()
ActiveLock
isDeep in interface ActiveLockActiveLock.isDeep()public void setIsDeep(boolean isDeep)
ActiveLock
setIsDeep in interface ActiveLockActiveLock.setIsDeep(boolean)public Type getType()
Type.WRITE.
getType in interface ActiveLockType.WRITEActiveLock.getType()public Scope getScope()
ActiveLock
getScope in interface ActiveLockexclusive
or exlusive session scoped
lock.ActiveLock.getScope()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||