Package org.keycloak.exportimport.dir
Class DirExportProvider
java.lang.Object
org.keycloak.exportimport.util.MultipleStepsExportProvider<DirExportProvider>
org.keycloak.exportimport.dir.DirExportProvider
- All Implemented Interfaces:
ExportProvider
,Provider
- Author:
- Marek Posolda
-
Nested Class Summary
Nested classes/interfaces inherited from class org.keycloak.exportimport.util.MultipleStepsExportProvider
MultipleStepsExportProvider.FederatedUsersHolder, MultipleStepsExportProvider.UsersHolder
-
Field Summary
Fields inherited from class org.keycloak.exportimport.util.MultipleStepsExportProvider
factory, logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static boolean
recursiveDeleteDir
(File dirPath) protected void
writeFederatedUsers
(String fileName, KeycloakSession session, RealmModel realm, List<String> users) void
writeRealm
(String fileName, RealmRepresentation rep) protected void
writeUsers
(String fileName, KeycloakSession session, RealmModel realm, List<UserModel> users) Methods inherited from class org.keycloak.exportimport.util.MultipleStepsExportProvider
exportModel, exportRealm, exportRealmImpl, withRealmName, withUsersExportStrategy, withUsersPerFile
-
Constructor Details
-
DirExportProvider
-
-
Method Details
-
recursiveDeleteDir
-
writeRealm
- Specified by:
writeRealm
in classMultipleStepsExportProvider<DirExportProvider>
- Throws:
IOException
-
writeUsers
protected void writeUsers(String fileName, KeycloakSession session, RealmModel realm, List<UserModel> users) throws IOException - Specified by:
writeUsers
in classMultipleStepsExportProvider<DirExportProvider>
- Throws:
IOException
-
writeFederatedUsers
protected void writeFederatedUsers(String fileName, KeycloakSession session, RealmModel realm, List<String> users) throws IOException - Specified by:
writeFederatedUsers
in classMultipleStepsExportProvider<DirExportProvider>
- Throws:
IOException
-
close
public void close() -
withDir
-