com.atlassian.confluence.user.migration
Class LdapRepositoryConfigurationMigrator
java.lang.Object
com.atlassian.confluence.user.migration.LdapRepositoryConfigurationMigrator
- All Implemented Interfaces:
- RepositoryConfigurationMigrator
public class LdapRepositoryConfigurationMigrator
- extends java.lang.Object
- implements RepositoryConfigurationMigrator
Migrator for LDAP atlassian-user repository configuration.
Constructor Summary |
LdapRepositoryConfigurationMigrator(com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService,
com.atlassian.crowd.directory.ldap.util.LDAPPropertiesHelper ldapPropertiesHelper)
|
Method Summary |
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. |
java.util.List<java.lang.String> |
validate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
Validates that the passed in configuration can be migrated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final org.slf4j.Logger log
LDAP_DIRECTORY_NAME
public static final java.lang.String LDAP_DIRECTORY_NAME
- See Also:
- Constant Field Values
LDAP_DIRECTORY_DESC
public static final java.lang.String LDAP_DIRECTORY_DESC
- See Also:
- Constant Field Values
LdapRepositoryConfigurationMigrator
public LdapRepositoryConfigurationMigrator(com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService,
com.atlassian.crowd.directory.ldap.util.LDAPPropertiesHelper ldapPropertiesHelper)
matches
public boolean matches(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
- Description copied from interface:
RepositoryConfigurationMigrator
- Return true if this migrator is able to migrate the configuration supplied by the passed in configuration.
- Specified by:
matches
in interface RepositoryConfigurationMigrator
- Parameters:
repositoryConfiguration
- the configuration to migrate
- Returns:
- true if this migrator can migrate the configuration
validate
public java.util.List<java.lang.String> validate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
- Description copied from interface:
RepositoryConfigurationMigrator
- Validates that the passed in configuration can be migrated.
- Specified by:
validate
in interface RepositoryConfigurationMigrator
- Parameters:
repositoryConfiguration
- the configuration to validate
- Returns:
- A list of all the validation errors detected in the given repository configuration
migrate
public void migrate(com.atlassian.user.configuration.RepositoryConfiguration repositoryConfiguration)
- Description copied from interface:
RepositoryConfigurationMigrator
- Migrate the passed in configuration. In most cases this will result in a new directory being created
by calling
CrowdDirectoryService.addDirectory(com.atlassian.crowd.embedded.api.Directory)
.
- Specified by:
migrate
in interface RepositoryConfigurationMigrator
- Parameters:
repositoryConfiguration
- the configuration to migrate
Copyright © 2003-2013 Atlassian. All Rights Reserved.