com.atlassian.crowd.migration.legacy.database
Class DatabaseMigrationManager

java.lang.Object
  extended by com.atlassian.crowd.migration.legacy.database.DatabaseMigrationManager

public class DatabaseMigrationManager
extends Object


Constructor Summary
DatabaseMigrationManager(DatabaseMigrator legacyDatabaseMigrator, com.atlassian.config.ApplicationConfig applicationConfig, DatabaseVerificationManager verificationManager, SystemInfoHelper systemInfoHelper)
           
 
Method Summary
 Collection<String> doDatabaseMigration()
           
 boolean isLegacyCrowd()
           
 Collection<String> verifyDatabaseIsSafeToMigrate()
          Will validate if we are safe to upgrade or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseMigrationManager

public DatabaseMigrationManager(DatabaseMigrator legacyDatabaseMigrator,
                                com.atlassian.config.ApplicationConfig applicationConfig,
                                DatabaseVerificationManager verificationManager,
                                SystemInfoHelper systemInfoHelper)
Method Detail

doDatabaseMigration

public Collection<String> doDatabaseMigration()
                                       throws ImportException
Throws:
ImportException

verifyDatabaseIsSafeToMigrate

public Collection<String> verifyDatabaseIsSafeToMigrate()
Will validate if we are safe to upgrade or not. If we are not a non-empty Collection of errors will be returned

Returns:
An empty Collection of errors if everything is safe, or a collection of error strings if things are not safe.

isLegacyCrowd

public boolean isLegacyCrowd()


Copyright © 2013 Atlassian. All Rights Reserved.