Qore WebDavHandler Module Reference  1.0
AbstractWebDavPropertyHandler.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 /* WebDavHandler module Copyright 2019 - 2022 Qore Technologies, s.r.o.
4 
5  Permission is hereby granted, free of charge, to any person obtaining a
6  copy of this software and associated documentation files (the "Software"),
7  to deal in the Software without restriction, including without limitation
8  the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  and/or sell copies of the Software, and to permit persons to whom the
10  Software is furnished to do so, subject to the following conditions:
11 
12  The above copyright notice and this permission notice shall be included in
13  all copies or substantial portions of the Software.
14 
15  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21  DEALINGS IN THE SOFTWARE.
22 */
23 
25 namespace WebDavHandler {
28 
29 public:
31  abstract auto get(string resource, string ns = DavNs, list<string> prop_names);
32 
34  abstract auto get(string resource, string ns = DavNs, string prop_name);
35 
37 
39  abstract *hash<string, hash<auto>> getAll(string resource);
40 
42 
44  abstract *hash<auto> getAllInNamespace(string resource, string ns);
45 
47  abstract set(string resource, string ns = DavNs, string prop_name, auto value);
48 
50  abstract del(string resource, string ns = DavNs, list<string> prop_names);
51 
53  abstract del(string resource, string ns = DavNs, string prop_name);
54 
56  abstract delAll(string resource);
57 
59  abstract cp(string src_url, string target_url);
60 
62  abstract move(string src_url, string target_url);
63 };
64 };
65 
The abstract WebDavHandler property handler class interface.
Definition: AbstractWebDavPropertyHandler.qc.dox.h:27
abstract cp(string src_url, string target_url)
Copies all properties to another target URL.
abstract move(string src_url, string target_url)
Moves properties from one target URL to another.
abstract delAll(string resource)
Deletes all properties for the given resource.
abstract del(string resource, string ns=DavNs, list< string > prop_names)
Deletes one or more properties.
abstract del(string resource, string ns=DavNs, string prop_name)
Deletes a property.
abstract set(string resource, string ns=DavNs, string prop_name, auto value)
Sets a property value.
abstract *hash< auto > getAllInNamespace(string resource, string ns)
Returns all properties in the given namespaces.
abstract *hash< string, hash< auto > > getAll(string resource)
Returns all properties in all namespaces.
abstract auto get(string resource, string ns=DavNs, list< string > prop_names)
Retrieves the value(s) of the given properties in the given namespace.
abstract auto get(string resource, string ns=DavNs, string prop_name)
Retrieves the value(s) of the given properties in the given namespace.
Main public WebDavHandler namespace.
Definition: AbstractWebDavHandler.qc.dox.h:26
const DavNs
WebDavHandler namespace value.
Definition: WebDavHandler.qm.dox.h:116
string ns
Namespace.
Definition: AbstractWebDavHandler.qc.dox.h:32