|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.avatar.OfbizAvatarStore
public class OfbizAvatarStore
Main Store implementation for Avatars. Nearly all methods could throw a DataAccessException.
Constructor Summary | |
---|---|
OfbizAvatarStore(OfBizDelegator ofBizDelegator)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OfbizAvatarStore(OfBizDelegator ofBizDelegator)
Method Detail |
---|
public Avatar getById(Long avatarId)
AvatarStore
getById
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |