|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.mock.MockAvatar
public class MockAvatar
Non production bean implementation of Avatar
.
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 |
Constructor Summary | |
---|---|
MockAvatar(long id,
String fileName,
String contentType,
Avatar.Type type,
String owner,
boolean system)
|
Method Summary | |
---|---|
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. |
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockAvatar(long id, String fileName, String contentType, Avatar.Type type, String owner, boolean system)
Method Detail |
---|
public Avatar.Type getAvatarType()
Avatar
getAvatarType
in interface Avatar
public String getContentType()
Avatar
getContentType
in interface Avatar
public String getFileName()
Avatar
getFileName
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |