Enum Class Avatar.Type

java.lang.Object
java.lang.Enum<Avatar.Type>
com.atlassian.jira.avatar.Avatar.Type
All Implemented Interfaces:
Serializable, Comparable<Avatar.Type>, Constable
Enclosing interface:
Avatar

@Deprecated public static enum Avatar.Type extends Enum<Avatar.Type>
Deprecated.
Use IconType in place of this. Since v7.1
An indicator of the owner type of the avatar. E.g. project, user, group, role etc.
  • Enum Constant Details

  • Method Details

    • values

      public static Avatar.Type[] values()
      Deprecated.
      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 Avatar.Type valueOf(String name)
      Deprecated.
      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
    • getName

      public String getName()
      Deprecated.
      The canonical String representation of the type.
      Returns:
      the name.
    • getByName

      public static Avatar.Type getByName(String name)
      Deprecated.
    • getByIconType

      public static Avatar.Type getByIconType(IconType iconType)
      Deprecated.
      Convert from an iconType.
      Parameters:
      iconType - The iconType to look up.
      Returns:
      Returns the correct Type if this iconType can be represented, or else returns OTHER.
    • supportsName

      public static boolean supportsName(String name)
      Deprecated.
      Check if this type name is supported by Avatar.Type. JIRA supports pluggable IconType implementations, not all of which are supported by Avatar.Type. This method can tell you if the Avatar type name you are looking for is supported by Avatar.Type.
      Parameters:
      name - The type name to look up.
      Returns:
      true if this name is supported. That is, if true is returned, then getByName(String)} will return a valid value.
      Since:
      7.1
    • getDefaultId

      public Long getDefaultId(ApplicationProperties applicationProperties)
      Deprecated.