public class UserUpdateHelper extends Object
Constructor and Description |
---|
UserUpdateHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
updateAccount(RealmModel realm,
UserModel user,
UserProfile updatedProfile) |
static void |
updateAccountOldConsole(RealmModel realm,
UserModel user,
UserProfile updatedProfile)
Deprecated.
Remove this method as soon as the old console is no longer part of the distribution
|
static void |
updateIdpReview(RealmModel realm,
UserModel userModelDelegate,
UserProfile updatedProfile) |
static void |
updateRegistrationProfile(RealmModel realm,
UserModel currentUser,
UserProfile updatedUser) |
static void |
updateRegistrationUserCreation(RealmModel realm,
UserModel currentUser,
UserProfile updatedUser) |
static void |
updateUserProfile(RealmModel realm,
UserModel user,
UserProfile updatedProfile) |
static void |
updateUserResource(KeycloakSession session,
UserModel user,
UserRepresentation rep,
boolean removeExistingAttributes) |
public static void updateRegistrationProfile(RealmModel realm, UserModel currentUser, UserProfile updatedUser)
public static void updateRegistrationUserCreation(RealmModel realm, UserModel currentUser, UserProfile updatedUser)
public static void updateIdpReview(RealmModel realm, UserModel userModelDelegate, UserProfile updatedProfile)
public static void updateUserProfile(RealmModel realm, UserModel user, UserProfile updatedProfile)
public static void updateAccount(RealmModel realm, UserModel user, UserProfile updatedProfile)
@Deprecated public static void updateAccountOldConsole(RealmModel realm, UserModel user, UserProfile updatedProfile)
This method should be used when account is updated through the old console where the behavior is different than when using the new Account REST API and console in regards to how user attributes are managed.
realm
- user
- updatedProfile
- public static void updateUserResource(KeycloakSession session, UserModel user, UserRepresentation rep, boolean removeExistingAttributes)
Copyright © 2021 JBoss by Red Hat. All rights reserved.