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 SummaryConstructors Constructor Description LegacyExportImportManager(KeycloakSession session)
 - 
Method Summary
 
- 
- 
- 
Constructor Detail- 
LegacyExportImportManagerpublic LegacyExportImportManager(KeycloakSession session) 
 
- 
 - 
Method Detail- 
exportRealmpublic void exportRealm(RealmModel realm, ExportOptions options, ExportAdapter callback) - Specified by:
- exportRealmin interface- ExportImportManager
 
 - 
importRealmpublic RealmModel importRealm(InputStream requestBody) - Specified by:
- importRealmin interface- ExportImportManager
 
 - 
importRealmpublic void importRealm(RealmRepresentation rep, RealmModel newRealm, boolean skipUserDependent) - Specified by:
- importRealmin interface- ExportImportManager
 
 - 
partialImportRealmpublic PartialImportResults partialImportRealm(RealmModel realm, InputStream requestBody) - Specified by:
- partialImportRealmin interface- ExportImportManager
 
 - 
getClaimsMaskpublic static long getClaimsMask(ClaimRepresentation rep) 
 - 
createClientScopeMappingspublic static void createClientScopeMappings(RealmModel realm, ClientModel clientModel, List<ScopeMappingRepresentation> mappings) 
 - 
renameRealmpublic static void renameRealm(RealmModel realm, String name) 
 - 
updateRealmpublic void updateRealm(RealmRepresentation rep, RealmModel realm) - Specified by:
- updateRealmin interface- ExportImportManager
 
 - 
createUserpublic UserModel createUser(RealmModel newRealm, UserRepresentation userRep) - Specified by:
- createUserin interface- ExportImportManager
 
 - 
convertDeprecatedSocialProviderspublic static void convertDeprecatedSocialProviders(UserRepresentation user) 
 - 
importUserFederationProvidersAndMapperspublic static void importUserFederationProvidersAndMappers(KeycloakSession session, RealmRepresentation rep, RealmModel newRealm) 
 - 
convertFedMapperToComponentpublic static ComponentModel convertFedMapperToComponent(RealmModel realm, ComponentModel parent, UserFederationMapperRepresentation rep, String newMapperType) 
 - 
convertFedProviderToComponentpublic static ComponentModel convertFedProviderToComponent(String realmId, UserFederationProviderRepresentation fedModel) 
 - 
importComponentsprotected static void importComponents(RealmModel newRealm, MultivaluedHashMap<String,ComponentExportRepresentation> components, String parentId) 
 - 
importGroupspublic static void importGroups(RealmModel realm, RealmRepresentation rep) 
 - 
importAuthenticationFlowspublic static Map<String,String> importAuthenticationFlows(RealmModel newRealm, RealmRepresentation rep) 
 - 
toPolicypublic static OTPPolicy toPolicy(RealmRepresentation rep) 
 - 
toModelpublic static RequiredActionProviderModel toModel(RequiredActionProviderRepresentation rep) 
 - 
importRealmAuthorizationSettingspublic static void importRealmAuthorizationSettings(RealmRepresentation rep, RealmModel newRealm, KeycloakSession session) 
 - 
importFederatedUserpublic static void importFederatedUser(KeycloakSession session, RealmModel newRealm, UserRepresentation userRep) 
 
- 
 
-