public class RealmManager extends Object implements RealmImporter
Modifier and Type | Field and Description |
---|---|
protected String |
contextPath |
protected RealmProvider |
model |
protected KeycloakSession |
session |
Constructor and Description |
---|
RealmManager(KeycloakSession session) |
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 setupAuthenticationFlows(RealmModel realm)
protected void setupRequiredActions(RealmModel realm)
protected void setupOfflineTokens(RealmModel realm)
protected void setupAdminConsole(RealmModel realm)
protected void setupAdminConsoleLocaleMapper(RealmModel realm)
public void setupAdminCli(RealmModel realm)
public String getRealmAdminClientId(RealmModel realm)
public String getRealmAdminClientId(RealmRepresentation realm)
protected void setupRealmDefaults(RealmModel realm)
public boolean removeRealm(RealmModel realm)
public void updateRealmEventsConfig(RealmEventsConfigRepresentation rep, RealmModel realm)
public void setupMasterAdminManagement(RealmModel realm)
public void setupImpersonationService(RealmModel realm)
public void setupBrokerService(RealmModel realm)
public RealmModel importRealm(RealmRepresentation rep)
importRealm
in interface RealmImporter
public List<UserModel> searchUsers(String searchString, RealmModel realmModel)
searchString
- realmModel
- Copyright © 2016 JBoss by Red Hat. All rights reserved.