Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/UserMigration/IImportSource.php')
-rw-r--r--lib/public/UserMigration/IImportSource.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/public/UserMigration/IImportSource.php b/lib/public/UserMigration/IImportSource.php
index df91c0e71ab..d34f2752549 100644
--- a/lib/public/UserMigration/IImportSource.php
+++ b/lib/public/UserMigration/IImportSource.php
@@ -32,6 +32,7 @@ use OCP\Files\Folder;
* @since 24.0.0
*/
interface IImportSource {
+ public const PATH_USER = 'user.json';
/**
* Reads a file from the export
@@ -64,6 +65,13 @@ interface IImportSource {
public function getFolderListing(string $path): array;
/**
+ * Test if a path exists, which may be a file or a folder
+ *
+ * @since 24.0.0
+ */
+ public function pathExists(string $path): bool;
+
+ /**
* Copy files from the export to a Folder
*
* Folder $destination folder to copy into
@@ -90,6 +98,13 @@ interface IImportSource {
public function getMigratorVersion(string $migrator): ?int;
/**
+ * Get original uid of the imported account
+ *
+ * @since 24.0.0
+ */
+ public function getOriginalUid(): string;
+
+ /**
* Called after import is complete
*
* @since 24.0.0