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
ConstructorDescriptionMapExportImportManager
(KeycloakSession session) MapExportImportManager
(KeycloakSession session, boolean useNewImportMethod) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addQueryCompositeRoles
(ClientModel realmAccess) protected static void
clearExistingComponents
(RealmModel newRealm, MultivaluedHashMap<String, ComponentExportRepresentation> components) static void
static void
createClientScopeMappings
(RealmModel realm, ClientModel clientModel, List<ScopeMappingRepresentation> mappings) createUser
(RealmModel newRealm, UserRepresentation userRep) void
exportRealm
(RealmModel realm, ExportOptions options, ExportAdapter callback) static long
importAuthenticationFlows
(KeycloakSession session, RealmModel newRealm, RealmRepresentation rep) protected static void
importComponents
(RealmModel newRealm, MultivaluedHashMap<String, ComponentExportRepresentation> components, String parentId) static void
importGroups
(RealmModel realm, RealmRepresentation rep) importRealm
(InputStream requestBody) void
importRealm
(RealmRepresentation rep, RealmModel newRealm, boolean skipUserDependent) static void
importRealmAuthorizationSettings
(RealmRepresentation rep, RealmModel newRealm, KeycloakSession session) partialImportRealm
(RealmModel realm, InputStream requestBody) static void
renameRealm
(RealmModel realm, String name) void
static RequiredActionProviderModel
static OTPPolicy
void
updateRealm
(RealmRepresentation rep, RealmModel realm)
-
Constructor Details
-
MapExportImportManager
-
MapExportImportManager
-
-
Method Details
-
importRealm
- Specified by:
importRealm
in interfaceExportImportManager
-
exportRealm
- Specified by:
exportRealm
in interfaceExportImportManager
-
importRealm
- Specified by:
importRealm
in interfaceExportImportManager
-
partialImportRealm
- Specified by:
partialImportRealm
in 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:
updateRealm
in interfaceExportImportManager
-
createUser
- Specified by:
createUser
in 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)
-