public interface AvatarStore
AvatarImpl
.Modifier and Type | Method and Description |
---|---|
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(IconType iconType)
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(IconType iconType,
String ownerId)
Provides a list of all avatars that are of the given type which have the given owner.
|
List<Avatar> |
getSystemAvatarsForFilename(IconType iconType,
String filename)
Get the system icon with a particular filename.
|
void |
update(Avatar avatar)
Updates an avatar's properties to match those in the given avatar.
|
Avatar getById(Long avatarId) throws DataAccessException
avatarId
- the avatar's id, must not be null.DataAccessException
- if there is a back-end storage problem.Avatar getByIdTagged(Long avatarId)
avatarId
- the avatar's id, must not be null.DataAccessException
- if there is a back-end storage problem.boolean delete(Long avatarId) throws DataAccessException
avatarId
- the avatar's id, must not be null.DataAccessException
- if there is a back-end storage problem.void update(Avatar avatar) throws DataAccessException
avatar
- the avatar to update, must not be null.DataAccessException
- if there is a back-end storage problem.Avatar create(Avatar avatar) throws DataAccessException
avatar
- the to create, must not be null, must have a null id.DataAccessException
- if there is a back-end storage problem.List<Avatar> getAllSystemAvatars(IconType iconType) throws DataAccessException
iconType
- the types of avatar to retrieveDataAccessException
- if there is a back-end database problem.List<Avatar> getCustomAvatarsForOwner(IconType iconType, String ownerId) throws DataAccessException
iconType
- the desired type of the avatars to retrieve.ownerId
- the id of the owner, matches the type (project id or user key).DataAccessException
- if there is a back-end database problem.List<Avatar> getSystemAvatarsForFilename(IconType iconType, String filename) throws DataAccessException
iconType
- The type of icon to return.filename
- The filename.DataAccessException
- back end DB problem.Copyright © 2002-2019 Atlassian. All Rights Reserved.