public class MapRealmProvider extends Object implements RealmProvider
| Constructor and Description |
|---|
MapRealmProvider(KeycloakSession session,
MapStorage<MapRealmEntity,RealmModel> realmStore) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddClient, addClientRole, addClientRole, addRealmRole, createClientInitialAccessModel, createGroup, createGroup, createGroup, decreaseRemainingCount, getAlwaysDisplayInConsoleClients, getClientByClientId, getClientById, getClientInitialAccessModel, getClientRole, getClientRoles, getClientRoles, getClients, getClients, getClientScopeById, getGroupById, getGroups, getGroupsByRole, getRealmRoles, getRealmRoles, getRealms, getRealmsWithProviderType, getRoleById, getTopLevelGroups, getTopLevelGroups, listClientInitialAccess, listClientInitialAccessStream, removeClient, removeClientInitialAccessModel, removeRole, searchClientsByClientId, searchForClientRoles, searchForGroupByName, searchForRolesgetClientsStreamaddClientScopegetGroupsCount, getGroupsStream, getGroupsStreamaddClientRole, getClientRolesStream, getRealmRolesStreampublic MapRealmProvider(KeycloakSession session, MapStorage<MapRealmEntity,RealmModel> realmStore)
public RealmModel createRealm(String name)
createRealm in interface RealmProviderpublic RealmModel createRealm(String id, String name)
createRealm in interface RealmProviderpublic RealmModel getRealm(String id)
getRealm in interface RealmProviderpublic RealmModel getRealmByName(String name)
getRealmByName in interface RealmProviderpublic Stream<RealmModel> getRealmsStream()
getRealmsStream in interface RealmProviderpublic Stream<RealmModel> getRealmsWithProviderTypeStream(Class<?> type)
getRealmsWithProviderTypeStream in interface RealmProviderpublic boolean removeRealm(String id)
removeRealm in interface RealmProviderpublic void removeExpiredClientInitialAccess()
removeExpiredClientInitialAccess in interface RealmProviderpublic void saveLocalizationText(RealmModel realm, String locale, String key, String text)
saveLocalizationText in interface RealmProviderpublic void saveLocalizationTexts(RealmModel realm, String locale, Map<String,String> localizationTexts)
saveLocalizationTexts in interface RealmProviderpublic boolean updateLocalizationText(RealmModel realm, String locale, String key, String text)
updateLocalizationText in interface RealmProviderpublic boolean deleteLocalizationTextsByLocale(RealmModel realm, String locale)
deleteLocalizationTextsByLocale in interface RealmProviderpublic boolean deleteLocalizationText(RealmModel realm, String locale, String key)
deleteLocalizationText in interface RealmProviderpublic String getLocalizationTextsById(RealmModel realm, String locale, String key)
getLocalizationTextsById in interface RealmProvider@Deprecated public ClientModel addClient(RealmModel realm, String id, String clientId)
addClient in interface ClientProvideraddClient in interface RealmProvider@Deprecated public long getClientsCount(RealmModel realm)
getClientsCount in interface ClientProvidergetClientsCount in interface RealmProvider@Deprecated public Stream<ClientModel> getClientsStream(RealmModel realm, Integer firstResult, Integer maxResults)
getClientsStream in interface ClientProvider@Deprecated public Stream<ClientModel> getAlwaysDisplayInConsoleClientsStream(RealmModel realm)
getAlwaysDisplayInConsoleClientsStream in interface ClientProvider@Deprecated public boolean removeClient(RealmModel realm, String id)
removeClient in interface ClientProvider@Deprecated public void removeClients(RealmModel realm)
removeClients in interface ClientProvider@Deprecated public ClientModel getClientById(RealmModel realm, String id)
getClientById in interface ClientLookupProvider@Deprecated public ClientModel getClientByClientId(RealmModel realm, String clientId)
getClientByClientId in interface ClientLookupProvider@Deprecated public Stream<ClientModel> searchClientsByClientIdStream(RealmModel realm, String clientId, Integer firstResult, Integer maxResults)
searchClientsByClientIdStream in interface ClientLookupProvider@Deprecated public Stream<ClientModel> searchClientsByAttributes(RealmModel realm, Map<String,String> attributes, Integer firstResult, Integer maxResults)
searchClientsByAttributes in interface ClientLookupProvider@Deprecated public void addClientScopes(RealmModel realm, ClientModel client, Set<ClientScopeModel> clientScopes, boolean defaultScope)
addClientScopes in interface ClientProvider@Deprecated public void removeClientScope(RealmModel realm, ClientModel client, ClientScopeModel clientScope)
removeClientScope in interface ClientProvider@Deprecated public Map<String,ClientScopeModel> getClientScopes(RealmModel realm, ClientModel client, boolean defaultScopes)
getClientScopes in interface ClientLookupProvider@Deprecated public ClientScopeModel getClientScopeById(RealmModel realm, String id)
getClientScopeById in interface RealmProvidergetClientScopeById in interface ClientScopeLookupProvider@Deprecated public Stream<ClientScopeModel> getClientScopesStream(RealmModel realm)
getClientScopesStream in interface ClientScopeProvider@Deprecated public ClientScopeModel addClientScope(RealmModel realm, String id, String name)
addClientScope in interface ClientScopeProvider@Deprecated public boolean removeClientScope(RealmModel realm, String id)
removeClientScope in interface ClientScopeProvider@Deprecated public void removeClientScopes(RealmModel realm)
removeClientScopes in interface ClientScopeProvider@Deprecated public Map<ClientModel,Set<String>> getAllRedirectUrisOfEnabledClients(RealmModel realm)
getAllRedirectUrisOfEnabledClients in interface ClientProvider@Deprecated public void moveGroup(RealmModel realm, GroupModel group, GroupModel toParent)
moveGroup in interface GroupProvidermoveGroup in interface RealmProvider@Deprecated public GroupModel getGroupById(RealmModel realm, String id)
getGroupById in interface RealmProvidergetGroupById in interface GroupLookupProvider@Deprecated public Long getGroupsCount(RealmModel realm, Boolean onlyTopGroups)
getGroupsCount in interface GroupProvidergetGroupsCount in interface RealmProvider@Deprecated public Long getGroupsCountByNameContaining(RealmModel realm, String search)
getGroupsCountByNameContaining in interface GroupProvidergetGroupsCountByNameContaining in interface RealmProvider@Deprecated public boolean removeGroup(RealmModel realm, GroupModel group)
removeGroup in interface GroupProviderremoveGroup in interface RealmProvider@Deprecated public GroupModel createGroup(RealmModel realm, String id, String name, GroupModel toParent)
createGroup in interface GroupProvidercreateGroup in interface RealmProvider@Deprecated public void addTopLevelGroup(RealmModel realm, GroupModel subGroup)
addTopLevelGroup in interface GroupProvideraddTopLevelGroup in interface RealmProvider@Deprecated public Stream<GroupModel> getGroupsStream(RealmModel realm)
getGroupsStream in interface GroupProvider@Deprecated public Stream<GroupModel> getGroupsStream(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max)
getGroupsStream in interface GroupProvider@Deprecated public Stream<GroupModel> getGroupsByRoleStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults)
getGroupsByRoleStream in interface GroupProvider@Deprecated public Stream<GroupModel> getTopLevelGroupsStream(RealmModel realm)
getTopLevelGroupsStream in interface GroupProvider@Deprecated public Stream<GroupModel> getTopLevelGroupsStream(RealmModel realm, Integer firstResult, Integer maxResults)
getTopLevelGroupsStream in interface GroupProvider@Deprecated public Stream<GroupModel> searchForGroupByNameStream(RealmModel realm, String search, Integer firstResult, Integer maxResults)
searchForGroupByNameStream in interface GroupLookupProvider@Deprecated public RoleModel addRealmRole(RealmModel realm, String id, String name)
addRealmRole in interface RealmProvideraddRealmRole in interface RoleProvider@Deprecated public RoleModel getRealmRole(RealmModel realm, String name)
getRealmRole in interface RealmProvidergetRealmRole in interface RoleLookupProvider@Deprecated public Stream<RoleModel> getRealmRolesStream(RealmModel realm, Integer first, Integer max)
getRealmRolesStream in interface RoleProvider@Deprecated public boolean removeRole(RoleModel role)
removeRole in interface RoleProvider@Deprecated public void removeRoles(RealmModel realm)
removeRoles in interface RoleProvider@Deprecated public RoleModel addClientRole(ClientModel client, String id, String name)
addClientRole in interface RoleProvider@Deprecated public Stream<RoleModel> getClientRolesStream(ClientModel client, Integer first, Integer max)
getClientRolesStream in interface RoleProvider@Deprecated public void removeRoles(ClientModel client)
removeRoles in interface RoleProvider@Deprecated public RoleModel getRoleById(RealmModel realm, String id)
getRoleById in interface RoleLookupProvider@Deprecated public Stream<RoleModel> searchForRolesStream(RealmModel realm, String search, Integer first, Integer max)
searchForRolesStream in interface RoleLookupProvider@Deprecated public RoleModel getClientRole(ClientModel client, String name)
getClientRole in interface RoleLookupProvider@Deprecated public Stream<RoleModel> searchForClientRolesStream(ClientModel client, String search, Integer first, Integer max)
searchForClientRolesStream in interface RoleLookupProviderCopyright © 2021 JBoss by Red Hat. All rights reserved.