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)
RepositoryConfigurationMigrator
validate
in interface RepositoryConfigurationMigrator
repositoryConfiguration
- the configuration to validatepublic Pair<com.atlassian.crowd.embedded.api.Directory,RepositoryConfigurationMigrator> migrateAndTestConnection(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration) throws AtlassianUserMigrationException
RepositoryConfigurationMigrator
migrateAndTestConnection
in interface RepositoryConfigurationMigrator
repositoryConfiguration
- 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)
RepositoryConfigurationMigrator
CrowdDirectoryService.addDirectory(com.atlassian.crowd.embedded.api.Directory)
.persistMigratedConfiguration
in interface RepositoryConfigurationMigrator
protected String getValidatedBaseUrlProperty(Properties props) throws AtlassianUserMigrationException
AtlassianUserMigrationException
public boolean matches(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
RepositoryConfigurationMigrator
matches
in interface RepositoryConfigurationMigrator
repositoryConfiguration
- the configuration to migrateCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences