Package org.keycloak.exportimport.util
Class MultipleStepsExportProvider<T extends MultipleStepsExportProvider<?>>
java.lang.Object
org.keycloak.exportimport.util.MultipleStepsExportProvider<T>
- All Implemented Interfaces:
ExportProvider
,Provider
- Direct Known Subclasses:
DirExportProvider
public abstract class MultipleStepsExportProvider<T extends MultipleStepsExportProvider<?>>
extends Object
implements ExportProvider
- Author:
- Marek Posolda
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final KeycloakSessionFactory
protected final org.jboss.logging.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
exportRealm
(String realmName) protected void
exportRealmImpl
(String realmName) withRealmName
(String realmName) withUsersExportStrategy
(UsersExportStrategy usersExportStrategy) withUsersPerFile
(int usersPerFile) protected abstract void
writeFederatedUsers
(String fileName, KeycloakSession session, RealmModel realm, List<String> users) protected abstract void
writeRealm
(String fileName, RealmRepresentation rep) protected abstract void
writeUsers
(String fileName, KeycloakSession session, RealmModel realm, List<UserModel> users)
-
Field Details
-
logger
protected final org.jboss.logging.Logger logger -
factory
-
-
Constructor Details
-
MultipleStepsExportProvider
-
-
Method Details
-
exportModel
public void exportModel()- Specified by:
exportModel
in interfaceExportProvider
-
withRealmName
-
withUsersPerFile
-
withUsersExportStrategy
-
exportRealm
-
exportRealmImpl
-
writeRealm
- Throws:
IOException
-
writeUsers
protected abstract void writeUsers(String fileName, KeycloakSession session, RealmModel realm, List<UserModel> users) throws IOException - Throws:
IOException
-
writeFederatedUsers
protected abstract void writeFederatedUsers(String fileName, KeycloakSession session, RealmModel realm, List<String> users) throws IOException - Throws:
IOException
-