|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.avatar.CachingTaggingAvatarStore
public class CachingTaggingAvatarStore
Avatar store which converts legacy avatar files to the new tagged format during retrieval
Field Summary | |
---|---|
static String |
AVATAR_ENTITY
|
static String |
AVATAR_TYPE
|
static String |
CONTENT_TYPE
|
static String |
FILE_NAME
|
static String |
ID
|
static String |
OWNER
|
static String |
SYSTEM_AVATAR
|
Constructor Summary | |
---|---|
CachingTaggingAvatarStore(OfBizDelegator ofBizDelegator,
AvatarTagger avatarTagger,
com.atlassian.cache.CacheManager cacheManager)
|
Method Summary | |
---|---|
Avatar |
create(Avatar avatar)
Creates an avatar with the properties of the given avatar. |
boolean |
delete(Long avatarId)
Permanently removes the avatar from the system. |
List<Avatar> |
getAllSystemAvatars(Avatar.Type type)
Provides a list of all system avatars. |
Avatar |
getById(Long avatarId)
Retrieves the Avatar by id. |
Avatar |
getByIdTagged(Long avatarId)
Retrieves the Avatar by id, ensuring the avatar file is tagged with metadata identifying the image came from JIRA. |
List<Avatar> |
getCustomAvatarsForOwner(Avatar.Type type,
String ownerId)
Provides a list of all avatars that are of the given type which have the given owner. |
void |
update(Avatar avatar)
Updates an avatar's properties to match those in the given avatar. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String AVATAR_ENTITY
public static final String ID
public static final String FILE_NAME
public static final String CONTENT_TYPE
public static final String AVATAR_TYPE
public static final String OWNER
public static final String SYSTEM_AVATAR
Constructor Detail |
---|
public CachingTaggingAvatarStore(OfBizDelegator ofBizDelegator, AvatarTagger avatarTagger, com.atlassian.cache.CacheManager cacheManager)
Method Detail |
---|
public Avatar getById(Long avatarId)
AvatarStore
getById
in interface AvatarStore
avatarId
- the avatar's id, must not be null.
public Avatar getByIdTagged(Long avatarId)
AvatarStore
getByIdTagged
in interface AvatarStore
avatarId
- the avatar's id, must not be null.
public boolean delete(Long avatarId)
AvatarStore
delete
in interface AvatarStore
avatarId
- the avatar's id, must not be null.
public void update(Avatar avatar)
AvatarStore
update
in interface AvatarStore
avatar
- the avatar to update, must not be null.public Avatar create(Avatar avatar)
AvatarStore
create
in interface AvatarStore
avatar
- the to create, must not be null, must have a null id.
public List<Avatar> getAllSystemAvatars(Avatar.Type type)
AvatarStore
getAllSystemAvatars
in interface AvatarStore
type
- the types of avatar to retrieve
public List<Avatar> getCustomAvatarsForOwner(Avatar.Type type, String ownerId)
AvatarStore
getCustomAvatarsForOwner
in interface AvatarStore
type
- the desired type of the avatars to retrieve.ownerId
- the id of the owner, matches the type (project id or user key).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |