Abstract interface for WebDAV lock handlers.
More...
#include <AbstractWebDavLockHandler.qc.dox.h>
|
| abstract string | lock (string resource, hash< WebDavLockInfo > lock_info) |
| | Acquire a lock on a resource.
|
| |
| abstract bool | unlock (string resource, string token) |
| | Release a lock.
|
| |
| abstract bool | refresh (string token, int timeout) |
| | Refresh an existing lock's timeout.
|
| |
| abstract soft< hash< WebDavLockInfo > > | getLock (string token) |
| | Get lock information for a specific token.
|
| |
| abstract list< hash< WebDavLockInfo > > | getLocks (string resource) |
| | Get all locks on a resource.
|
| |
| abstract soft< string > | isLocked (string resource, soft< string > exclude_token) |
| | Check if a resource is locked.
|
| |
|
abstract void | cleanExpired () |
| | Clean up expired locks.
|
| |
|
string | generateLockToken () |
| | Clean up expired locks.
|
| |
Abstract interface for WebDAV lock handlers.
This class provides the interface for managing WebDAV locks on resources. Implementations must handle lock storage, conflict detection, and expiration.
◆ getLock()
| abstract soft< hash< WebDavLockInfo > > WebDavHandler::AbstractWebDavLockHandler::getLock |
( |
string |
token | ) |
|
Get lock information for a specific token.
- Parameters
-
- Returns
- the lock information, or NOTHING if not found
◆ getLocks()
| abstract list< hash< WebDavLockInfo > > WebDavHandler::AbstractWebDavLockHandler::getLocks |
( |
string |
resource | ) |
|
Get all locks on a resource.
- Parameters
-
| resource | the resource path |
- Returns
- a list of lock information hashes, or an empty list if none
◆ isLocked()
| abstract soft< string > WebDavHandler::AbstractWebDavLockHandler::isLocked |
( |
string |
resource, |
|
|
soft< string > |
exclude_token |
|
) |
| |
Check if a resource is locked.
- Parameters
-
| resource | the resource path to check |
| exclude_token | optional token to exclude from conflict check |
- Returns
- the conflicting lock token if locked, or NOTHING if not locked
◆ lock()
| abstract string WebDavHandler::AbstractWebDavLockHandler::lock |
( |
string |
resource, |
|
|
hash< WebDavLockInfo > |
lock_info |
|
) |
| |
Acquire a lock on a resource.
- Parameters
-
| resource | the resource path to lock |
| lock_info | the lock information |
- Returns
- the lock token
- Exceptions
-
| LOCK-CONFLICT | if the resource is already locked in a conflicting way |
◆ refresh()
| abstract bool WebDavHandler::AbstractWebDavLockHandler::refresh |
( |
string |
token, |
|
|
int |
timeout |
|
) |
| |
Refresh an existing lock's timeout.
- Parameters
-
| token | the lock token to refresh |
| timeout | the new timeout in seconds |
- Returns
- True if the lock was found and refreshed, False otherwise
◆ unlock()
| abstract bool WebDavHandler::AbstractWebDavLockHandler::unlock |
( |
string |
resource, |
|
|
string |
token |
|
) |
| |
Release a lock.
- Parameters
-
| resource | the resource path |
| token | the lock token to release |
- Returns
- True if the lock was found and released, False otherwise
The documentation for this class was generated from the following file:
- doxygen/qlib/WebDavHandler/AbstractWebDavLockHandler.qc.dox.h