Avatar.Size, Avatar.Type
demotedSystemProjectAvatars, demotedSystemUserAvatars
Constructor and Description |
---|
MockAvatar(long id,
String fileName,
String contentType,
Avatar.Type type,
String owner,
boolean system)
Deprecated.
|
MockAvatar(long id,
String fileName,
String contentType,
IconType iconType,
String owner,
boolean system) |
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
isSystemAvatar()
Indicates whether the Avatar is a system-provided one or if users have defined it.
|
public MockAvatar(long id, String fileName, String contentType, IconType iconType, String owner, boolean system)
@Deprecated public MockAvatar(long id, String fileName, String contentType, Avatar.Type type, String owner, boolean system)
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()
Avatar
getIconType
in interface Avatar
public String getContentType()
Avatar
getContentType
in interface Avatar
public String getFileName()
Avatar
getFileName
in interface Avatar
public Long getId()
Avatar
public 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()
Avatar
isSystemAvatar
in interface Avatar
Copyright © 2002-2018 Atlassian. All Rights Reserved.