public interface RepositoryConfigurationMigrator
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.
|
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.
|
List<String> validate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
repositoryConfiguration
- the configuration to validateAtlassianUserMigrationException
- if the repository configuration is unable to be upgraded due to being incomplete or malformed@Nullable Pair<com.atlassian.crowd.embedded.api.Directory,RepositoryConfigurationMigrator> migrateAndTestConnection(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration) throws AtlassianUserMigrationException
repositoryConfiguration
- the configuration to migrateAtlassianUserMigrationException
- if the repository configuration is unable to be upgraded due to being incomplete or malformedcom.atlassian.crowd.embedded.api.Directory persistMigratedConfiguration(com.atlassian.crowd.embedded.api.Directory directory)
CrowdDirectoryService.addDirectory(com.atlassian.crowd.embedded.api.Directory)
.boolean matches(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
repositoryConfiguration
- the configuration to migrateCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.