public class MongoUserProvider extends Object implements UserProvider
| Constructor and Description |
|---|
MongoUserProvider(KeycloakSession session,
MongoStoreInvocationContext invocationContext) |
public MongoUserProvider(KeycloakSession session, MongoStoreInvocationContext invocationContext)
public void close()
close in interface UserProviderclose in interface Providerpublic UserAdapter getUserById(String id, RealmModel realm)
getUserById in interface UserLookupProviderpublic UserModel getUserByUsername(String username, RealmModel realm)
getUserByUsername in interface UserLookupProviderpublic UserModel getUserByEmail(String email, RealmModel realm)
getUserByEmail in interface UserLookupProviderpublic List<UserModel> getGroupMembers(RealmModel realm, GroupModel group, int firstResult, int maxResults)
getGroupMembers in interface UserQueryProviderprotected MongoStore getMongoStore()
public List<UserModel> getGroupMembers(RealmModel realm, GroupModel group)
getGroupMembers in interface UserQueryProviderpublic UserModel getUserByFederatedIdentity(FederatedIdentityModel socialLink, RealmModel realm)
getUserByFederatedIdentity in interface UserProviderpublic UserModel getServiceAccount(ClientModel client)
getServiceAccount in interface UserProviderprotected List<UserModel> convertUserEntities(RealmModel realm, List<MongoUserEntity> userEntities)
public List<UserModel> getUsers(RealmModel realm)
getUsers in interface UserQueryProviderpublic List<UserModel> getUsers(RealmModel realm, int firstResult, int maxResults)
getUsers in interface UserQueryProviderpublic List<UserModel> getUsers(RealmModel realm, boolean includeServiceAccounts)
getUsers in interface UserProviderpublic int getUsersCount(RealmModel realm)
getUsersCount in interface UserQueryProviderpublic List<UserModel> getUsers(RealmModel realm, int firstResult, int maxResults, boolean includeServiceAccounts)
getUsers in interface UserProviderpublic List<UserModel> searchForUser(String search, RealmModel realm)
UserQueryProvidersearchForUser in interface UserQueryProviderpublic List<UserModel> searchForUser(String search, RealmModel realm, int firstResult, int maxResults)
UserQueryProvidersearchForUser in interface UserQueryProviderpublic List<UserModel> searchForUser(Map<String,String> attributes, RealmModel realm)
UserQueryProvidersearchForUser in interface UserQueryProviderpublic List<UserModel> searchForUser(Map<String,String> attributes, RealmModel realm, int firstResult, int maxResults)
UserQueryProvidersearchForUser in interface UserQueryProviderpublic List<UserModel> searchForUserByUserAttribute(String attrName, String attrValue, RealmModel realm)
searchForUserByUserAttribute in interface UserQueryProviderpublic Set<FederatedIdentityModel> getFederatedIdentities(UserModel userModel, RealmModel realm)
getFederatedIdentities in interface UserProviderpublic FederatedIdentityModel getFederatedIdentity(UserModel user, String socialProvider, RealmModel realm)
getFederatedIdentity in interface UserProviderpublic UserAdapter addUser(RealmModel realm, String id, String username, boolean addDefaultRoles, boolean addDefaultRequiredActions)
UserProvideraddUser in interface UserProviderprotected UserAdapter addUserEntity(RealmModel realm, String id, String username)
public boolean removeUser(RealmModel realm, UserModel user)
removeUser in interface UserRegistrationProviderpublic void addFederatedIdentity(RealmModel realm, UserModel user, FederatedIdentityModel identity)
addFederatedIdentity in interface UserProviderpublic void updateFederatedIdentity(RealmModel realm, UserModel federatedUser, FederatedIdentityModel federatedIdentityModel)
updateFederatedIdentity in interface UserProviderpublic boolean removeFederatedIdentity(RealmModel realm, UserModel userModel, String socialProvider)
removeFederatedIdentity in interface UserProviderpublic UserModel addUser(RealmModel realm, String username)
addUser in interface UserRegistrationProviderpublic void grantToAllUsers(RealmModel realm, RoleModel role)
grantToAllUsers in interface UserRegistrationProviderpublic void preRemove(RealmModel realm)
preRemove in interface UserProviderpublic void preRemove(RealmModel realm, UserFederationProviderModel link)
preRemove in interface UserProviderpublic void preRemove(RealmModel realm, ClientModel client)
preRemove in interface UserProviderpublic void preRemove(ProtocolMapperModel protocolMapper)
preRemove in interface UserProviderpublic void preRemove(RealmModel realm, GroupModel group)
preRemove in interface UserProviderpublic void preRemove(RealmModel realm, RoleModel role)
preRemove in interface UserProviderpublic boolean validCredentials(KeycloakSession session, RealmModel realm, UserModel user, List<UserCredentialModel> input)
validCredentials in interface UserCredentialValidatorProviderpublic boolean validCredentials(KeycloakSession session, RealmModel realm, UserModel user, UserCredentialModel... input)
validCredentials in interface UserProviderpublic CredentialValidationOutput validCredentials(KeycloakSession session, RealmModel realm, UserCredentialModel... input)
validCredentials in interface UserProviderpublic void addConsent(RealmModel realm, UserModel user, UserConsentModel consent)
addConsent in interface UserProviderpublic UserConsentModel getConsentByClient(RealmModel realm, UserModel user, String clientId)
getConsentByClient in interface UserProviderpublic List<UserConsentModel> getConsents(RealmModel realm, UserModel user)
getConsents in interface UserProviderpublic void updateConsent(RealmModel realm, UserModel user, UserConsentModel consent)
updateConsent in interface UserProviderpublic boolean revokeConsentForClient(RealmModel realm, UserModel user, String clientId)
revokeConsentForClient in interface UserProviderpublic void preRemove(RealmModel realm, ComponentModel component)
preRemove in interface UserProviderCopyright © 2016 JBoss by Red Hat. All rights reserved.