public class LdapRepositoryConfigurationMigrator extends Object implements RepositoryConfigurationMigrator
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log |
Constructor and Description |
---|
LdapRepositoryConfigurationMigrator(com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService,
com.atlassian.crowd.directory.ldap.util.LDAPPropertiesHelper ldapPropertiesHelper) |
Modifier and Type | Method and Description |
---|---|
protected String |
extractObjectClassOrCategory(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration,
String searchFilterComponent) |
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 LdapRepositoryConfigurationMigrator(com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService, com.atlassian.crowd.directory.ldap.util.LDAPPropertiesHelper ldapPropertiesHelper)
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 validatepublic 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 © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.