public class CrowdRepositoryConfigurationMigrator extends Object implements RepositoryConfigurationMigrator
| Modifier and Type | Field and Description |
|---|---|
static String |
CROWD_DIRECTORY_DESC_I18N_KEY |
| Constructor and Description |
|---|
CrowdRepositoryConfigurationMigrator(com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService,
I18NBeanFactory i18NBeanFactory)
Standard constructor
|
| 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.
|
List<String> |
validate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
Validates that the passed in configuration can be migrated.
|
public static final String CROWD_DIRECTORY_DESC_I18N_KEY
public CrowdRepositoryConfigurationMigrator(com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService,
I18NBeanFactory i18NBeanFactory)
crowdDirectoryService - the service to add new crowd directories topublic List<String> validate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration) throws AtlassianUserMigrationException
RepositoryConfigurationMigratorvalidate in interface RepositoryConfigurationMigratorrepositoryConfiguration - 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
RepositoryConfigurationMigratorCrowdDirectoryService.addDirectory(com.atlassian.crowd.embedded.api.Directory).migrate in interface RepositoryConfigurationMigratorrepositoryConfiguration - 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)
RepositoryConfigurationMigratormatches in interface RepositoryConfigurationMigratorrepositoryConfiguration - the configuration to migrateCopyright © 2003–2016 Atlassian. All rights reserved.