|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LockManager
The LockManager
interface.
Method Summary | |
---|---|
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 resouce. |
void |
releaseLock(String lockToken,
DavResource resource)
Release the lock identified by the given lockToken and initially created on the specified resouce. |
Method Detail |
---|
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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |