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
Nested Classes Modifier and Type Class Description static class
MultipleStepsExportProvider.FederatedUsersHolder
static class
MultipleStepsExportProvider.UsersHolder
-
Field Summary
Fields Modifier and Type Field Description protected KeycloakSessionFactory
factory
protected org.jboss.logging.Logger
logger
-
Constructor Summary
Constructors Constructor Description MultipleStepsExportProvider(KeycloakSessionFactory factory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
exportModel()
void
exportRealm(String realmName)
protected void
exportRealmImpl(String realmName)
T
withRealmName(String realmName)
T
withUsersExportStrategy(UsersExportStrategy usersExportStrategy)
T
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 Detail
-
logger
protected final org.jboss.logging.Logger logger
-
factory
protected final KeycloakSessionFactory factory
-
-
Constructor Detail
-
MultipleStepsExportProvider
public MultipleStepsExportProvider(KeycloakSessionFactory factory)
-
-
Method Detail
-
exportModel
public void exportModel()
- Specified by:
exportModel
in interfaceExportProvider
-
withUsersPerFile
public T withUsersPerFile(int usersPerFile)
-
withUsersExportStrategy
public T withUsersExportStrategy(UsersExportStrategy usersExportStrategy)
-
exportRealm
public void exportRealm(String realmName)
-
exportRealmImpl
protected void exportRealmImpl(String realmName)
-
writeRealm
protected abstract void writeRealm(String fileName, RealmRepresentation rep) throws IOException
- 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
-
-