Package com.atlassian.jira.avatar
Enum Class Avatar.Type
- All Implemented Interfaces:
Serializable
,Comparable<Avatar.Type>
,Constable
- Enclosing interface:
- Avatar
Deprecated.
An indicator of the owner type of the avatar. E.g. project, user, group, role etc.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Deprecated.This means that the type cannot be represented byAvatar.Type
.Deprecated.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic Avatar.Type
getByIconType
(IconType iconType) Deprecated.Convert from an iconType.static Avatar.Type
Deprecated.getDefaultId
(ApplicationProperties applicationProperties) Deprecated.getName()
Deprecated.The canonical String representation of the type.static boolean
supportsName
(String name) Deprecated.Check if this type name is supported byAvatar.Type
.static Avatar.Type
Deprecated.Returns the enum constant of this class with the specified name.static Avatar.Type[]
values()
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROJECT
Deprecated. -
USER
Deprecated. -
ISSUETYPE
Deprecated.- Since:
- v6.3
-
OTHER
Deprecated.This means that the type cannot be represented byAvatar.Type
. CallAvatar.getIconType()
instead.- Since:
- v7.1
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getName
Deprecated.The canonical String representation of the type.- Returns:
- the name.
-
getByName
Deprecated. -
getByIconType
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
Deprecated.Check if this type name is supported byAvatar.Type
. JIRA supports pluggableIconType
implementations, not all of which are supported byAvatar.Type
. This method can tell you if the Avatar type name you are looking for is supported byAvatar.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
Deprecated.
-
IconType
in place of this. Since v7.1