public class LdapRepositoryConfigurationMigrator extends Object implements RepositoryConfigurationMigrator
Modifier and Type | Field and Description |
---|---|
static String |
LDAP_DIRECTORY_DESC |
static String |
LDAP_DIRECTORY_NAME |
static org.slf4j.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 |
---|---|
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.
|
void |
migrate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
Migrate the passed in configuration.
|
List<String> |
validate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
Validates that the passed in configuration can be migrated.
|
public static final org.slf4j.Logger log
public static final String LDAP_DIRECTORY_NAME
public static final String LDAP_DIRECTORY_DESC
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 void migrate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
RepositoryConfigurationMigrator
CrowdDirectoryService.addDirectory(com.atlassian.crowd.embedded.api.Directory)
.migrate
in interface RepositoryConfigurationMigrator
repositoryConfiguration
- the configuration to migrateCopyright © 2003–2016 Atlassian. All rights reserved.