Class SingleFileImportProvider
- java.lang.Object
-
- org.keycloak.exportimport.AbstractFileBasedImportProvider
-
- org.keycloak.exportimport.singlefile.SingleFileImportProvider
-
- All Implemented Interfaces:
ImportProvider
,Provider
public class SingleFileImportProvider extends AbstractFileBasedImportProvider
- Author:
- Marek Posolda
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,RealmRepresentation>
realmReps
-
Constructor Summary
Constructors Constructor Description SingleFileImportProvider(KeycloakSessionFactory factory, File file, Strategy strategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkRealmReps()
void
close()
void
importModel()
boolean
isMasterRealmExported()
-
Methods inherited from class org.keycloak.exportimport.AbstractFileBasedImportProvider
parseFile
-
-
-
-
Field Detail
-
realmReps
protected Map<String,RealmRepresentation> realmReps
-
-
Constructor Detail
-
SingleFileImportProvider
public SingleFileImportProvider(KeycloakSessionFactory factory, File file, Strategy strategy)
-
-
Method Detail
-
importModel
public void importModel() throws IOException
- Throws:
IOException
-
isMasterRealmExported
public boolean isMasterRealmExported() throws IOException
- Returns:
- true, if master realm was previously exported and is available in the data to be imported
- Throws:
IOException
-
checkRealmReps
protected void checkRealmReps() throws IOException
- Throws:
IOException
-
close
public void close()
-
-