com.atlassian.confluence.user.migration
Interface RepositoryConfigurationMigrator

All Known Implementing Classes:
CrowdRepositoryConfigurationMigrator, HibernateRepositoryConfigurationMigrator, LdapRepositoryConfigurationMigrator

public interface RepositoryConfigurationMigrator

Interface to logic that can create an embedded crowd directory from an Atlassian User repository configuration.


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.
 

Method Detail

migrate

void migrate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
             throws AtlassianUserMigrationException
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).

Parameters:
repositoryConfiguration - the configuration to migrate
Throws:
AtlassianUserMigrationException - if the repository configuration is unable to be upgraded due to being incomplete or malformed

matches

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.

Parameters:
repositoryConfiguration - the configuriation to migrate
Returns:
true if this migrator can migrate the configuration


Copyright © 2003-2011 Atlassian. All Rights Reserved.