Package org.keycloak.storage.datastore
Class LegacyExportImportManager
- java.lang.Object
-
- org.keycloak.storage.datastore.LegacyExportImportManager
-
- All Implemented Interfaces:
ExportImportManager
public class LegacyExportImportManager extends Object implements ExportImportManager
This wraps the functionality about export/import for legacy storage. This will be handled differently for the new map storage, therefore, it has been extracted.- Author:
- Alexander Schwartz
-
-
Constructor Summary
Constructors Constructor Description LegacyExportImportManager(KeycloakSession session)
-
Method Summary
-
-
-
Constructor Detail
-
LegacyExportImportManager
public LegacyExportImportManager(KeycloakSession session)
-
-
Method Detail
-
exportRealm
public void exportRealm(RealmModel realm, ExportOptions options, ExportAdapter callback)
- Specified by:
exportRealm
in interfaceExportImportManager
-
importRealm
public RealmModel importRealm(InputStream requestBody)
- Specified by:
importRealm
in interfaceExportImportManager
-
importRealm
public void importRealm(RealmRepresentation rep, RealmModel newRealm, boolean skipUserDependent)
- Specified by:
importRealm
in interfaceExportImportManager
-
partialImportRealm
public PartialImportResults partialImportRealm(RealmModel realm, InputStream requestBody)
- Specified by:
partialImportRealm
in interfaceExportImportManager
-
getClaimsMask
public static long getClaimsMask(ClaimRepresentation rep)
-
createClientScopeMappings
public static void createClientScopeMappings(RealmModel realm, ClientModel clientModel, List<ScopeMappingRepresentation> mappings)
-
renameRealm
public static void renameRealm(RealmModel realm, String name)
-
updateRealm
public void updateRealm(RealmRepresentation rep, RealmModel realm)
- Specified by:
updateRealm
in interfaceExportImportManager
-
createUser
public UserModel createUser(RealmModel newRealm, UserRepresentation userRep)
- Specified by:
createUser
in interfaceExportImportManager
-
convertDeprecatedSocialProviders
public static void convertDeprecatedSocialProviders(UserRepresentation user)
-
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
public static void importGroups(RealmModel realm, RealmRepresentation rep)
-
importAuthenticationFlows
public static Map<String,String> importAuthenticationFlows(RealmModel newRealm, RealmRepresentation rep)
-
toPolicy
public static OTPPolicy toPolicy(RealmRepresentation rep)
-
toModel
public static RequiredActionProviderModel toModel(RequiredActionProviderRepresentation rep)
-
importRealmAuthorizationSettings
public static void importRealmAuthorizationSettings(RealmRepresentation rep, RealmModel newRealm, KeycloakSession session)
-
importFederatedUser
public static void importFederatedUser(KeycloakSession session, RealmModel newRealm, UserRepresentation userRep)
-
-