Package org.keycloak.storage.datastore
Class DefaultExportImportManager
java.lang.Object
org.keycloak.storage.datastore.DefaultExportImportManager
- All Implemented Interfaces:
ExportImportManager
This wraps the functionality about export/import for the storage.
- Author:
- Alexander Schwartz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static ComponentModel
convertFedMapperToComponent
(RealmModel realm, ComponentModel parent, UserFederationMapperRepresentation rep, String newMapperType) static ComponentModel
convertFedProviderToComponent
(String realmId, UserFederationProviderRepresentation fedModel) 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
importFederatedUser
(KeycloakSession session, RealmModel newRealm, UserRepresentation userRep) 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) static void
importUserFederationProvidersAndMappers
(KeycloakSession session, RealmRepresentation rep, RealmModel newRealm) partialImportRealm
(RealmModel realm, InputStream requestBody) static void
renameRealm
(RealmModel realm, String name) static RequiredActionProviderModel
static OTPPolicy
void
updateRealm
(RealmRepresentation rep, RealmModel realm)
-
Constructor Details
-
DefaultExportImportManager
-
-
Method Details
-
exportRealm
- Specified by:
exportRealm
in interfaceExportImportManager
-
importRealm
- Specified by:
importRealm
in interfaceExportImportManager
-
importRealm
- Specified by:
importRealm
in interfaceExportImportManager
-
partialImportRealm
- Specified by:
partialImportRealm
in interfaceExportImportManager
-
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
-
importUserFederationProvidersAndMappers
public static void importUserFederationProvidersAndMappers(KeycloakSession session, RealmRepresentation rep, RealmModel newRealm) -
convertFedMapperToComponent
public static ComponentModel convertFedMapperToComponent(RealmModel realm, ComponentModel parent, UserFederationMapperRepresentation rep, String newMapperType) -
convertFedProviderToComponent
public static ComponentModel convertFedProviderToComponent(String realmId, UserFederationProviderRepresentation fedModel) -
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) -
importFederatedUser
public static void importFederatedUser(KeycloakSession session, RealmModel newRealm, UserRepresentation userRep)
-