Class MapExportImportManager
- java.lang.Object
-
- org.keycloak.models.map.datastore.MapExportImportManager
-
- All Implemented Interfaces:
ExportImportManager
public class MapExportImportManager extends Object implements 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
Constructors Constructor Description MapExportImportManager(KeycloakSession session)
-
Method Summary
-
-
-
Constructor Detail
-
MapExportImportManager
public MapExportImportManager(KeycloakSession session)
-
-
Method Detail
-
importRealm
public void importRealm(RealmRepresentation rep, RealmModel newRealm, boolean skipUserDependent)
- Specified by:
importRealmin interfaceExportImportManager
-
exportRealm
public void exportRealm(RealmModel realm, ExportOptions options, ExportAdapter callback)
- Specified by:
exportRealmin interfaceExportImportManager
-
importRealm
public RealmModel importRealm(InputStream requestBody)
- Specified by:
importRealmin 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:
updateRealmin interfaceExportImportManager
-
createUser
public UserModel createUser(RealmModel newRealm, UserRepresentation userRep)
- Specified by:
createUserin interfaceExportImportManager
-
convertDeprecatedSocialProviders
public static void convertDeprecatedSocialProviders(UserRepresentation user)
-
convertFedMapperToComponent
public static ComponentModel convertFedMapperToComponent(RealmModel realm, ComponentModel parent, UserFederationMapperRepresentation rep, String newMapperType)
-
importComponents
protected static void importComponents(RealmModel newRealm, org.keycloak.common.util.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)
-
-