aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Comments
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-10-21 09:16:42 +0200
committerJoas Schilling <coding@schilljs.com>2020-10-21 09:16:42 +0200
commit89651c5233e4e5e71213f7c05c1d94e23937e171 (patch)
tree1d2f45982c230df56f30307393a366b9c72283b6 /lib/public/Comments
parent326640462b7d04f6bbbc57858e8f978c9c46afcc (diff)
downloadnextcloud-server-89651c5233e4e5e71213f7c05c1d94e23937e171.tar.gz
nextcloud-server-89651c5233e4e5e71213f7c05c1d94e23937e171.zip
Allow to search on multiple objects with one query
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Comments')
-rw-r--r--lib/public/Comments/ICommentsManager.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/public/Comments/ICommentsManager.php b/lib/public/Comments/ICommentsManager.php
index 6e867e2f17e..cfdf3d7fdb7 100644
--- a/lib/public/Comments/ICommentsManager.php
+++ b/lib/public/Comments/ICommentsManager.php
@@ -156,6 +156,19 @@ interface ICommentsManager {
public function search(string $search, string $objectType, string $objectId, string $verb, int $offset, int $limit = 50): array;
/**
+ * Search for comments on one or more objects with a given content
+ *
+ * @param string $search content to search for
+ * @param string $objectType Limit the search by object type
+ * @param array $objectIds Limit the search by object ids
+ * @param string $verb Limit the verb of the comment
+ * @param int $offset
+ * @param int $limit
+ * @return IComment[]
+ */
+ public function searchForObjects(string $search, string $objectType, array $objectIds, string $verb, int $offset, int $limit = 50): array;
+
+ /**
* @param $objectType string the object type, e.g. 'files'
* @param $objectId string the id of the object
* @param \DateTime|null $notOlderThan optional, timestamp of the oldest comments