1 package com.atlassian.user.util.migration;
2
3 import com.atlassian.user.EntityException;
4
5 public interface EntityMigrator
6 {
7
8 /**
9 * Migrates users from one repository to another. You can configure this migration by specifying a config.
10 */
11 void migrate(MigratorConfiguration config, MigrationProgressListener progressListener) throws EntityException;
12
13 /**
14 * Returns true if there are existing users in the destination repository, otherwise false.
15 */
16 boolean hasExistingUsers();
17 }