public class OSUserRepositoryConfigurationMigrator extends java.lang.Object implements RepositoryConfigurationMigrator
Constructor and Description |
---|
OSUserRepositoryConfigurationMigrator() |
Modifier and Type | Method and Description |
---|---|
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.
|
java.util.List<java.lang.String> |
validate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
Validates that the passed in configuration can be migrated.
|
public OSUserRepositoryConfigurationMigrator()
public java.util.List<java.lang.String> validate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration) throws AtlassianUserMigrationException
RepositoryConfigurationMigrator
validate
in interface RepositoryConfigurationMigrator
repositoryConfiguration
- the configuration to validateAtlassianUserMigrationException
- if the repository configuration is unable to be upgraded due to being incomplete or malformedpublic void migrate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration) throws AtlassianUserMigrationException
RepositoryConfigurationMigrator
CrowdDirectoryService.addDirectory(com.atlassian.crowd.embedded.api.Directory)
.migrate
in interface RepositoryConfigurationMigrator
repositoryConfiguration
- the configuration to migrateAtlassianUserMigrationException
- if the repository configuration is unable to be upgraded due to being incomplete or malformedpublic boolean matches(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
RepositoryConfigurationMigrator
matches
in interface RepositoryConfigurationMigrator
repositoryConfiguration
- the configuration to migrateCopyright © 2003-2014 Atlassian. All Rights Reserved.