public class CrowdRepositoryConfigurationMigrator extends Object implements RepositoryConfigurationMigrator
| Modifier and Type | Field and Description |
|---|---|
static String |
CROWD_BASE_URL |
static String |
CROWD_SERVER_URL |
| Constructor and Description |
|---|
CrowdRepositoryConfigurationMigrator(com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService,
CrowdPropertiesPersister crowdPropertiesPersister)
Standard constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getValidatedBaseUrlProperty(Properties props) |
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.
|
Pair<com.atlassian.crowd.embedded.api.Directory,RepositoryConfigurationMigrator> |
migrateAndTestConnection(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
Migrate the passed in configuration without saving.
|
com.atlassian.crowd.embedded.api.Directory |
persistMigratedConfiguration(com.atlassian.crowd.embedded.api.Directory directory)
Persist migrated configuration.
|
List<String> |
validate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
Validates that the passed in configuration can be migrated.
|
public static final String CROWD_BASE_URL
public static final String CROWD_SERVER_URL
public CrowdRepositoryConfigurationMigrator(com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService,
CrowdPropertiesPersister crowdPropertiesPersister)
crowdDirectoryService - the service to add new crowd directories topublic List<String> validate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
RepositoryConfigurationMigratorvalidate in interface RepositoryConfigurationMigratorrepositoryConfiguration - the configuration to validatepublic Pair<com.atlassian.crowd.embedded.api.Directory,RepositoryConfigurationMigrator> migrateAndTestConnection(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration) throws AtlassianUserMigrationException
RepositoryConfigurationMigratormigrateAndTestConnection in interface RepositoryConfigurationMigratorrepositoryConfiguration - the configuration to migrateAtlassianUserMigrationException - if the repository configuration is unable to be upgraded due to being incomplete or malformedpublic com.atlassian.crowd.embedded.api.Directory persistMigratedConfiguration(com.atlassian.crowd.embedded.api.Directory directory)
RepositoryConfigurationMigratorCrowdDirectoryService.addDirectory(com.atlassian.crowd.embedded.api.Directory).persistMigratedConfiguration in interface RepositoryConfigurationMigratorprotected String getValidatedBaseUrlProperty(Properties props) throws AtlassianUserMigrationException
AtlassianUserMigrationExceptionpublic boolean matches(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
RepositoryConfigurationMigratormatches in interface RepositoryConfigurationMigratorrepositoryConfiguration - the configuration to migrateCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.