|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.lock.SimpleLockManager
Simple manager for webdav locks.
| Constructor Summary | |
SimpleLockManager()
|
|
| Method Summary | |
ActiveLock |
createLock(LockInfo lockInfo,
DavResource resource)
Adds the lock for the given resource, replacing any existing lock. |
ActiveLock |
getLock(Type type,
Scope scope,
DavResource resource)
Returns the lock applying to the given resource or null if
no lock can be found. |
boolean |
hasLock(String lockToken,
DavResource resource)
Returns true, if the the manager contains a lock for the given resource, that is hold by the specified token. |
ActiveLock |
refreshLock(LockInfo lockInfo,
String lockToken,
DavResource resource)
Refresh the lock identified by the given lockToken and initially created on the specified resouce. |
void |
releaseLock(String lockToken,
DavResource resource)
Remove the lock hold by the given resource. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleLockManager()
| Method Detail |
public boolean hasLock(String lockToken,
DavResource resource)
LockManager
hasLock in interface LockManagerlockToken - resource -
LockManager.hasLock(String, org.apache.jackrabbit.webdav.DavResource)
public ActiveLock getLock(Type type,
Scope scope,
DavResource resource)
null if
no lock can be found.
getLock in interface LockManagertype - scope - resource -
null.
public ActiveLock createLock(LockInfo lockInfo,
DavResource resource)
throws DavException
createLock in interface LockManagerlockInfo - resource - being the lock holder
DavException
public ActiveLock refreshLock(LockInfo lockInfo,
String lockToken,
DavResource resource)
throws DavException
LockManager
refreshLock in interface LockManagerlockInfo - lockToken - resource -
DavExceptionDavResource.refreshLock(org.apache.jackrabbit.webdav.lock.LockInfo, String)
public void releaseLock(String lockToken,
DavResource resource)
throws DavException
releaseLock in interface LockManagerlockToken - resource - that is the lock holder
DavException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||