Package org.keycloak.storage.datastore
Class DefaultMigrationManager
java.lang.Object
org.keycloak.storage.datastore.DefaultMigrationManager
- All Implemented Interfaces:
MigrationManager
This wraps the functionality for migrations of the storage.
- Author:
- Alexander Schwartz
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ModelVersionstatic final ModelVersionstatic final ModelVersionstatic final ModelVersionstatic final ModelVersionstatic final ModelVersion -
Constructor Summary
ConstructorsConstructorDescriptionDefaultMigrationManager(KeycloakSession session, boolean allowMigrateExistingDatabaseToSnapshot) -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelVersionstatic ModelVersiongetModelVersionFromRep(org.keycloak.representations.idm.RealmRepresentation rep) voidmigrate()voidmigrate(RealmModel realm, org.keycloak.representations.idm.RealmRepresentation rep, boolean skipUserDependent)
-
Field Details
-
RHSSO_VERSION_7_0_KEYCLOAK_VERSION
-
RHSSO_VERSION_7_1_KEYCLOAK_VERSION
-
RHSSO_VERSION_7_2_KEYCLOAK_VERSION
-
RHSSO_VERSION_7_3_KEYCLOAK_VERSION
-
RHSSO_VERSION_7_4_KEYCLOAK_VERSION
-
SNAPSHOT_VERSION
-
-
Constructor Details
-
DefaultMigrationManager
public DefaultMigrationManager(KeycloakSession session, boolean allowMigrateExistingDatabaseToSnapshot)
-
-
Method Details
-
migrate
public void migrate()- Specified by:
migratein interfaceMigrationManager
-
migrate
public void migrate(RealmModel realm, org.keycloak.representations.idm.RealmRepresentation rep, boolean skipUserDependent) - Specified by:
migratein interfaceMigrationManager
-
convertRHSSOVersionToKeycloakVersion
-
getModelVersionFromRep
public static ModelVersion getModelVersionFromRep(org.keycloak.representations.idm.RealmRepresentation rep)
-