com.atlassian.confluence.user.migration
Class LdapRepositoryConfigurationMigrator

java.lang.Object
  extended by com.atlassian.confluence.user.migration.LdapRepositoryConfigurationMigrator
All Implemented Interfaces:
RepositoryConfigurationMigrator

public class LdapRepositoryConfigurationMigrator
extends Object
implements RepositoryConfigurationMigrator

Migrator for LDAP atlassian-user repository configuration.


Field Summary
static String LDAP_DIRECTORY_DESC
           
static String LDAP_DIRECTORY_NAME
           
static org.slf4j.Logger log
           
 
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.
 List<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
 

Field Detail

log

public static final org.slf4j.Logger log

LDAP_DIRECTORY_NAME

public static final String LDAP_DIRECTORY_NAME
See Also:
Constant Field Values

LDAP_DIRECTORY_DESC

public static final String LDAP_DIRECTORY_DESC
See Also:
Constant Field Values
Constructor Detail

LdapRepositoryConfigurationMigrator

public LdapRepositoryConfigurationMigrator(com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService,
                                           com.atlassian.crowd.directory.ldap.util.LDAPPropertiesHelper ldapPropertiesHelper)
Method Detail

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 List<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-2012 Atlassian. All Rights Reserved.