com.atlassian.confluence.user.migration
Class HibernateRepositoryConfigurationMigrator

java.lang.Object
  extended by com.atlassian.confluence.user.migration.HibernateRepositoryConfigurationMigrator
All Implemented Interfaces:
RepositoryConfigurationMigrator

public class HibernateRepositoryConfigurationMigrator
extends Object
implements RepositoryConfigurationMigrator

Migrator for the default hibernate atlassian-user repository configuration. Creates an active internal directory for the hibernate repository.


Constructor Summary
HibernateRepositoryConfigurationMigrator(EmbeddedCrowdBootstrap embeddedCrowdBootstrap)
           
 
Method Summary
 boolean matches(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
          Return true if this migrator is able to migrate the configuration supplied by the passed in configuration.
 void migrate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
          Migrate the passed in configuration.
 List<String> validate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
          Validates that the passed in configuration can be migrated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateRepositoryConfigurationMigrator

public HibernateRepositoryConfigurationMigrator(EmbeddedCrowdBootstrap embeddedCrowdBootstrap)
Method Detail

matches

public boolean matches(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
Description copied from interface: RepositoryConfigurationMigrator
Return true if this migrator is able to migrate the configuration supplied by the passed in configuration.

Specified by:
matches in interface RepositoryConfigurationMigrator
Parameters:
repositoryConfiguration - the configuration to migrate
Returns:
true if this migrator can migrate the configuration

validate

public List<String> validate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
Description copied from interface: RepositoryConfigurationMigrator
Validates that the passed in configuration can be migrated.

Specified by:
validate in interface RepositoryConfigurationMigrator
Parameters:
repositoryConfiguration - the configuration to validate
Returns:
A list of all the validation errors detected in the given repository configuration

migrate

public void migrate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
Description copied from interface: RepositoryConfigurationMigrator
Migrate the passed in configuration. In most cases this will result in a new directory being created by calling CrowdDirectoryService.addDirectory(com.atlassian.crowd.embedded.api.Directory).

Specified by:
migrate in interface RepositoryConfigurationMigrator
Parameters:
repositoryConfiguration - the configuration to migrate


Copyright © 2003-2012 Atlassian. All Rights Reserved.