diff options
author | Julius Härtl <jus@bitgrid.net> | 2023-06-28 07:53:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 07:53:35 +0200 |
commit | eddb64f8c34b657fae915a4dd2c997123774a422 (patch) | |
tree | e3bb9c9f27a388dc18ea3efe6b8e1ac06d07b0c0 /lib/private/Files/Node | |
parent | 918aacdf1a71dcee42e73a0da09e5925769ae99e (diff) | |
parent | d9487103c9cddff80eba8f3a34dda1cc8243734c (diff) | |
download | nextcloud-server-eddb64f8c34b657fae915a4dd2c997123774a422.tar.gz nextcloud-server-eddb64f8c34b657fae915a4dd2c997123774a422.zip |
Merge pull request #37969 from nextcloud/poc/noid/systemtags-perf-tag-endpoint
Diffstat (limited to 'lib/private/Files/Node')
-rw-r--r-- | lib/private/Files/Node/Folder.php | 5 | ||||
-rw-r--r-- | lib/private/Files/Node/LazyFolder.php | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/Files/Node/Folder.php b/lib/private/Files/Node/Folder.php index 6a009bded96..3622f336047 100644 --- a/lib/private/Files/Node/Folder.php +++ b/lib/private/Files/Node/Folder.php @@ -300,6 +300,11 @@ class Folder extends Node implements \OCP\Files\Folder { return $this->search($query); } + public function searchBySystemTag(string $tagName, string $userId, int $limit = 0, int $offset = 0): array { + $query = $this->queryFromOperator(new SearchComparison(ISearchComparison::COMPARE_EQUAL, 'systemtag', $tagName), $userId, $limit, $offset); + return $this->search($query); + } + /** * @param int $id * @return \OC\Files\Node\Node[] diff --git a/lib/private/Files/Node/LazyFolder.php b/lib/private/Files/Node/LazyFolder.php index 9f9528f69bd..d495d6f4c57 100644 --- a/lib/private/Files/Node/LazyFolder.php +++ b/lib/private/Files/Node/LazyFolder.php @@ -449,6 +449,10 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } + public function searchBySystemTag(string $tagName, string $userId, int $limit = 0, int $offset = 0) { + return $this->__call(__FUNCTION__, func_get_args()); + } + /** * @inheritDoc */ |