public class SimpleLockManager extends java.lang.Object implements LockManager
| Constructor and Description |
|---|
SimpleLockManager() |
| Modifier and Type | Method and Description |
|---|---|
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(java.lang.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,
java.lang.String lockToken,
DavResource resource)
Refresh the lock identified by the given lockToken and initially created
on the specified resource.
|
void |
releaseLock(java.lang.String lockToken,
DavResource resource)
Remove the lock hold by the given resource.
|
public boolean hasLock(java.lang.String lockToken,
DavResource resource)
LockManagerhasLock 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 holderDavExceptionpublic ActiveLock refreshLock(LockInfo lockInfo, java.lang.String lockToken, DavResource resource) throws DavException
LockManagerrefreshLock in interface LockManagerlockInfo - lockToken - resource - DavExceptionDavResource.refreshLock(org.apache.jackrabbit.webdav.lock.LockInfo, String)public void releaseLock(java.lang.String lockToken,
DavResource resource)
throws DavException
releaseLock in interface LockManagerlockToken - resource - that is the lock holderDavExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved