Avatar.Size, Avatar.Type
demotedSystemProjectAvatars
Modifier and Type | Method and Description |
---|---|
static AvatarImpl |
createCustomAvatar(String fileName,
ApplicationUser owner) |
static AvatarImpl |
createCustomAvatar(String fileName,
String contentType,
Project owner) |
static AvatarImpl |
createCustomAvatar(String fileName,
String contentType,
String ownerId,
Avatar.Type type) |
static AvatarImpl |
createSystemAvatar(String fileName,
String contentType,
Avatar.Type avatarType)
Factory method for creating a system Avatar to be created by
AvatarManager . |
boolean |
equals(Object o) |
Avatar.Type |
getAvatarType()
The type of Avatar.
|
String |
getContentType()
The MIME type of the avatar image file.
|
String |
getFileName()
The base filename to the avatar image file.
|
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()
A String representation of the identity of the domain object that this avatar is an avatar for!
For example, if it is a user avatar, it would be the username (since that is the primary key), for a Project
it is the project ID as a String.
|
int |
hashCode() |
static boolean |
isOldSystemAvatar(Avatar.Type type,
String filename) |
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, Avatar.Type type)
public static AvatarImpl createCustomAvatar(String fileName, String contentType, Project owner)
public static AvatarImpl createCustomAvatar(String fileName, ApplicationUser owner)
public static AvatarImpl createSystemAvatar(String fileName, String contentType, Avatar.Type avatarType)
AvatarManager
.public Avatar.Type getAvatarType()
Avatar
getAvatarType
in interface Avatar
public String getFileName()
Avatar
getFileName
in interface Avatar
@Nonnull public String getContentType()
Avatar
getContentType
in interface Avatar
public Long getId()
Avatar
public String getOwner()
Avatar
Avatar.Type
.public boolean isSystemAvatar()
Avatar
isSystemAvatar
in interface Avatar
public static boolean isOldSystemAvatar(Avatar.Type type, String filename)
Copyright © 2002-2015 Atlassian. All Rights Reserved.