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
public class DirExportProvider extends MultipleStepsExportProvider<DirExportProvider>
- 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
Constructors Constructor Description DirExportProvider(KeycloakSessionFactory sessionFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static boolean
recursiveDeleteDir(File dirPath)
DirExportProvider
withDir(String dir)
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 Detail
-
DirExportProvider
public DirExportProvider(KeycloakSessionFactory sessionFactory)
-
-
Method Detail
-
recursiveDeleteDir
public static boolean recursiveDeleteDir(File dirPath)
-
writeRealm
public void writeRealm(String fileName, RealmRepresentation rep) throws IOException
- 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
public DirExportProvider withDir(String dir)
-
-