Avatar.Size, Avatar.TypedemotedSystemProjectAvatars, demotedSystemUserAvatars| Modifier and Type | Method and Description |
|---|---|
static AvatarImpl |
createCustomAvatar(String fileName,
String contentType,
String ownerId,
IconType iconType) |
static AvatarImpl |
createSystemAvatar(String fileName,
String contentType,
IconType iconType)
Factory method for creating a system Avatar to be created by
AvatarManager. |
boolean |
equals(Object o) |
Avatar.Type |
getAvatarType()
Returns the avatar type.
|
String |
getContentType()
The MIME type of the avatar image file.
|
String |
getFileName()
The base filename to the avatar image file.
|
IconType |
getIconType()
Get the icon type.
|
Long |
getId()
The database identifier for the Avatar, may be null if it hasn't yet been stored or if database identifiers are
not supported.
|
String |
getOwner()
Returns the identity of the domain object that this avatar is an avatar for.
|
int |
hashCode() |
boolean |
isSystemAvatar()
Indicates whether the Avatar is a system-provided one or if users have defined it.
|
public static AvatarImpl createCustomAvatar(String fileName, String contentType, String ownerId, IconType iconType)
public static AvatarImpl createSystemAvatar(String fileName, String contentType, IconType iconType)
AvatarManager.@Nonnull public Avatar.Type getAvatarType()
Avatar
Since v7.1 plugins can add avatars to arbitrary entities.
The enum will just return Avatar.Type.OTHER if the Avatar is for a custom entity.
getAvatarType in interface Avatar@Nonnull public IconType getIconType()
AvatargetIconType in interface Avatarpublic String getFileName()
AvatargetFileName in interface Avatar@Nonnull public String getContentType()
AvatargetContentType in interface Avatarpublic Long getId()
Avatarpublic String getOwner()
Avatar
For example, if it is a user avatar, it would be the user key (since that is the primary key), for a Project
it is the project ID as a String. The meaning of this should be determined by the IconType.
For a non-system avatar (see Avatar.isSystemAvatar()}, the owner is never null. For a system avatar, the owner
is always null.
public boolean isSystemAvatar()
AvatarisSystemAvatar in interface AvatarCopyright © 2002-2023 Atlassian. All Rights Reserved.