Package org.keycloak.exportimport.dir
Class DirImportProvider
- java.lang.Object
-
- org.keycloak.exportimport.dir.DirImportProvider
-
- All Implemented Interfaces:
ImportProvider
,Provider
public class DirImportProvider extends Object implements ImportProvider
- Author:
- Marek Posolda
-
-
Constructor Summary
Constructors Constructor Description DirImportProvider()
DirImportProvider(File rootDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
importModel(KeycloakSessionFactory factory, Strategy strategy)
void
importRealm(KeycloakSessionFactory factory, String realmName, Strategy strategy)
boolean
isMasterRealmExported()
-
-
-
Constructor Detail
-
DirImportProvider
public DirImportProvider()
-
DirImportProvider
public DirImportProvider(File rootDirectory)
-
-
Method Detail
-
importModel
public void importModel(KeycloakSessionFactory factory, Strategy strategy) throws IOException
- Specified by:
importModel
in interfaceImportProvider
- Throws:
IOException
-
isMasterRealmExported
public boolean isMasterRealmExported() throws IOException
- Specified by:
isMasterRealmExported
in interfaceImportProvider
- Returns:
- true if master realm was previously exported and is available in the data to be imported
- Throws:
IOException
-
importRealm
public void importRealm(KeycloakSessionFactory factory, String realmName, Strategy strategy) throws IOException
- Specified by:
importRealm
in interfaceImportProvider
- Throws:
IOException
-
-