public class MigrationManager extends BaseManager
| Constructor and Description |
|---|
MigrationManager() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.Long> |
migrateServers(User user,
Org toOrg,
java.util.List<Server> servers)
Migrate a set of servers to the organization specified
|
static void |
moveServerToOrg(Org toOrg,
Server server)
Move the server to the destination org.
|
static void |
removeOrgRelationships(User user,
Server server)
Remove a server's relationships with it's current org.
|
static void |
updateAdminRelationships(Org fromOrg,
Org toOrg,
Server server)
Update the org admin to server relationships in the originating and destination
orgs.
|
makeDataResult, makeDataResult, makeDataResult, makeDataResult, makeDataResultNoPagination, makeDataResultNoPagination, processListControl, processPageControlpublic static java.util.List<java.lang.Long> migrateServers(User user, Org toOrg, java.util.List<Server> servers)
user - Org admin that is performing the migrationtoOrg - The destination orgservers - List of servers to be migratedpublic static void removeOrgRelationships(User user, Server server)
user - Org admin performing the migration.server - Server to be migrated.public static void updateAdminRelationships(Org fromOrg, Org toOrg, Server server)
fromOrg - originating org where the server currently existstoOrg - destination org where the server will be migrated toserver - Server to be migrated.