@Service public class AvatarServiceImpl extends java.lang.Object implements AvatarService
| Constructor and Description |
|---|
AvatarServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
AvatarData |
find(java.lang.String id) |
AvatarId |
findDefaultAvatarId(AvatarType type) |
java.lang.Boolean |
isDefaultAvatarAvailable(AvatarType type) |
AvatarId |
newAvatar(AvatarType type,
AvatarData avatarData) |
AvatarId |
newAvatar(AvatarType type,
org.springframework.core.io.Resource resource) |
AvatarId |
newDefaultAvatar(AvatarType type,
AvatarData avatarData) |
@Transactional public AvatarData find(java.lang.String id) throws AvatarNotFoundException
find in interface AvatarServiceAvatarNotFoundException@Transactional public AvatarId newAvatar(AvatarType type, AvatarData avatarData)
newAvatar in interface AvatarService@Transactional public AvatarId newAvatar(AvatarType type, org.springframework.core.io.Resource resource) throws AvatarImageResizeException
newAvatar in interface AvatarServiceAvatarImageResizeException@Transactional public AvatarId newDefaultAvatar(AvatarType type, AvatarData avatarData)
newDefaultAvatar in interface AvatarService@Transactional public AvatarId findDefaultAvatarId(AvatarType type)
findDefaultAvatarId in interface AvatarService@Transactional public java.lang.Boolean isDefaultAvatarAvailable(AvatarType type)
isDefaultAvatarAvailable in interface AvatarService