public class UserCacheSession extends Object implements UserCache.Streams
UserCache.Streams
Modifier and Type | Field and Description |
---|---|
protected UserCacheManager |
cache |
protected UserProvider |
delegate |
protected Set<InvalidationEvent> |
invalidationEvents |
protected Set<String> |
invalidations |
protected static org.jboss.logging.Logger |
logger |
protected Map<String,UserModel> |
managedUsers |
protected Set<String> |
realmInvalidations |
protected KeycloakSession |
session |
protected boolean |
setRollbackOnly |
protected long |
startupRevision |
protected boolean |
transactionActive |
Constructor and Description |
---|
UserCacheSession(UserCacheManager cache,
KeycloakSession session) |
Modifier and Type | Method and Description |
---|---|
void |
addConsent(RealmModel realm,
String userId,
UserConsentModel consent)
Add user consent for the user.
|
void |
addFederatedIdentity(RealmModel realm,
UserModel user,
FederatedIdentityModel socialLink)
Adds a federated identity link for the user within the realm
|
UserModel |
addUser(RealmModel realm,
String username)
All storage providers that implement this interface will be looped through.
|
UserModel |
addUser(RealmModel realm,
String id,
String username,
boolean addDefaultRoles,
boolean addDefaultRequiredActions)
Adds a new user into the storage.
|
protected UserModel |
cacheUser(RealmModel realm,
UserModel delegate,
Long revision) |
void |
clear()
Clear cache entirely.
|
void |
close() |
void |
evict(RealmModel realm)
Evict users of a specific realm
|
void |
evict(RealmModel realm,
UserModel user)
Evict user from cache.
|
UserModel |
findServiceAccount(ClientModel client) |
protected void |
fullyInvalidateUser(RealmModel realm,
UserModel user) |
UserConsentModel |
getConsentByClient(RealmModel realm,
String userId,
String clientId)
Returns UserConsentModel given by a user with the userId for the client with clientInternalId
|
Stream<UserConsentModel> |
getConsentsStream(RealmModel realm,
String userId)
Obtains the consents associated with the user identified by the specified
userId . |
UserProvider |
getDelegate() |
Stream<FederatedIdentityModel> |
getFederatedIdentitiesStream(RealmModel realm,
UserModel user)
Obtains the federated identities of the specified user.
|
FederatedIdentityModel |
getFederatedIdentity(RealmModel realm,
UserModel user,
String socialProvider)
Returns details of the association between the user and the socialProvider.
|
Stream<UserModel> |
getGroupMembersStream(RealmModel realm,
GroupModel group)
Obtains users that belong to a specific group.
|
Stream<UserModel> |
getGroupMembersStream(RealmModel realm,
GroupModel group,
Integer firstResult,
Integer maxResults)
Obtains users that belong to a specific group.
|
int |
getNotBeforeOfUser(RealmModel realm,
UserModel user)
Gets the notBefore value for the given user
|
Stream<UserModel> |
getRoleMembersStream(RealmModel realm,
RoleModel role)
Obtains users that have the specified role.
|
Stream<UserModel> |
getRoleMembersStream(RealmModel realm,
RoleModel role,
Integer firstResult,
Integer maxResults)
Searches for users that have the specified role.
|
UserModel |
getServiceAccount(ClientModel client)
Return a UserModel representing service account of the client
|
protected UserModel |
getUserAdapter(RealmModel realm,
String userId,
Long loaded,
UserModel delegate) |
UserModel |
getUserByEmail(RealmModel realm,
String email)
Returns a user with the given email belonging to the realm
|
UserModel |
getUserByFederatedIdentity(RealmModel realm,
FederatedIdentityModel socialLink)
Returns a userModel that corresponds to the given socialLink.
|
UserModel |
getUserById(RealmModel realm,
String id)
Returns a user with the given id belonging to the realm
|
UserModel |
getUserByUsername(RealmModel realm,
String username)
Returns a user with the given username belonging to the realm
|
int |
getUsersCount(RealmModel realm,
boolean includeServiceAccount)
Returns the number of users.
|
int |
getUsersCount(RealmModel realm,
Map<String,String> params)
Returns the number of users that match the given filter parameters.
|
int |
getUsersCount(RealmModel realm,
Map<String,String> params,
Set<String> groupIds)
Returns the number of users that match the given filter parameters and is in
at least one of the given groups.
|
int |
getUsersCount(RealmModel realm,
Set<String> groupIds)
Returns the number of users that are in at least one of the groups
given.
|
int |
getUsersCount(RealmModel realm,
String search)
Returns the number of users that would be returned by a call to
searchForUserStream |
int |
getUsersCount(RealmModel realm,
String search,
Set<String> groupIds)
Returns the number of users that would be returned by a call to
searchForUserStream
and are members of at least one of the groups given by the groupIds set. |
Stream<UserModel> |
getUsersStream(RealmModel realm)
Searches all users in the realm.
|
Stream<UserModel> |
getUsersStream(RealmModel realm,
boolean includeServiceAccounts)
Obtains the users associated with the specified realm.
|
Stream<UserModel> |
getUsersStream(RealmModel realm,
Integer firstResult,
Integer maxResults)
Searches all users in the realm, starting from the
firstResult and containing at most maxResults . |
Stream<UserModel> |
getUsersStream(RealmModel realm,
Integer firstResult,
Integer maxResults,
boolean includeServiceAccounts)
Obtains the users associated with the specified realm.
|
void |
grantToAllUsers(RealmModel realm,
RoleModel role)
Grants the given role to all users from particular realm.
|
void |
preRemove(ClientScopeModel clientScope)
Called when a client scope is removed.
|
void |
preRemove(ProtocolMapperModel protocolMapper)
Called when a protocolMapper is removed
|
void |
preRemove(RealmModel realm)
Called when a realm is removed.
|
void |
preRemove(RealmModel realm,
ClientModel client)
Called when a client is removed.
|
void |
preRemove(RealmModel realm,
ComponentModel component)
Called when a component is removed.
|
void |
preRemove(RealmModel realm,
GroupModel group)
Called when a group is removed.
|
void |
preRemove(RealmModel realm,
IdentityProviderModel provider)
Called when an identity provider is removed.
|
void |
preRemove(RealmModel realm,
RoleModel role)
Called when a role is removed.
|
void |
registerUserInvalidation(RealmModel realm,
CachedUser user) |
boolean |
removeFederatedIdentity(RealmModel realm,
UserModel user,
String socialProvider)
Removes federation link between the user and the identity provider given by its id
|
void |
removeImportedUsers(RealmModel realm,
String storageProviderId)
Removes any imported users from a specific User Storage Provider.
|
boolean |
removeUser(RealmModel realm,
UserModel user)
Called if user originated from this provider.
|
boolean |
revokeConsentForClient(RealmModel realm,
String userId,
String clientInternalId)
Remove a user consent given by the user id and client id
|
protected void |
runInvalidations() |
Stream<UserModel> |
searchForUserByUserAttributeStream(RealmModel realm,
String attrName,
String attrValue)
Searches for users that have a specific attribute with a specific value.
|
Stream<UserModel> |
searchForUserStream(RealmModel realm,
Map<String,String> attributes)
Searches for user by parameter.
|
Stream<UserModel> |
searchForUserStream(RealmModel realm,
Map<String,String> attributes,
Integer firstResult,
Integer maxResults)
Searches for user by parameter.
|
Stream<UserModel> |
searchForUserStream(RealmModel realm,
String search)
Searches for users whose username, email, first name or last name contain any of the strings in
search separated by whitespace. |
Stream<UserModel> |
searchForUserStream(RealmModel realm,
String search,
Integer firstResult,
Integer maxResults)
Searches for users whose username, email, first name or last name contain any of the strings in
search separated by whitespace. |
void |
setNotBeforeForUser(RealmModel realm,
UserModel user,
int notBefore)
Sets the notBefore value for the given user
|
void |
unlinkUsers(RealmModel realm,
String storageProviderId)
Set federation link to
null to imported users of a specific User Storage Provider |
void |
updateConsent(RealmModel realm,
String userId,
UserConsentModel consent)
Update client scopes in the stored user consent
|
void |
updateFederatedIdentity(RealmModel realm,
UserModel federatedUser,
FederatedIdentityModel federatedIdentityModel)
Update details of association between the federatedUser and the idp given by the federatedIdentityModel
|
protected UserModel |
validateCache(RealmModel realm,
CachedUser cached) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConsents, getFederatedIdentities, getFederatedIdentity, getUserByFederatedIdentity, getUsers, getUsers
getGroupMembers, getGroupMembers, getUsers, getUsers, getUsersCount, getUsersCount, getUsersCount, getUsersCount, searchForUser, searchForUser, searchForUser, searchForUser, searchForUserByUserAttribute
countUsersInGroups, getRoleMembers, getRoleMembers, getUsersCount
getUserByEmail, getUserById, getUserByUsername
protected static final org.jboss.logging.Logger logger
protected UserCacheManager cache
protected KeycloakSession session
protected UserProvider delegate
protected boolean transactionActive
protected boolean setRollbackOnly
protected final long startupRevision
protected Set<InvalidationEvent> invalidationEvents
public UserCacheSession(UserCacheManager cache, KeycloakSession session)
public void clear()
UserCache
public UserProvider getDelegate()
public void registerUserInvalidation(RealmModel realm, CachedUser user)
public void evict(RealmModel realm, UserModel user)
UserCache
public void evict(RealmModel realm)
UserCache
protected void runInvalidations()
public UserModel getUserById(RealmModel realm, String id)
UserLookupProvider
getUserById
in interface UserLookupProvider
getUserById
in interface UserLookupProvider.Streams
realm
- the realm modelid
- id of the usernull
if no such user existspublic UserModel getUserByUsername(RealmModel realm, String username)
UserLookupProvider
getUserByUsername
in interface UserLookupProvider
getUserByUsername
in interface UserLookupProvider.Streams
realm
- the realm modelusername
- case insensitive username (case-sensitivity is controlled by storage)null
if no such user existsprotected UserModel getUserAdapter(RealmModel realm, String userId, Long loaded, UserModel delegate)
protected UserModel validateCache(RealmModel realm, CachedUser cached)
protected UserModel cacheUser(RealmModel realm, UserModel delegate, Long revision)
public UserModel getUserByEmail(RealmModel realm, String email)
UserLookupProvider
getUserByEmail
in interface UserLookupProvider
getUserByEmail
in interface UserLookupProvider.Streams
realm
- the realm modelemail
- case insensitive email address (case-sensitivity is controlled by storage)null
if no such user existspublic void close()
close
in interface UserProvider
close
in interface Provider
public UserModel getUserByFederatedIdentity(RealmModel realm, FederatedIdentityModel socialLink)
UserProvider
getUserByFederatedIdentity
in interface UserProvider
getUserByFederatedIdentity
in interface UserProvider.Streams
realm
- a reference to the realmsocialLink
- the socialLinknull
if no such user existspublic Stream<UserModel> getGroupMembersStream(RealmModel realm, GroupModel group, Integer firstResult, Integer maxResults)
UserQueryProvider
getGroupMembersStream
in interface UserQueryProvider
getGroupMembersStream
in interface UserQueryProvider.Streams
realm
- a reference to the realm.group
- a reference to the group.firstResult
- first result to return. Ignored if negative, zero, or null
.maxResults
- maximum number of results to return. Ignored if negative or null
.Stream
of users that belong to the group.public Stream<UserModel> getGroupMembersStream(RealmModel realm, GroupModel group)
UserQueryProvider
getGroupMembersStream
in interface UserQueryProvider
getGroupMembersStream
in interface UserQueryProvider.Streams
realm
- a reference to the realm.group
- a reference to the group.Stream
of users that belong to the group.public Stream<UserModel> getRoleMembersStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults)
UserQueryProvider
getRoleMembersStream
in interface UserQueryProvider
realm
- a reference to the realm.role
- a reference to the role.firstResult
- first result to return. Ignored if negative or null
.maxResults
- maximum number of results to return. Ignored if negative or null
.Stream
of users that have the specified role.public Stream<UserModel> getRoleMembersStream(RealmModel realm, RoleModel role)
UserQueryProvider
getRoleMembersStream
in interface UserQueryProvider
realm
- a reference to the realm.role
- a reference to the role.Stream
of users that have the specified role.public UserModel getServiceAccount(ClientModel client)
UserProvider
getServiceAccount
in interface UserProvider
client
- the client modelpublic UserModel findServiceAccount(ClientModel client)
public Stream<UserModel> getUsersStream(RealmModel realm, boolean includeServiceAccounts)
UserProvider
getUsersStream
in interface UserProvider
getUsersStream
in interface UserProvider.Streams
realm
- a reference to the realm being used for the search.includeServiceAccounts
- true
if service accounts should be included in the result; false
otherwise.Stream
of users associated withe the realm.public int getUsersCount(RealmModel realm, boolean includeServiceAccount)
UserQueryProvider
getUsersCount
in interface UserQueryProvider
realm
- the realmincludeServiceAccount
- if true, the number of users will also include service accounts. Otherwise, only the number of users.public int getUsersCount(RealmModel realm, Set<String> groupIds)
UserQueryProvider
getUsersCount
in interface UserQueryProvider
realm
- the realmgroupIds
- set of groups IDs, the returned user needs to belong to at least one of thempublic int getUsersCount(RealmModel realm, String search)
UserQueryProvider
searchForUserStream
getUsersCount
in interface UserQueryProvider
getUsersCount
in interface UserQueryProvider.Streams
realm
- the realmsearch
- case insensitive list of strings separated by whitespaces.public int getUsersCount(RealmModel realm, String search, Set<String> groupIds)
UserQueryProvider
searchForUserStream
and are members of at least one of the groups given by the groupIds
set.getUsersCount
in interface UserQueryProvider
getUsersCount
in interface UserQueryProvider.Streams
realm
- the realmsearch
- case insensitive list of strings separated by whitespaces.groupIds
- set of groups IDs, the returned user needs to belong to at least one of thempublic int getUsersCount(RealmModel realm, Map<String,String> params)
UserQueryProvider
getUsersCount
in interface UserQueryProvider
getUsersCount
in interface UserQueryProvider.Streams
realm
- the realmparams
- filter parameterspublic int getUsersCount(RealmModel realm, Map<String,String> params, Set<String> groupIds)
UserQueryProvider
getUsersCount
in interface UserQueryProvider
getUsersCount
in interface UserQueryProvider.Streams
realm
- the realmparams
- filter parametersgroupIds
- set if groups to check forpublic Stream<UserModel> getUsersStream(RealmModel realm, Integer firstResult, Integer maxResults, boolean includeServiceAccounts)
UserProvider
getUsersStream
in interface UserProvider
getUsersStream
in interface UserProvider.Streams
realm
- a reference to the realm being used for the search.firstResult
- first result to return. Ignored if negative, zero, or null
.maxResults
- maximum number of results to return. Ignored if negative or null
.includeServiceAccounts
- true
if service accounts should be included in the result; false
otherwise.Stream
of users associated withe the realm.public Stream<UserModel> getUsersStream(RealmModel realm)
UserQueryProvider
getUsersStream
in interface UserQueryProvider
getUsersStream
in interface UserQueryProvider.Streams
realm
- a reference to the realm.Stream
of users.public Stream<UserModel> getUsersStream(RealmModel realm, Integer firstResult, Integer maxResults)
UserQueryProvider
firstResult
and containing at most maxResults
.getUsersStream
in interface UserQueryProvider
getUsersStream
in interface UserQueryProvider.Streams
realm
- a reference to the realm.firstResult
- first result to return. Ignored if negative or null
.maxResults
- maximum number of results to return. Ignored if negative or null
.Stream
of users.public Stream<UserModel> searchForUserStream(RealmModel realm, String search)
UserQueryProvider
search
separated by whitespace.
If possible, implementations should treat the parameter values as partial match patterns (i.e. in RDMBS terms use LIKE).
This method is used by the admin console search boxsearchForUserStream
in interface UserQueryProvider
searchForUserStream
in interface UserQueryProvider.Streams
realm
- a reference to the realm.search
- case insensitive list of string separated by whitespaces.Stream
of users that match the search string.public Stream<UserModel> searchForUserStream(RealmModel realm, String search, Integer firstResult, Integer maxResults)
UserQueryProvider
search
separated by whitespace.
If possible, implementations should treat the parameter values as partial match patterns (i.e. in RDMBS terms use LIKE).
This method is used by the admin console search boxsearchForUserStream
in interface UserQueryProvider
searchForUserStream
in interface UserQueryProvider.Streams
realm
- a reference to the realm.search
- case insensitive list of string separated by whitespaces.firstResult
- first result to return. Ignored if negative, zero, or null
.maxResults
- maximum number of results to return. Ignored if negative or null
.Stream
of users that match the search criteria.public Stream<UserModel> searchForUserStream(RealmModel realm, Map<String,String> attributes)
UserQueryProvider
UserModel.FIRST_NAME
- first name (case insensitive string)UserModel.LAST_NAME
- last name (case insensitive string)UserModel.EMAIL
- email (case insensitive string)UserModel.USERNAME
- username (case insensitive string)UserModel.EMAIL_VERIFIED
- search only for users with verified/non-verified email (true/false)UserModel.ENABLED
- search only for enabled/disabled users (true/false)UserModel.IDP_ALIAS
- search only for users that have a federated identity
from idp with the given alias configured (case sensitive string)UserModel.IDP_USER_ID
- search for users with federated identity with
the given userId (case sensitive string)searchForUserStream
in interface UserQueryProvider
searchForUserStream
in interface UserQueryProvider.Streams
realm
- a reference to the realm.attributes
- a map containing the search parameters.Stream
of users that match the search parameters.public Stream<UserModel> searchForUserStream(RealmModel realm, Map<String,String> attributes, Integer firstResult, Integer maxResults)
UserQueryProvider
UserModel.FIRST_NAME
- first name (case insensitive string)UserModel.LAST_NAME
- last name (case insensitive string)UserModel.EMAIL
- email (case insensitive string)UserModel.USERNAME
- username (case insensitive string)UserModel.EMAIL_VERIFIED
- search only for users with verified/non-verified email (true/false)UserModel.ENABLED
- search only for enabled/disabled users (true/false)UserModel.IDP_ALIAS
- search only for users that have a federated identity
from idp with the given alias configured (case sensitive string)UserModel.IDP_USER_ID
- search for users with federated identity with
the given userId (case sensitive string)searchForUserStream
in interface UserQueryProvider
searchForUserStream
in interface UserQueryProvider.Streams
realm
- a reference to the realm.attributes
- a map containing the search parameters.firstResult
- first result to return. Ignored if negative, zero, or null
.maxResults
- maximum number of results to return. Ignored if negative or null
.Stream
of users that match the search criteria.public Stream<UserModel> searchForUserByUserAttributeStream(RealmModel realm, String attrName, String attrValue)
UserQueryProvider
searchForUserByUserAttributeStream
in interface UserQueryProvider
searchForUserByUserAttributeStream
in interface UserQueryProvider.Streams
realm
- a reference to the realm.attrName
- the attribute name.attrValue
- the attribute value.Stream
of users that match the search criteria.public Stream<FederatedIdentityModel> getFederatedIdentitiesStream(RealmModel realm, UserModel user)
UserProvider
getFederatedIdentitiesStream
in interface UserProvider
getFederatedIdentitiesStream
in interface UserProvider.Streams
realm
- a reference to the realm.user
- the reference to the user.Stream
of federated identities associated with the user.public FederatedIdentityModel getFederatedIdentity(RealmModel realm, UserModel user, String socialProvider)
UserProvider
getFederatedIdentity
in interface UserProvider
getFederatedIdentity
in interface UserProvider.Streams
realm
- a reference to the realmuser
- the user modelsocialProvider
- the id of the identity providernull
if no association existspublic void updateConsent(RealmModel realm, String userId, UserConsentModel consent)
UserProvider
updateConsent
in interface UserProvider
realm
- a reference to the realmuserId
- id of the userconsent
- new details of the user consentpublic boolean revokeConsentForClient(RealmModel realm, String userId, String clientInternalId)
UserProvider
revokeConsentForClient
in interface UserProvider
realm
- a reference to the realmuserId
- id of the userclientInternalId
- id of the clienttrue
if the consent was removed, false
otherwisepublic void addConsent(RealmModel realm, String userId, UserConsentModel consent)
UserProvider
addConsent
in interface UserProvider
realm
- a reference to the realmuserId
- id of the userconsent
- all details corresponding to the granted consentpublic UserConsentModel getConsentByClient(RealmModel realm, String userId, String clientId)
UserProvider
getConsentByClient
in interface UserProvider
realm
- a reference to the realmuserId
- id of the userclientId
- id of the clientnull
if no consent or user existspublic Stream<UserConsentModel> getConsentsStream(RealmModel realm, String userId)
UserProvider
userId
.getConsentsStream
in interface UserProvider
getConsentsStream
in interface UserProvider.Streams
realm
- a reference to the realm.userId
- the user identifier.Stream
of consents associated with the user.public void setNotBeforeForUser(RealmModel realm, UserModel user, int notBefore)
UserProvider
setNotBeforeForUser
in interface UserProvider
realm
- a reference to the realmuser
- the user modelnotBefore
- new value for notBeforepublic int getNotBeforeOfUser(RealmModel realm, UserModel user)
UserProvider
getNotBeforeOfUser
in interface UserProvider
realm
- a reference to the realmuser
- the user modelpublic UserModel addUser(RealmModel realm, String id, String username, boolean addDefaultRoles, boolean addDefaultRequiredActions)
UserProvider
addUser
in interface UserProvider
realm
- the realm that user will be created inid
- id of the new user. Should be generated to a random value if null
.username
- usernameaddDefaultRoles
- if true
, the user should join all realm default rolesaddDefaultRequiredActions
- if true
, all default required actions are added to the created userpublic UserModel addUser(RealmModel realm, String username)
UserRegistrationProvider
addUser
in interface UserRegistrationProvider
realm
- a reference to the realmusername
- a username the created user will be assignedprotected void fullyInvalidateUser(RealmModel realm, UserModel user)
public boolean removeUser(RealmModel realm, UserModel user)
UserRegistrationProvider
removeUser
in interface UserRegistrationProvider
realm
- a reference to the realmuser
- a reference to the user that is removedpublic void addFederatedIdentity(RealmModel realm, UserModel user, FederatedIdentityModel socialLink)
UserProvider
addFederatedIdentity
in interface UserProvider
realm
- a reference to the realmuser
- the user modelsocialLink
- the federated identity model containing all details of the association between the user and
the identity providerpublic void updateFederatedIdentity(RealmModel realm, UserModel federatedUser, FederatedIdentityModel federatedIdentityModel)
UserProvider
updateFederatedIdentity
in interface UserProvider
realm
- a reference to the realmfederatedUser
- the user modelfederatedIdentityModel
- the federated identity model containing all details of the association between
the user and the identity providerpublic boolean removeFederatedIdentity(RealmModel realm, UserModel user, String socialProvider)
UserProvider
removeFederatedIdentity
in interface UserProvider
realm
- a reference to the realmuser
- the user modelsocialProvider
- alias of the identity provider, see IdentityProviderModel.getAlias()
true
if the association was removed, false
otherwisepublic void preRemove(RealmModel realm, IdentityProviderModel provider)
UserProvider
preRemove
in interface UserProvider
realm
- a reference to the realmprovider
- provider modelpublic void grantToAllUsers(RealmModel realm, RoleModel role)
UserBulkUpdateProvider
grantToAllUsers
in interface UserBulkUpdateProvider
realm
- Realmrole
- Role to be grantedpublic void preRemove(RealmModel realm)
UserProvider
preRemove
in interface UserProvider
realm
- a reference to the realmpublic void preRemove(RealmModel realm, RoleModel role)
UserProvider
preRemove
in interface UserProvider
realm
- a reference to the realmrole
- the role modelpublic void preRemove(RealmModel realm, GroupModel group)
UserProvider
preRemove
in interface UserProvider
realm
- a reference to the realmgroup
- the group modelpublic void preRemove(RealmModel realm, ClientModel client)
UserProvider
preRemove
in interface UserProvider
realm
- a reference to the realmclient
- the client modelpublic void preRemove(ProtocolMapperModel protocolMapper)
UserProvider
preRemove
in interface UserProvider
protocolMapper
- the protocolMapper modelpublic void preRemove(ClientScopeModel clientScope)
UserProvider
preRemove
in interface UserProvider
clientScope
- the clientScope modelpublic void preRemove(RealmModel realm, ComponentModel component)
UserProvider
preRemove
in interface UserProvider
realm
- a reference to the realmcomponent
- the component modelpublic void removeImportedUsers(RealmModel realm, String storageProviderId)
UserProvider
removeImportedUsers
in interface UserProvider
realm
- a reference to the realmstorageProviderId
- id of the user storage providerpublic void unlinkUsers(RealmModel realm, String storageProviderId)
UserProvider
null
to imported users of a specific User Storage ProviderunlinkUsers
in interface UserProvider
realm
- a reference to the realmstorageProviderId
- id of the storage providerCopyright © 2021 JBoss by Red Hat. All rights reserved.