public class HibernateRepositoryConfigurationMigrator extends Object implements RepositoryConfigurationMigrator
Constructor and Description |
---|
HibernateRepositoryConfigurationMigrator(com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService,
EmbeddedCrowdBootstrap embeddedCrowdBootstrap,
boolean shouldCreateInternalDirectory) |
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.
|
@Nullable 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 HibernateRepositoryConfigurationMigrator(com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService, EmbeddedCrowdBootstrap embeddedCrowdBootstrap, boolean shouldCreateInternalDirectory)
public boolean matches(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
RepositoryConfigurationMigrator
matches
in interface RepositoryConfigurationMigrator
repositoryConfiguration
- the configuration to migratepublic List<String> validate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
RepositoryConfigurationMigrator
validate
in interface RepositoryConfigurationMigrator
repositoryConfiguration
- the configuration to validate@Nullable public @Nullable Pair<com.atlassian.crowd.embedded.api.Directory,RepositoryConfigurationMigrator> migrateAndTestConnection(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
RepositoryConfigurationMigrator
migrateAndTestConnection
in interface RepositoryConfigurationMigrator
repositoryConfiguration
- the configuration to migratepublic 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
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.