public void setThumbnailUrl(String thumbnailUrl) { ListField photo = getListFieldWithType(THUMBNAIL_PHOTO_TYPE, getPhotos()); if (photo != null) { photo.setValue(thumbnailUrl); } else { if (thumbnailUrl != null) setPhotos(addListField(new ListFieldImpl(THUMBNAIL_PHOTO_TYPE, thumbnailUrl), getPhotos())); } }
public void setThumbnailUrl(String thumbnailUrl) { ListField photo = getListFieldWithType(THUMBNAIL_PHOTO_TYPE, getPhotos()); if (photo != null) { photo.setValue(thumbnailUrl); } else { if (thumbnailUrl != null) setPhotos(addListField(new ListFieldImpl(THUMBNAIL_PHOTO_TYPE, thumbnailUrl), getPhotos())); } }
public void setThumbnailUrl(String thumbnailUrl) { ListField photo = getListFieldWithType(THUMBNAIL_PHOTO_TYPE, getPhotos()); if (photo != null) { photo.setValue(thumbnailUrl); } else { if (thumbnailUrl != null) setPhotos(addListField(new ListFieldImpl(THUMBNAIL_PHOTO_TYPE, thumbnailUrl), getPhotos())); } }
private ListField getNewEmail(int i) { String targetAddress = "xyz" + i + "@testdataset.com"; ListField email = findOne(EmailDb.FINDBY_EMAIL, new String[] { EmailDb.PARAM_EMAIL }, new Object[] { targetAddress }); if (email == null) { email = new EmailDb(); email.setValue(targetAddress); email.setType("emailType"); } return email; }