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)
MapExportImportManager(KeycloakSession session, boolean useNewImportMethod)
-
Method Summary
-
-
-
Constructor Detail
-
MapExportImportManager
public MapExportImportManager(KeycloakSession session)
-
MapExportImportManager
public MapExportImportManager(KeycloakSession session, boolean useNewImportMethod)
-
-
Method Detail
-
importRealm
public void importRealm(RealmRepresentation rep, RealmModel newRealm, boolean skipUserDependent)
- Specified by:
importRealm
in interfaceExportImportManager
-
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
-
partialImportRealm
public PartialImportResults partialImportRealm(RealmModel realm, InputStream requestBody)
- Specified by:
partialImportRealm
in interfaceExportImportManager
-
clearExistingComponents
protected static void clearExistingComponents(RealmModel newRealm, MultivaluedHashMap<String,ComponentExportRepresentation> components)
-
setupMasterAdminManagement
public void setupMasterAdminManagement(RealmModel realm)
-
addQueryCompositeRoles
public void addQueryCompositeRoles(ClientModel realmAccess)
-
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)
-
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)
-
-