public interface LockManager
LockManager
interface.Modifier and Type | Method and Description |
---|---|
ActiveLock |
createLock(LockInfo lockInfo,
DavResource resource)
Create a new lock for the given
resource . |
ActiveLock |
getLock(Type type,
Scope scope,
DavResource resource)
Retrieve the lock with the given type and scope that is applied to the
given resource.
|
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 resource.
|
void |
releaseLock(String lockToken,
DavResource resource)
Release the lock identified by the given lockToken and initially created
on the specified resource.
|
ActiveLock createLock(LockInfo lockInfo, DavResource resource) throws DavException
resource
.lockInfo
- resource
- DavException
ActiveLock refreshLock(LockInfo lockInfo, String lockToken, DavResource resource) throws DavException
lockInfo
- lockToken
- resource
- DavException
void releaseLock(String lockToken, DavResource resource) throws DavException
lockToken
- resource
- DavException
ActiveLock getLock(Type type, Scope scope, DavResource resource)
null
must be
returned.type
- scope
- resource
- null
if no lock applies.boolean hasLock(String lockToken, DavResource resource)
lockToken
- resource
- Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.