Class DefaultMigrationManager

java.lang.Object
org.keycloak.storage.datastore.DefaultMigrationManager
All Implemented Interfaces:
MigrationManager

public class DefaultMigrationManager extends Object implements MigrationManager
This wraps the functionality for migrations of the storage.
Author:
Alexander Schwartz
  • Field Details

    • RHSSO_VERSION_7_0_KEYCLOAK_VERSION

      public static final ModelVersion RHSSO_VERSION_7_0_KEYCLOAK_VERSION
    • RHSSO_VERSION_7_1_KEYCLOAK_VERSION

      public static final ModelVersion RHSSO_VERSION_7_1_KEYCLOAK_VERSION
    • RHSSO_VERSION_7_2_KEYCLOAK_VERSION

      public static final ModelVersion RHSSO_VERSION_7_2_KEYCLOAK_VERSION
    • RHSSO_VERSION_7_3_KEYCLOAK_VERSION

      public static final ModelVersion RHSSO_VERSION_7_3_KEYCLOAK_VERSION
    • RHSSO_VERSION_7_4_KEYCLOAK_VERSION

      public static final ModelVersion RHSSO_VERSION_7_4_KEYCLOAK_VERSION
    • SNAPSHOT_VERSION

      public static final ModelVersion SNAPSHOT_VERSION
  • Constructor Details

    • DefaultMigrationManager

      public DefaultMigrationManager(KeycloakSession session, boolean allowMigrateExistingDatabaseToSnapshot)
  • Method Details

    • migrate

      public void migrate()
      Specified by:
      migrate in interface MigrationManager
    • migrate

      public void migrate(RealmModel realm, org.keycloak.representations.idm.RealmRepresentation rep, boolean skipUserDependent)
      Specified by:
      migrate in interface MigrationManager
    • convertRHSSOVersionToKeycloakVersion

      public static ModelVersion convertRHSSOVersionToKeycloakVersion(String version)
    • getModelVersionFromRep

      public static ModelVersion getModelVersionFromRep(org.keycloak.representations.idm.RealmRepresentation rep)