public class RealmManager extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
contextPath |
protected static org.jboss.logging.Logger |
logger |
protected RealmProvider |
model |
protected KeycloakSession |
session |
Constructor and Description |
---|
RealmManager(KeycloakSession session) |
Modifier and Type | Method and Description |
---|---|
RealmModel |
createRealm(String name) |
RealmModel |
createRealm(String id,
String name) |
String |
getContextPath() |
RealmModel |
getKeycloakAdminstrationRealm() |
RealmModel |
getRealm(String id) |
String |
getRealmAdminApplicationName(RealmModel realm) |
String |
getRealmAdminApplicationName(RealmRepresentation realm) |
RealmModel |
getRealmByName(String name) |
KeycloakSession |
getSession() |
RealmModel |
importRealm(RealmRepresentation rep) |
boolean |
removeRealm(RealmModel realm) |
List<UserModel> |
searchUsers(String searchString,
RealmModel realmModel)
Query users based on a search string:
"Bill Burke" first and last name
"bburke@redhat.com" email
"Burke" lastname or username
|
void |
setContextPath(String contextPath) |
protected void |
setupAdminConsole(RealmModel realm) |
protected void |
setupRealmDefaults(RealmModel realm) |
void |
updateRealmEventsConfig(RealmEventsConfigRepresentation rep,
RealmModel realm) |
protected static final org.jboss.logging.Logger logger
protected KeycloakSession session
protected RealmProvider model
protected String contextPath
public RealmManager(KeycloakSession session)
public String getContextPath()
public void setContextPath(String contextPath)
public KeycloakSession getSession()
public RealmModel getKeycloakAdminstrationRealm()
public RealmModel getRealm(String id)
public RealmModel getRealmByName(String name)
public RealmModel createRealm(String name)
public RealmModel createRealm(String id, String name)
protected void setupAdminConsole(RealmModel realm)
public String getRealmAdminApplicationName(RealmModel realm)
public String getRealmAdminApplicationName(RealmRepresentation realm)
protected void setupRealmDefaults(RealmModel realm)
public boolean removeRealm(RealmModel realm)
public void updateRealmEventsConfig(RealmEventsConfigRepresentation rep, RealmModel realm)
public RealmModel importRealm(RealmRepresentation rep)
public List<UserModel> searchUsers(String searchString, RealmModel realmModel)
searchString
- realmModel
- Copyright © 2015. All Rights Reserved.