Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-04-05 00:15:00 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-04-13 15:06:29 +0300
commit781784553889601d02553931aed8ff1fde95640b (patch)
tree21dd1b23c192d23be1ab1f468ff77165b7591172 /apps/dav/lib/Files/LazySearchBackend.php
parentcd95fce105fe5f0e71b1bcac7685464f936b9749 (diff)
Add a metadata service to store file metadata
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/dav/lib/Files/LazySearchBackend.php')
-rw-r--r--apps/dav/lib/Files/LazySearchBackend.php24
1 files changed, 14 insertions, 10 deletions
diff --git a/apps/dav/lib/Files/LazySearchBackend.php b/apps/dav/lib/Files/LazySearchBackend.php
index d84c11306e3..c3b2f27d72a 100644
--- a/apps/dav/lib/Files/LazySearchBackend.php
+++ b/apps/dav/lib/Files/LazySearchBackend.php
@@ -22,6 +22,7 @@
*/
namespace OCA\DAV\Files;
+use Sabre\DAV\INode;
use SearchDAV\Backend\ISearchBackend;
use SearchDAV\Query\Query;
@@ -35,7 +36,7 @@ class LazySearchBackend implements ISearchBackend {
$this->backend = $backend;
}
- public function getArbiterPath() {
+ public function getArbiterPath(): string {
if ($this->backend) {
return $this->backend->getArbiterPath();
} else {
@@ -43,27 +44,30 @@ class LazySearchBackend implements ISearchBackend {
}
}
- public function isValidScope($href, $depth, $path) {
+ public function isValidScope(string $href, $depth, ?string $path): bool {
if ($this->backend) {
return $this->backend->getArbiterPath();
- } else {
- return false;
}
+ return false;
}
- public function getPropertyDefinitionsForScope($href, $path) {
+ public function getPropertyDefinitionsForScope(string $href, ?String $path): array {
if ($this->backend) {
return $this->backend->getPropertyDefinitionsForScope($href, $path);
- } else {
- return [];
}
+ return [];
}
- public function search(Query $query) {
+ public function search(Query $query): array {
if ($this->backend) {
return $this->backend->search($query);
- } else {
- return [];
+ }
+ return [];
+ }
+
+ public function preloadPropertyFor(array $nodes, array $requestProperties): void {
+ if ($this->backend) {
+ $this->backend->preloadPropertyFor($nodes, $requestProperties);
}
}
}