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(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)
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 - DavExceptionActiveLock refreshLock(LockInfo lockInfo, java.lang.String lockToken, DavResource resource) throws DavException
lockInfo - lockToken - resource - DavExceptionvoid releaseLock(java.lang.String lockToken,
DavResource resource)
throws DavException
lockToken - resource - DavExceptionActiveLock getLock(Type type, Scope scope, DavResource resource)
null must be
returned.type - scope - resource - null if no lock applies.boolean hasLock(java.lang.String lockToken,
DavResource resource)
lockToken - resource - Copyright © 2010 - 2023 Adobe. All Rights Reserved