Class RegisterBean
- java.lang.Object
- 
- org.keycloak.forms.login.freemarker.model.AbstractUserProfileBean
- 
- org.keycloak.forms.login.freemarker.model.RegisterBean
 
 
- 
 public class RegisterBean extends AbstractUserProfileBean - Author:
- Stian Thorgersen, Vlastimil Elias 
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.keycloak.forms.login.freemarker.model.AbstractUserProfileBeanAbstractUserProfileBean.Attribute
 
- 
 - 
Field Summary- 
Fields inherited from class org.keycloak.forms.login.freemarker.model.AbstractUserProfileBeanattributes, attributesByName, formData, profile
 
- 
 - 
Constructor SummaryConstructors Constructor Description RegisterBean(javax.ws.rs.core.MultivaluedMap<String,String> formData, KeycloakSession session)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UserProfilecreateUserProfile(UserProfileProvider provider)Create UserProfile instance of the relevant type.protected Stream<String>getAttributeDefaultValues(String name)Get attribute default values to be pre-filled into the form on first show.StringgetContext()Get context the template is used for, so view can be customized for distinct contexts.Map<String,String>getFormData()- 
Methods inherited from class org.keycloak.forms.login.freemarker.model.AbstractUserProfileBeangetAttributes, getAttributesByName, init
 
- 
 
- 
- 
- 
Constructor Detail- 
RegisterBeanpublic RegisterBean(javax.ws.rs.core.MultivaluedMap<String,String> formData, KeycloakSession session) 
 
- 
 - 
Method Detail- 
createUserProfileprotected UserProfile createUserProfile(UserProfileProvider provider) Description copied from class:AbstractUserProfileBeanCreate UserProfile instance of the relevant type. Is called fromAbstractUserProfileBean.init(KeycloakSession, boolean).- Specified by:
- createUserProfilein class- AbstractUserProfileBean
- Parameters:
- provider- to create UserProfile from
- Returns:
- user profile instance
 
 - 
getAttributeDefaultValuesprotected Stream<String> getAttributeDefaultValues(String name) Description copied from class:AbstractUserProfileBeanGet attribute default values to be pre-filled into the form on first show.- Specified by:
- getAttributeDefaultValuesin class- AbstractUserProfileBean
- Parameters:
- name- of the attribute
- Returns:
- attribute default value (can be null)
 
 - 
getContextpublic String getContext() Description copied from class:AbstractUserProfileBeanGet context the template is used for, so view can be customized for distinct contexts.- Specified by:
- getContextin class- AbstractUserProfileBean
- Returns:
- name of the context
 
 
- 
 
-