Class UserInfo

  • All Implemented Interfaces:
    Serializable

    public final class UserInfo
    extends Object
    implements Serializable
    Basic information about the formcycle user profile of a user.
    Since:
    8.5.0
    Author:
    Norman Lorenz
    See Also:
    Serialized Form
    • Constructor Detail

      • UserInfo

        public UserInfo​(UserId id,
                        String displayName,
                        UserEmail primaryEmail,
                        Locale defaultLocale)
        Creates a new UserInfo instance.
        Parameters:
        id - The ID of the user profile.
        displayName - The name of the user for display purposes.
        primaryEmail - The primary email address of the user, or null if the user has none.
        defaultLocale - The preferred locale of the user, or null if the user has not chosen one.
    • Method Detail

      • getId

        public UserId getId()
        The ID of the user profile.
      • getDisplayName

        public String getDisplayName()
        The name of the user for display purposes.
      • getPrimaryEmail

        public UserEmail getPrimaryEmail()
        The primary email address of the user, or null if the user has none.
      • getDefaultLocale

        public Locale getDefaultLocale()
        The preferred locale of the user, or null if the user has not chosen one.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object