aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/TaskProcessing
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2024-05-10 07:08:31 +0200
committerMarcel Klehr <mklehr@gmx.net>2024-05-14 11:38:41 +0200
commita8afa7f23d8bf0c1fdb1725669ff9d8d6b5ebebb (patch)
treebcd8ed95ef948cdcd9e5e99d6090ea4b27a891f8 /lib/public/TaskProcessing
parentf3a88f04ecb19da81cb53fb95f92a673a6892310 (diff)
downloadnextcloud-server-a8afa7f23d8bf0c1fdb1725669ff9d8d6b5ebebb.tar.gz
nextcloud-server-a8afa7f23d8bf0c1fdb1725669ff9d8d6b5ebebb.zip
fix(OCS-API): Add endpoint to list user tasks
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/public/TaskProcessing')
-rw-r--r--lib/public/TaskProcessing/IManager.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/TaskProcessing/IManager.php b/lib/public/TaskProcessing/IManager.php
index e1a5c16546c..1b8bbf5769a 100644
--- a/lib/public/TaskProcessing/IManager.php
+++ b/lib/public/TaskProcessing/IManager.php
@@ -136,6 +136,16 @@ interface IManager {
public function getUserTask(int $id, ?string $userId): Task;
/**
+ * @param string|null $userId The user id that scheduled the task
+ * @param string|null $taskTypeId The task type id to filter by
+ * @return list<Task>
+ * @throws Exception If the query failed
+ * @throws NotFoundException If the task could not be found
+ * @since 30.0.0
+ */
+ public function getUserTasks(?string $userId, ?string $taskTypeId = null, ?string $customId = null): array;
+
+ /**
* @param string|null $userId
* @param string $appId
* @param string|null $customId