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