Package org.keycloak.models.map.realm
Class MapRealmProvider
- java.lang.Object
-
- org.keycloak.models.map.realm.MapRealmProvider
-
- All Implemented Interfaces:
ClientProvider,ClientScopeProvider,GroupProvider,RealmProvider,RoleProvider,Provider,ClientLookupProvider,ClientScopeLookupProvider,GroupLookupProvider,RoleLookupProvider
public class MapRealmProvider extends Object implements RealmProvider
-
-
Constructor Summary
Constructors Constructor Description MapRealmProvider(KeycloakSession session, MapStorage<MapRealmEntity,RealmModel> realmStore)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.models.ClientProvider
getClientsStream
-
Methods inherited from interface org.keycloak.models.ClientScopeProvider
addClientScope
-
Methods inherited from interface org.keycloak.storage.group.GroupLookupProvider
searchForGroupByNameStream
-
Methods inherited from interface org.keycloak.models.GroupProvider
getGroupsCount, getGroupsStream, getGroupsStream
-
Methods inherited from interface org.keycloak.models.RealmProvider
addClient, addClientRole, addClientRole, addRealmRole, createClientInitialAccessModel, createGroup, createGroup, createGroup, decreaseRemainingCount, getClientInitialAccessModel, getClientRole, getClientRoles, getClientRoles, getClientScopeById, getRealmRoles, getRoleById, listClientInitialAccessStream, removeClientInitialAccessModel, removeRole, searchForClientRoles, searchForRoles
-
Methods inherited from interface org.keycloak.models.RoleProvider
addClientRole, getClientRolesStream, getRealmRolesStream
-
-
-
-
Constructor Detail
-
MapRealmProvider
public MapRealmProvider(KeycloakSession session, MapStorage<MapRealmEntity,RealmModel> realmStore)
-
-
Method Detail
-
createRealm
public RealmModel createRealm(String name)
- Specified by:
createRealmin interfaceRealmProvider
-
createRealm
public RealmModel createRealm(String id, String name)
- Specified by:
createRealmin interfaceRealmProvider
-
getRealm
public RealmModel getRealm(String id)
- Specified by:
getRealmin interfaceRealmProvider
-
getRealmByName
public RealmModel getRealmByName(String name)
- Specified by:
getRealmByNamein interfaceRealmProvider
-
getRealmsStream
public Stream<RealmModel> getRealmsStream()
- Specified by:
getRealmsStreamin interfaceRealmProvider
-
getRealmsWithProviderTypeStream
public Stream<RealmModel> getRealmsWithProviderTypeStream(Class<?> type)
- Specified by:
getRealmsWithProviderTypeStreamin interfaceRealmProvider
-
removeRealm
public boolean removeRealm(String id)
- Specified by:
removeRealmin interfaceRealmProvider
-
removeExpiredClientInitialAccess
public void removeExpiredClientInitialAccess()
- Specified by:
removeExpiredClientInitialAccessin interfaceRealmProvider
-
saveLocalizationText
public void saveLocalizationText(RealmModel realm, String locale, String key, String text)
- Specified by:
saveLocalizationTextin interfaceRealmProvider
-
saveLocalizationTexts
public void saveLocalizationTexts(RealmModel realm, String locale, Map<String,String> localizationTexts)
- Specified by:
saveLocalizationTextsin interfaceRealmProvider
-
updateLocalizationText
public boolean updateLocalizationText(RealmModel realm, String locale, String key, String text)
- Specified by:
updateLocalizationTextin interfaceRealmProvider
-
deleteLocalizationTextsByLocale
public boolean deleteLocalizationTextsByLocale(RealmModel realm, String locale)
- Specified by:
deleteLocalizationTextsByLocalein interfaceRealmProvider
-
deleteLocalizationText
public boolean deleteLocalizationText(RealmModel realm, String locale, String key)
- Specified by:
deleteLocalizationTextin interfaceRealmProvider
-
getLocalizationTextsById
public String getLocalizationTextsById(RealmModel realm, String locale, String key)
- Specified by:
getLocalizationTextsByIdin interfaceRealmProvider
-
addClient
@Deprecated public ClientModel addClient(RealmModel realm, String id, String clientId)
Deprecated.- Specified by:
addClientin interfaceClientProvider- Specified by:
addClientin interfaceRealmProvider
-
getClientsCount
@Deprecated public long getClientsCount(RealmModel realm)
Deprecated.- Specified by:
getClientsCountin interfaceClientProvider- Specified by:
getClientsCountin interfaceRealmProvider
-
getClientsStream
@Deprecated public Stream<ClientModel> getClientsStream(RealmModel realm, Integer firstResult, Integer maxResults)
Deprecated.- Specified by:
getClientsStreamin interfaceClientProvider
-
getAlwaysDisplayInConsoleClientsStream
@Deprecated public Stream<ClientModel> getAlwaysDisplayInConsoleClientsStream(RealmModel realm)
Deprecated.- Specified by:
getAlwaysDisplayInConsoleClientsStreamin interfaceClientProvider
-
removeClient
@Deprecated public boolean removeClient(RealmModel realm, String id)
Deprecated.- Specified by:
removeClientin interfaceClientProvider
-
removeClients
@Deprecated public void removeClients(RealmModel realm)
Deprecated.- Specified by:
removeClientsin interfaceClientProvider
-
getClientById
@Deprecated public ClientModel getClientById(RealmModel realm, String id)
Deprecated.- Specified by:
getClientByIdin interfaceClientLookupProvider
-
getClientByClientId
@Deprecated public ClientModel getClientByClientId(RealmModel realm, String clientId)
Deprecated.- Specified by:
getClientByClientIdin interfaceClientLookupProvider
-
searchClientsByClientIdStream
@Deprecated public Stream<ClientModel> searchClientsByClientIdStream(RealmModel realm, String clientId, Integer firstResult, Integer maxResults)
Deprecated.- Specified by:
searchClientsByClientIdStreamin interfaceClientLookupProvider
-
searchClientsByAttributes
@Deprecated public Stream<ClientModel> searchClientsByAttributes(RealmModel realm, Map<String,String> attributes, Integer firstResult, Integer maxResults)
Deprecated.- Specified by:
searchClientsByAttributesin interfaceClientLookupProvider
-
addClientScopes
@Deprecated public void addClientScopes(RealmModel realm, ClientModel client, Set<ClientScopeModel> clientScopes, boolean defaultScope)
Deprecated.- Specified by:
addClientScopesin interfaceClientProvider
-
removeClientScope
@Deprecated public void removeClientScope(RealmModel realm, ClientModel client, ClientScopeModel clientScope)
Deprecated.- Specified by:
removeClientScopein interfaceClientProvider
-
getClientScopes
@Deprecated public Map<String,ClientScopeModel> getClientScopes(RealmModel realm, ClientModel client, boolean defaultScopes)
Deprecated.- Specified by:
getClientScopesin interfaceClientLookupProvider
-
getClientScopeById
@Deprecated public ClientScopeModel getClientScopeById(RealmModel realm, String id)
Deprecated.- Specified by:
getClientScopeByIdin interfaceClientScopeLookupProvider- Specified by:
getClientScopeByIdin interfaceRealmProvider
-
getClientScopesStream
@Deprecated public Stream<ClientScopeModel> getClientScopesStream(RealmModel realm)
Deprecated.- Specified by:
getClientScopesStreamin interfaceClientScopeProvider
-
addClientScope
@Deprecated public ClientScopeModel addClientScope(RealmModel realm, String id, String name)
Deprecated.- Specified by:
addClientScopein interfaceClientScopeProvider
-
removeClientScope
@Deprecated public boolean removeClientScope(RealmModel realm, String id)
Deprecated.- Specified by:
removeClientScopein interfaceClientScopeProvider
-
removeClientScopes
@Deprecated public void removeClientScopes(RealmModel realm)
Deprecated.- Specified by:
removeClientScopesin interfaceClientScopeProvider
-
getAllRedirectUrisOfEnabledClients
@Deprecated public Map<ClientModel,Set<String>> getAllRedirectUrisOfEnabledClients(RealmModel realm)
Deprecated.- Specified by:
getAllRedirectUrisOfEnabledClientsin interfaceClientProvider
-
moveGroup
@Deprecated public void moveGroup(RealmModel realm, GroupModel group, GroupModel toParent)
Deprecated.- Specified by:
moveGroupin interfaceGroupProvider- Specified by:
moveGroupin interfaceRealmProvider
-
getGroupById
@Deprecated public GroupModel getGroupById(RealmModel realm, String id)
Deprecated.- Specified by:
getGroupByIdin interfaceGroupLookupProvider- Specified by:
getGroupByIdin interfaceRealmProvider
-
getGroupsCount
@Deprecated public Long getGroupsCount(RealmModel realm, Boolean onlyTopGroups)
Deprecated.- Specified by:
getGroupsCountin interfaceGroupProvider- Specified by:
getGroupsCountin interfaceRealmProvider
-
getGroupsCountByNameContaining
@Deprecated public Long getGroupsCountByNameContaining(RealmModel realm, String search)
Deprecated.- Specified by:
getGroupsCountByNameContainingin interfaceGroupProvider- Specified by:
getGroupsCountByNameContainingin interfaceRealmProvider
-
removeGroup
@Deprecated public boolean removeGroup(RealmModel realm, GroupModel group)
Deprecated.- Specified by:
removeGroupin interfaceGroupProvider- Specified by:
removeGroupin interfaceRealmProvider
-
createGroup
@Deprecated public GroupModel createGroup(RealmModel realm, String id, String name, GroupModel toParent)
Deprecated.- Specified by:
createGroupin interfaceGroupProvider- Specified by:
createGroupin interfaceRealmProvider
-
addTopLevelGroup
@Deprecated public void addTopLevelGroup(RealmModel realm, GroupModel subGroup)
Deprecated.- Specified by:
addTopLevelGroupin interfaceGroupProvider- Specified by:
addTopLevelGroupin interfaceRealmProvider
-
getGroupsStream
@Deprecated public Stream<GroupModel> getGroupsStream(RealmModel realm)
Deprecated.- Specified by:
getGroupsStreamin interfaceGroupProvider
-
getGroupsStream
@Deprecated public Stream<GroupModel> getGroupsStream(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max)
Deprecated.- Specified by:
getGroupsStreamin interfaceGroupProvider
-
getGroupsByRoleStream
@Deprecated public Stream<GroupModel> getGroupsByRoleStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults)
Deprecated.- Specified by:
getGroupsByRoleStreamin interfaceGroupProvider
-
getTopLevelGroupsStream
@Deprecated public Stream<GroupModel> getTopLevelGroupsStream(RealmModel realm)
Deprecated.- Specified by:
getTopLevelGroupsStreamin interfaceGroupProvider
-
getTopLevelGroupsStream
@Deprecated public Stream<GroupModel> getTopLevelGroupsStream(RealmModel realm, Integer firstResult, Integer maxResults)
Deprecated.- Specified by:
getTopLevelGroupsStreamin interfaceGroupProvider
-
searchForGroupByNameStream
@Deprecated public Stream<GroupModel> searchForGroupByNameStream(RealmModel realm, String search, Boolean exact, Integer firstResult, Integer maxResults)
Deprecated.- Specified by:
searchForGroupByNameStreamin interfaceGroupLookupProvider
-
searchGroupsByAttributes
public Stream<GroupModel> searchGroupsByAttributes(RealmModel realm, Map<String,String> attributes, Integer firstResult, Integer maxResults)
- Specified by:
searchGroupsByAttributesin interfaceGroupLookupProvider
-
addRealmRole
@Deprecated public RoleModel addRealmRole(RealmModel realm, String id, String name)
Deprecated.- Specified by:
addRealmRolein interfaceRealmProvider- Specified by:
addRealmRolein interfaceRoleProvider
-
getRealmRole
@Deprecated public RoleModel getRealmRole(RealmModel realm, String name)
Deprecated.- Specified by:
getRealmRolein interfaceRealmProvider- Specified by:
getRealmRolein interfaceRoleLookupProvider
-
getRealmRolesStream
@Deprecated public Stream<RoleModel> getRealmRolesStream(RealmModel realm, Integer first, Integer max)
Deprecated.- Specified by:
getRealmRolesStreamin interfaceRoleProvider
-
getRolesStream
public Stream<RoleModel> getRolesStream(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max)
- Specified by:
getRolesStreamin interfaceRoleProvider
-
removeRole
@Deprecated public boolean removeRole(RoleModel role)
Deprecated.- Specified by:
removeRolein interfaceRoleProvider
-
removeRoles
@Deprecated public void removeRoles(RealmModel realm)
Deprecated.- Specified by:
removeRolesin interfaceRoleProvider
-
addClientRole
@Deprecated public RoleModel addClientRole(ClientModel client, String id, String name)
Deprecated.- Specified by:
addClientRolein interfaceRoleProvider
-
getClientRolesStream
@Deprecated public Stream<RoleModel> getClientRolesStream(ClientModel client, Integer first, Integer max)
Deprecated.- Specified by:
getClientRolesStreamin interfaceRoleProvider
-
removeRoles
@Deprecated public void removeRoles(ClientModel client)
Deprecated.- Specified by:
removeRolesin interfaceRoleProvider
-
getRoleById
@Deprecated public RoleModel getRoleById(RealmModel realm, String id)
Deprecated.- Specified by:
getRoleByIdin interfaceRoleLookupProvider
-
searchForRolesStream
@Deprecated public Stream<RoleModel> searchForRolesStream(RealmModel realm, String search, Integer first, Integer max)
Deprecated.- Specified by:
searchForRolesStreamin interfaceRoleLookupProvider
-
getClientRole
@Deprecated public RoleModel getClientRole(ClientModel client, String name)
Deprecated.- Specified by:
getClientRolein interfaceRoleLookupProvider
-
searchForClientRolesStream
@Deprecated public Stream<RoleModel> searchForClientRolesStream(ClientModel client, String search, Integer first, Integer max)
Deprecated.- Specified by:
searchForClientRolesStreamin interfaceRoleLookupProvider
-
-