public class

HibernateRepositoryConfigurationMigrator

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

Class Overview

Migrator for the default hibernate atlassian-user repository configuration. Creates an active internal directory for the hibernate repository.

Summary

Public Constructors
HibernateRepositoryConfigurationMigrator(EmbeddedCrowdBootstrap embeddedCrowdBootstrap)
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 HibernateRepositoryConfigurationMigrator (EmbeddedCrowdBootstrap embeddedCrowdBootstrap)

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