WIP: enh(import): import deck json exports

Signed-off-by: Max <max@nextcloud.com>
This commit is contained in:
Max
2023-07-12 13:03:17 +02:00
committed by Julius Härtl
parent 724a12c71f
commit 507510f60b
4 changed files with 273 additions and 2 deletions

View File

@@ -42,6 +42,7 @@ use OCA\Deck\NotFoundException;
use OCA\Deck\Service\FileService;
use OCA\Deck\Service\Importer\Systems\TrelloApiService;
use OCA\Deck\Service\Importer\Systems\TrelloJsonService;
use OCA\Deck\Service\Importer\Systems\DeckJsonService;
use OCP\Comments\IComment;
use OCP\Comments\ICommentsManager;
use OCP\Comments\NotFoundException as CommentNotFoundException;
@@ -174,6 +175,11 @@ class BoardImportService {
'class' => TrelloJsonService::class,
'internalName' => 'TrelloJson'
]);
$this->addAllowedImportSystem([
'name' => DeckJsonService::$name,
'class' => DeckJsonService::class,
'internalName' => 'DeckJson'
]);
}
$this->eventDispatcher->dispatchTyped(new BoardImportGetAllowedEvent($this));
return $this->allowedSystems;