public class ImportUtils extends Object
Constructor and Description |
---|
ImportUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
importFromStream(KeycloakSession session,
org.codehaus.jackson.map.ObjectMapper mapper,
InputStream is,
Strategy strategy)
Fully import realm (or more realms from particular stream)
|
static RealmModel |
importRealm(KeycloakSession session,
RealmRepresentation rep,
Strategy strategy)
Fully import realm from representation, save it to model and return model of newly created realm
|
static void |
importUsersFromStream(KeycloakSession session,
String realmName,
org.codehaus.jackson.map.ObjectMapper mapper,
InputStream is) |
static void |
setupMasterAdminManagement(RealmProvider model,
RealmModel realm) |
public static RealmModel importRealm(KeycloakSession session, RealmRepresentation rep, Strategy strategy)
session
- rep
- strategy
- specifies whether to overwrite or ignore existing realm or user entriespublic static void setupMasterAdminManagement(RealmProvider model, RealmModel realm)
public static void importFromStream(KeycloakSession session, org.codehaus.jackson.map.ObjectMapper mapper, InputStream is, Strategy strategy) throws IOException
session
- mapper
- is
- strategy
- IOException
public static void importUsersFromStream(KeycloakSession session, String realmName, org.codehaus.jackson.map.ObjectMapper mapper, InputStream is) throws IOException
IOException
Copyright © 2014. All Rights Reserved.