Enum Class AccountDefaultDisplayName

java.lang.Object
java.lang.Enum<AccountDefaultDisplayName>
com.google.gerrit.extensions.common.AccountDefaultDisplayName
All Implemented Interfaces:
Serializable, Comparable<AccountDefaultDisplayName>, java.lang.constant.Constable

public enum AccountDefaultDisplayName extends Enum<AccountDefaultDisplayName>
Fallback rule for choosing a display name, if it is not explicitly set. This rule will not be applied by the backend, but should be applied by the user interface.
  • Enum Constant Details

    • FULL_NAME

      public static final AccountDefaultDisplayName FULL_NAME
      If the display name for an account is not set, then the (full) name will be used as the display name in the user interface.
    • FIRST_NAME

      public static final AccountDefaultDisplayName FIRST_NAME
      If the display name for an account is not set, then the first name (i.e. full name until first whitespace character) will be used as the display name in the user interface.
    • USERNAME

      public static final AccountDefaultDisplayName USERNAME
      If the display name for an account is not set, then the username will be used as the display name in the user interface. If the username is also not set, then the (full) name will be used.
  • Method Details

    • values

      public static AccountDefaultDisplayName[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AccountDefaultDisplayName valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null