public class

OSUserRepositoryConfigurationMigrator

extends Object
implements RepositoryConfigurationMigrator
java.lang.Object
   ↳ com.atlassian.confluence.user.migration.OSUserRepositoryConfigurationMigrator

Summary

Public Constructors
OSUserRepositoryConfigurationMigrator()
Public Methods
boolean matches(RepositoryConfiguration repositoryConfiguration)
Return true if this migrator is able to migrate the configuration supplied by the passed in configuration.
void migrate(RepositoryConfiguration repositoryConfiguration)
Migrate the passed in configuration.
List<String> validate(RepositoryConfiguration repositoryConfiguration)
Validates that the passed in configuration can be migrated.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.user.migration.RepositoryConfigurationMigrator

Public Constructors

public OSUserRepositoryConfigurationMigrator ()

Public Methods

public boolean matches (RepositoryConfiguration repositoryConfiguration)

Return true if this migrator is able to migrate the configuration supplied by the passed in configuration.

Parameters
repositoryConfiguration the configuration to migrate
Returns
  • true if this migrator can migrate the configuration

public void migrate (RepositoryConfiguration repositoryConfiguration)

Migrate the passed in configuration. In most cases this will result in a new directory being created by calling addDirectory(com.atlassian.crowd.embedded.api.Directory).

Parameters
repositoryConfiguration the configuration to migrate

public List<String> validate (RepositoryConfiguration repositoryConfiguration)

Validates that the passed in configuration can be migrated.

Parameters
repositoryConfiguration the configuration to validate
Returns
  • A list of all the validation errors detected in the given repository configuration