diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-10 11:51:20 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-14 14:34:14 +0100 |
commit | b4b9e8adf7106dda846c21b62eba2ba24640e3a5 (patch) | |
tree | be368165a1a1764d989dca0b07771137e3f1adf3 /lib | |
parent | 5534f70c5ddfd83cef78cb95d5b66ae078b472b6 (diff) | |
download | nextcloud-server-b4b9e8adf7106dda846c21b62eba2ba24640e3a5.tar.gz nextcloud-server-b4b9e8adf7106dda846c21b62eba2ba24640e3a5.zip |
Add getOriginalUid in IImportSource to simplify code when importing under another uid
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/UserMigration/IImportSource.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/UserMigration/IImportSource.php b/lib/public/UserMigration/IImportSource.php index 17ad4c9f12f..81fa1c0a3d1 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 @@ -97,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 |