Class RealmManager

java.lang.Object
org.keycloak.services.managers.RealmManager

public class RealmManager extends Object
Per request object
Version:
$Revision: 1 $
Author:
Bill Burke
  • Field Details

  • Constructor Details

  • Method Details

    • getSession

      public KeycloakSession getSession()
    • getKeycloakAdminstrationRealm

      public RealmModel getKeycloakAdminstrationRealm()
    • isAdministrationRealm

      public static boolean isAdministrationRealm(RealmModel realm)
    • getRealm

      public RealmModel getRealm(String id)
    • getRealmByName

      public RealmModel getRealmByName(String name)
    • createRealm

      public RealmModel createRealm(String name)
    • createRealm

      public RealmModel createRealm(String id, String name)
    • setupAuthenticationFlows

      protected void setupAuthenticationFlows(RealmModel realm)
    • setupRequiredActions

      protected void setupRequiredActions(RealmModel realm)
    • createDefaultClientScopes

      protected void createDefaultClientScopes(RealmModel realm)
    • setupAdminConsole

      protected void setupAdminConsole(RealmModel realm)
    • setupAdminConsoleLocaleMapper

      protected void setupAdminConsoleLocaleMapper(RealmModel realm)
    • setupAdminCli

      public void setupAdminCli(RealmModel realm)
    • addQueryCompositeRoles

      public void addQueryCompositeRoles(ClientModel realmAccess)
    • getRealmAdminClientId

      public String getRealmAdminClientId(RealmModel realm)
    • getRealmAdminClientId

      public String getRealmAdminClientId(RealmRepresentation realm)
    • setupRealmDefaults

      protected void setupRealmDefaults(RealmModel realm)
    • removeRealm

      public boolean removeRealm(RealmModel realm)
    • updateRealmEventsConfig

      public void updateRealmEventsConfig(RealmEventsConfigRepresentation rep, RealmModel realm)
    • setupMasterAdminManagement

      public void setupMasterAdminManagement(RealmModel realm)
    • setupImpersonationService

      public void setupImpersonationService(RealmModel realm)
    • setupBrokerService

      public void setupBrokerService(RealmModel realm)
    • importRealm

      public RealmModel importRealm(RealmRepresentation rep)
    • importRealm

      public RealmModel importRealm(RealmRepresentation rep, boolean skipUserDependent)
      if "skipUserDependent" is true, then import of any models, which needs users already imported in DB, will be skipped. For example authorization
    • setupClientServiceAccountsAndAuthorizationOnImport

      public void setupClientServiceAccountsAndAuthorizationOnImport(RealmRepresentation rep, boolean skipUserDependent)
    • setDefaultsForNewRealm

      public void setDefaultsForNewRealm(RealmModel realm)