|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AvatarStore
Persistent storage mechanism for AvatarImpl
.
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. |
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. |
Method Detail |
---|
Avatar getById(Long avatarId) throws DataAccessException
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(Avatar.Type type) throws DataAccessException
type
- the types of avatar to retrieve
DataAccessException
- if there is a back-end database problem.List<Avatar> getCustomAvatarsForOwner(Avatar.Type type, String ownerId) throws DataAccessException
type
- the desired type of the avatars to retrieve.ownerId
- the id of the owner, matches the type.
DataAccessException
- if there is a back-end database problem.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |