Côme Chilliet
fa041dabf4
Add the ISizeEstimationMigrator interface for method getExportEstimatedSize
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Côme Chilliet
09917b8583
Implement getExportEstimatedSize in migrators
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Côme Chilliet
f20b7e5764
Add a method to get estimated export size in IMigrator
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Vincent Petry
78c8e57896
Fix migrators according to exceptions
Fixed syntax errors.
Removed if condition for copyToFolder since it's void now.
Change signature of setMigratorVersions to also be void.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2 years ago
Côme Chilliet
a77ffe8593
Adapt user_migration APIs to have information about failures
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Côme Chilliet
dda51d49d7
Use Migrators id instead of class names
This will help with UI and means migrators can move in namespaces
without changing export format.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Christopher Ng
2273ddc873
Extend migrator interface
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
Côme Chilliet
1973b2fb75
Fix autoloader and phpdoc for new class
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Côme Chilliet
b63d22b6ea
Improve wording of pathExists description
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
Côme Chilliet
b4b9e8adf7
Add getOriginalUid in IImportSource to simplify code when importing under another uid
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Côme Chilliet
5534f70c5d
Add pathExists method to IImportSource to test if a path exists in the archive
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Côme Chilliet
d8b2d32a5e
Move UserMigrationException to OCP and add @throws documentation
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Christopher Ng
321e1cdce3
Extend ImportSource interface to list files of a folder
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
Côme Chilliet
07940f9d05
Please drone checkers
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Côme Chilliet
885b7904a2
Avoid passing both $importSource and $version while version comes from source
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Côme Chilliet
67fb1b92d6
Improve version handling for user_migration
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Côme Chilliet
b06a622a60
Add version handling to IMigrator
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Christopher Ng
21f9e85e1a
Extend export destination interface
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago
Christopher Ng
e3244361ba
Allow registration of migrators
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years ago