|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.avatar.AvatarImpl
public final class AvatarImpl
Immutable implementation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.avatar.Avatar |
---|
Avatar.Size, Avatar.Type |
Field Summary |
---|
Fields inherited from interface com.atlassian.jira.avatar.Avatar |
---|
demotedSystemProjectAvatars |
Method Summary | |
---|---|
static AvatarImpl |
createCustomAvatar(String fileName,
String contentType,
ApplicationUser owner)
|
static AvatarImpl |
createCustomAvatar(String fileName,
String contentType,
Project owner)
Factory method for creating a custom Avatar to be created by AvatarManager . |
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AvatarImpl createCustomAvatar(String fileName, String contentType, Project owner)
AvatarManager
.
public static AvatarImpl createCustomAvatar(String fileName, String contentType, 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
@NotNull public String getContentType()
Avatar
getContentType
in interface Avatar
public Long getId()
Avatar
getId
in interface Avatar
public String getOwner()
Avatar
Avatar.Type
.
getOwner
in interface Avatar
public boolean isSystemAvatar()
Avatar
isSystemAvatar
in interface Avatar
public static boolean isOldSystemAvatar(Avatar.Type type, String filename)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |