@PublicApi
public interface Avatar
Modifier and Type | Interface and Description |
---|---|
static class |
Avatar.Size
The standard sizes for avatars.
|
static class |
Avatar.Type
Deprecated.
Use
IconType in place of this. Since v7.1 |
Modifier and Type | Field and Description |
---|---|
static List<String> |
demotedSystemProjectAvatars
These are the filenames of avatars that used to be available as system avatars, but were
to be removed from the list of avatar options available to new projects.
|
static List<String> |
demotedSystemUserAvatars |
Modifier and Type | Method and Description |
---|---|
Avatar.Type |
getAvatarType()
Deprecated.
Use
getIconType() instead. Since v7.1 |
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.
|
boolean |
isSystemAvatar()
Indicates whether the Avatar is a system-provided one or if users have defined it.
|
static final List<String> demotedSystemProjectAvatars
@Nonnull Avatar.Type getAvatarType()
getIconType()
instead. Since v7.1
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.
@Nonnull IconType getIconType()
@Nonnull String getFileName()
@Nonnull String getContentType()
Long getId()
String getOwner()
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 isSystemAvatar()
}, the owner is never null. For a system avatar, the owner
is always null.
boolean isSystemAvatar()
Copyright © 2002-2017 Atlassian. All Rights Reserved.