123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <?php
- declare(strict_types=1);
- namespace OCP\TextProcessing;
- use OCP\Common\Exception\NotFoundException;
- use OCP\DB\Exception;
- use OCP\PreConditionNotMetException;
- use OCP\TextProcessing\Exception\TaskFailureException;
- use RuntimeException;
- interface IManager {
-
- public function hasProviders(): bool;
-
- public function getProviders(): array;
-
- public function getAvailableTaskTypes(): array;
-
- public function runTask(Task $task): string;
-
- public function scheduleTask(Task $task) : void;
-
- public function runOrScheduleTask(Task $task): bool;
-
- public function deleteTask(Task $task): void;
-
- public function getTask(int $id): Task;
-
- public function getUserTask(int $id, ?string $userId): Task;
-
- public function getUserTasksByApp(string $userId, string $appId, ?string $identifier = null): array;
- }
|