use of fi.otavanopisto.muikku.schooldata.entity.UserImage in project muikku by otavanopisto.
the class LocalUserSchoolDataBridge method listUserImagesByUserIdentifier.
/**
* {@inheritDoc}
*/
@Override
public List<UserImage> listUserImagesByUserIdentifier(String userIdentifier) {
List<UserImage> result = new ArrayList<>();
List<LocalUserImage> images = localUserSchoolDataController.listUserImagesByUserIdentifier(userIdentifier);
for (LocalUserImage image : images) {
UserImage userImage = toLocalUserImageImpl(image);
if (userImage != null) {
result.add(userImage);
} else {
throw new SchoolDataBridgeInternalException("Unexpected error occured while listing LocalUserImages");
}
}
return result;
}
Aggregations