Package com.mxraven.admin.model
Class LdapAttributes.Builder
java.lang.Object
com.mxraven.admin.model.LdapAttributes.Builder
- Enclosing class:
- LdapAttributes
Builds
LdapAttributes instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavatarUrlAttribute(String avatarUrlAttribute) Sets the avatar-URL attribute mapping.build()Builds the configured attribute mapping.displayNameAttribute(String displayNameAttribute) Sets the display-name attribute mapping.emailAttribute(String emailAttribute) Sets the email attribute mapping.emailVerifiedAttribute(String emailVerifiedAttribute) Sets the email-verification attribute mapping.firstNameAttribute(String firstNameAttribute) Sets the given-name attribute mapping.idAttribute(String idAttribute) Sets the identifier attribute mapping.lastNameAttribute(String lastNameAttribute) Sets the family-name attribute mapping.nickNameAttribute(String nickNameAttribute) Sets the nickname attribute mapping.phoneAttribute(String phoneAttribute) Sets the phone attribute mapping.phoneVerifiedAttribute(String phoneVerifiedAttribute) Sets the phone-verification attribute mapping.preferredLanguageAttribute(String preferredLanguageAttribute) Sets the preferred-language attribute mapping.preferredUsernameAttribute(String preferredUsernameAttribute) Sets the preferred-username attribute mapping.profileAttribute(String profileAttribute) Sets the profile attribute mapping.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
idAttribute
Sets the identifier attribute mapping.- Parameters:
idAttribute- LDAP attribute mapped to the identifier- Returns:
- this builder
-
firstNameAttribute
Sets the given-name attribute mapping.- Parameters:
firstNameAttribute- LDAP attribute mapped to the given name- Returns:
- this builder
-
lastNameAttribute
Sets the family-name attribute mapping.- Parameters:
lastNameAttribute- LDAP attribute mapped to the family name- Returns:
- this builder
-
displayNameAttribute
Sets the display-name attribute mapping.- Parameters:
displayNameAttribute- LDAP attribute mapped to the display name- Returns:
- this builder
-
nickNameAttribute
Sets the nickname attribute mapping.- Parameters:
nickNameAttribute- LDAP attribute mapped to the nickname- Returns:
- this builder
-
preferredUsernameAttribute
Sets the preferred-username attribute mapping.- Parameters:
preferredUsernameAttribute- LDAP attribute mapped to the preferred username- Returns:
- this builder
-
emailAttribute
Sets the email attribute mapping.- Parameters:
emailAttribute- LDAP attribute mapped to the email address- Returns:
- this builder
-
emailVerifiedAttribute
Sets the email-verification attribute mapping.- Parameters:
emailVerifiedAttribute- LDAP attribute mapped to the email verification flag- Returns:
- this builder
-
phoneAttribute
Sets the phone attribute mapping.- Parameters:
phoneAttribute- LDAP attribute mapped to the phone number- Returns:
- this builder
-
phoneVerifiedAttribute
Sets the phone-verification attribute mapping.- Parameters:
phoneVerifiedAttribute- LDAP attribute mapped to the phone verification flag- Returns:
- this builder
-
preferredLanguageAttribute
Sets the preferred-language attribute mapping.- Parameters:
preferredLanguageAttribute- LDAP attribute mapped to the preferred language- Returns:
- this builder
-
avatarUrlAttribute
Sets the avatar-URL attribute mapping.- Parameters:
avatarUrlAttribute- LDAP attribute mapped to the avatar URL- Returns:
- this builder
-
profileAttribute
Sets the profile attribute mapping.- Parameters:
profileAttribute- LDAP attribute mapped to the profile- Returns:
- this builder
-
build
Builds the configured attribute mapping.- Returns:
- the built attributes
-