Class MapExportImportManager
java.lang.Object
org.keycloak.models.map.datastore.MapExportImportManager
- All Implemented Interfaces:
ExportImportManager
This wraps the functionality about export/import for legacy storage.
Currently, this only removes the user-storage and federation code from LegacyExportImportManager.
In the future, this needs to be rewritten completely.
- Author:
- Alexander Schwartz, Hynek Mlnarik
-
Constructor Summary
ConstructorsConstructorDescriptionMapExportImportManager(KeycloakSession session) MapExportImportManager(KeycloakSession session, boolean useNewImportMethod) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddQueryCompositeRoles(ClientModel realmAccess) protected static voidclearExistingComponents(RealmModel newRealm, MultivaluedHashMap<String, ComponentExportRepresentation> components) static voidstatic voidcreateClientScopeMappings(RealmModel realm, ClientModel clientModel, List<ScopeMappingRepresentation> mappings) createUser(RealmModel newRealm, UserRepresentation userRep) voidexportRealm(RealmModel realm, ExportOptions options, ExportAdapter callback) static longimportAuthenticationFlows(KeycloakSession session, RealmModel newRealm, RealmRepresentation rep) protected static voidimportComponents(RealmModel newRealm, MultivaluedHashMap<String, ComponentExportRepresentation> components, String parentId) static voidimportGroups(RealmModel realm, RealmRepresentation rep) importRealm(InputStream requestBody) voidimportRealm(RealmRepresentation rep, RealmModel newRealm, boolean skipUserDependent) static voidimportRealmAuthorizationSettings(RealmRepresentation rep, RealmModel newRealm, KeycloakSession session) partialImportRealm(RealmModel realm, InputStream requestBody) static voidrenameRealm(RealmModel realm, String name) voidstatic RequiredActionProviderModelstatic OTPPolicyvoidupdateRealm(RealmRepresentation rep, RealmModel realm)
-
Constructor Details
-
MapExportImportManager
-
MapExportImportManager
-
-
Method Details
-
importRealm
- Specified by:
importRealmin interfaceExportImportManager
-
exportRealm
- Specified by:
exportRealmin interfaceExportImportManager
-
importRealm
- Specified by:
importRealmin interfaceExportImportManager
-
partialImportRealm
- Specified by:
partialImportRealmin interfaceExportImportManager
-
clearExistingComponents
protected static void clearExistingComponents(RealmModel newRealm, MultivaluedHashMap<String, ComponentExportRepresentation> components) -
setupMasterAdminManagement
-
addQueryCompositeRoles
-
getClaimsMask
-
createClientScopeMappings
public static void createClientScopeMappings(RealmModel realm, ClientModel clientModel, List<ScopeMappingRepresentation> mappings) -
renameRealm
-
updateRealm
- Specified by:
updateRealmin interfaceExportImportManager
-
createUser
- Specified by:
createUserin interfaceExportImportManager
-
convertDeprecatedSocialProviders
-
importComponents
protected static void importComponents(RealmModel newRealm, MultivaluedHashMap<String, ComponentExportRepresentation> components, String parentId) -
importGroups
-
importAuthenticationFlows
public static Map<String,String> importAuthenticationFlows(KeycloakSession session, RealmModel newRealm, RealmRepresentation rep) -
toPolicy
-
toModel
-
importRealmAuthorizationSettings
public static void importRealmAuthorizationSettings(RealmRepresentation rep, RealmModel newRealm, KeycloakSession session)
-