Package org.keycloak.userprofile
Enum UserProfileContext
- java.lang.Object
- 
- java.lang.Enum<UserProfileContext>
- 
- org.keycloak.userprofile.UserProfileContext
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<UserProfileContext>
 
 public enum UserProfileContext extends Enum<UserProfileContext> This interface represents the different contexts from where user profiles are managed. The core contexts are already available here representing the different parts in Keycloak where user profiles are managed. The context is crucial to drive the conditions that should be respected when managing user profiles. It might be possible to include in the future metadata about contexts. As well as support custom contexts. - Author:
- Markus Till
 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description ACCOUNTACCOUNT_OLDIDP_REVIEWREGISTRATION_PROFILEREGISTRATION_USER_CREATIONUPDATE_EMAILUPDATE_PROFILEUSER_API
 - 
Field SummaryFields Modifier and Type Field Description protected booleanresetEmailVerified
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisResetEmailVerified()static UserProfileContextvalueOf(String name)Returns the enum constant of this type with the specified name.static UserProfileContext[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
UPDATE_PROFILEpublic static final UserProfileContext UPDATE_PROFILE 
 - 
USER_APIpublic static final UserProfileContext USER_API 
 - 
ACCOUNTpublic static final UserProfileContext ACCOUNT 
 - 
ACCOUNT_OLDpublic static final UserProfileContext ACCOUNT_OLD 
 - 
IDP_REVIEWpublic static final UserProfileContext IDP_REVIEW 
 - 
REGISTRATION_PROFILEpublic static final UserProfileContext REGISTRATION_PROFILE 
 - 
REGISTRATION_USER_CREATIONpublic static final UserProfileContext REGISTRATION_USER_CREATION 
 - 
UPDATE_EMAILpublic static final UserProfileContext UPDATE_EMAIL 
 
- 
 - 
Method Detail- 
valuespublic static UserProfileContext[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UserProfileContext c : UserProfileContext.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static UserProfileContext valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
isResetEmailVerifiedpublic boolean isResetEmailVerified() - Returns:
- true means that UserModel.emailVerified flag must be reset to false in this context when email address is updated
 
 
- 
 
-