summaryrefslogtreecommitdiffstats
path: root/lib/public/Files
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-06-28 07:53:35 +0200
committerGitHub <noreply@github.com>2023-06-28 07:53:35 +0200
commiteddb64f8c34b657fae915a4dd2c997123774a422 (patch)
treee3bb9c9f27a388dc18ea3efe6b8e1ac06d07b0c0 /lib/public/Files
parent918aacdf1a71dcee42e73a0da09e5925769ae99e (diff)
parentd9487103c9cddff80eba8f3a34dda1cc8243734c (diff)
downloadnextcloud-server-eddb64f8c34b657fae915a4dd2c997123774a422.tar.gz
nextcloud-server-eddb64f8c34b657fae915a4dd2c997123774a422.zip
Merge pull request #37969 from nextcloud/poc/noid/systemtags-perf-tag-endpoint
Diffstat (limited to 'lib/public/Files')
-rw-r--r--lib/public/Files/Folder.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/Files/Folder.php b/lib/public/Files/Folder.php
index 912c5472fac..eb81a2098ec 100644
--- a/lib/public/Files/Folder.php
+++ b/lib/public/Files/Folder.php
@@ -142,6 +142,16 @@ interface Folder extends Node {
public function searchByTag($tag, $userId);
/**
+ * search for files by system tag
+ *
+ * @param string|int $tag tag name
+ * @param string $userId user id to ensure access on returned nodes
+ * @return \OCP\Files\Node[]
+ * @since 28.0.0
+ */
+ public function searchBySystemTag(string $tagName, string $userId, int $limit = 0, int $offset = 0);
+
+ /**
* get a file or folder inside the folder by it's internal id
*
* This method could return multiple entries. For example once the file/folder