Class LdapAttributes.Builder

java.lang.Object
com.mxraven.admin.model.LdapAttributes.Builder
Enclosing class:
LdapAttributes

public static final class LdapAttributes.Builder extends Object
Builds LdapAttributes instances.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • idAttribute

      public LdapAttributes.Builder idAttribute(String idAttribute)
      Sets the identifier attribute mapping.
      Parameters:
      idAttribute - LDAP attribute mapped to the identifier
      Returns:
      this builder
    • firstNameAttribute

      public LdapAttributes.Builder firstNameAttribute(String firstNameAttribute)
      Sets the given-name attribute mapping.
      Parameters:
      firstNameAttribute - LDAP attribute mapped to the given name
      Returns:
      this builder
    • lastNameAttribute

      public LdapAttributes.Builder lastNameAttribute(String lastNameAttribute)
      Sets the family-name attribute mapping.
      Parameters:
      lastNameAttribute - LDAP attribute mapped to the family name
      Returns:
      this builder
    • displayNameAttribute

      public LdapAttributes.Builder displayNameAttribute(String displayNameAttribute)
      Sets the display-name attribute mapping.
      Parameters:
      displayNameAttribute - LDAP attribute mapped to the display name
      Returns:
      this builder
    • nickNameAttribute

      public LdapAttributes.Builder nickNameAttribute(String nickNameAttribute)
      Sets the nickname attribute mapping.
      Parameters:
      nickNameAttribute - LDAP attribute mapped to the nickname
      Returns:
      this builder
    • preferredUsernameAttribute

      public LdapAttributes.Builder preferredUsernameAttribute(String preferredUsernameAttribute)
      Sets the preferred-username attribute mapping.
      Parameters:
      preferredUsernameAttribute - LDAP attribute mapped to the preferred username
      Returns:
      this builder
    • emailAttribute

      public LdapAttributes.Builder emailAttribute(String emailAttribute)
      Sets the email attribute mapping.
      Parameters:
      emailAttribute - LDAP attribute mapped to the email address
      Returns:
      this builder
    • emailVerifiedAttribute

      public LdapAttributes.Builder emailVerifiedAttribute(String emailVerifiedAttribute)
      Sets the email-verification attribute mapping.
      Parameters:
      emailVerifiedAttribute - LDAP attribute mapped to the email verification flag
      Returns:
      this builder
    • phoneAttribute

      public LdapAttributes.Builder phoneAttribute(String phoneAttribute)
      Sets the phone attribute mapping.
      Parameters:
      phoneAttribute - LDAP attribute mapped to the phone number
      Returns:
      this builder
    • phoneVerifiedAttribute

      public LdapAttributes.Builder phoneVerifiedAttribute(String phoneVerifiedAttribute)
      Sets the phone-verification attribute mapping.
      Parameters:
      phoneVerifiedAttribute - LDAP attribute mapped to the phone verification flag
      Returns:
      this builder
    • preferredLanguageAttribute

      public LdapAttributes.Builder preferredLanguageAttribute(String preferredLanguageAttribute)
      Sets the preferred-language attribute mapping.
      Parameters:
      preferredLanguageAttribute - LDAP attribute mapped to the preferred language
      Returns:
      this builder
    • avatarUrlAttribute

      public LdapAttributes.Builder avatarUrlAttribute(String avatarUrlAttribute)
      Sets the avatar-URL attribute mapping.
      Parameters:
      avatarUrlAttribute - LDAP attribute mapped to the avatar URL
      Returns:
      this builder
    • profileAttribute

      public LdapAttributes.Builder profileAttribute(String profileAttribute)
      Sets the profile attribute mapping.
      Parameters:
      profileAttribute - LDAP attribute mapped to the profile
      Returns:
      this builder
    • build

      public LdapAttributes build()
      Builds the configured attribute mapping.
      Returns:
      the built attributes