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())); } }
@Before public void setUp() throws Exception { Injector injector = Guice.createInjector(new SocialApiTestsGuiceModule()); johnDoe = new PersonImpl("johnDoeId", "Johnny", new NameImpl("John Doe")); johnDoe.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl( "home", "+33H000000000"), new ListFieldImpl("mobile", "+33M000000000"), new ListFieldImpl("work", "+33W000000000"))); johnDoe.setAddresses(Lists.<Address> newArrayList(new AddressImpl( "My home address"))); johnDoe.setEmails(Lists.<ListField> newArrayList(new ListFieldImpl("work", "john.doe@work.bar"), new ListFieldImpl("home", "john.doe@home.bar"))); activity = new ActivityImpl("activityId", johnDoe.getId()); activity.setUrl("http://foo.com/"); activity.setMediaItems(Lists.<MediaItem> newArrayList(new MediaItemImpl( "image/jpg", MediaItem.Type.IMAGE, "http://foo.bar"))); beanXmlConverter = new BeanXStreamConverter(new XStream081Configuration(injector)); }
@Before public void setUp() throws Exception { Injector injector = Guice.createInjector(new SocialApiTestsGuiceModule()); johnDoe = new PersonImpl("johnDoeId", "Johnny", new NameImpl("John Doe")); johnDoe.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl( "home", "+33H000000000"), new ListFieldImpl("mobile", "+33M000000000"), new ListFieldImpl("work", "+33W000000000"))); johnDoe.setAddresses(Lists.<Address> newArrayList(new AddressImpl( "My home address"))); johnDoe.setEmails(Lists.<ListField> newArrayList(new ListFieldImpl("work", "john.doe@work.bar"), new ListFieldImpl("home", "john.doe@home.bar"))); activity = new ActivityImpl("activityId", johnDoe.getId()); activity.setUrl("http://foo.com/"); activity.setMediaItems(Lists.<MediaItem> newArrayList(new MediaItemImpl( "image/jpg", MediaItem.Type.IMAGE, "http://foo.bar"))); beanXmlConverter = new BeanXStreamConverter(new XStream081Configuration(injector)); }
@Before public void setUp() throws Exception { Injector injector = Guice.createInjector(new SocialApiTestsGuiceModule()); johnDoe = new PersonImpl("johnDoeId", "Johnny", new NameImpl("John Doe")); johnDoe.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl( "home", "+33H000000000"), new ListFieldImpl("mobile", "+33M000000000"), new ListFieldImpl("work", "+33W000000000"))); johnDoe.setAddresses(Lists.<Address> newArrayList(new AddressImpl( "My home address"))); johnDoe.setEmails(Lists.<ListField> newArrayList(new ListFieldImpl("work", "john.doe@work.bar"), new ListFieldImpl("home", "john.doe@home.bar"))); activity = new ActivityImpl("activityId", johnDoe.getId()); activity.setUrl("http://foo.com/"); activity.setMediaItems(Lists.<MediaItem> newArrayList(new MediaItemImpl( "image/jpg", MediaItem.Type.IMAGE, "http://foo.bar"))); beanXmlConverter = new BeanXStreamConverter(new XStream081Configuration(injector)); }
@Before public void setUp() throws Exception { Injector injector = Guice.createInjector(new SocialApiTestsGuiceModule()); johnDoe = new PersonImpl("johnDoeId", "Johnny", new NameImpl("John Doe")); johnDoe.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl( "home", "+33H000000000"), new ListFieldImpl("mobile", "+33M000000000"), new ListFieldImpl("work", "+33W000000000"))); johnDoe.setAddresses(Lists.<Address> newArrayList(new AddressImpl( "My home address"))); johnDoe.setEmails(Lists.<ListField> newArrayList(new ListFieldImpl("work", "john.doe@work.bar"), new ListFieldImpl("home", "john.doe@home.bar"))); activity = new ActivityImpl("activityId", johnDoe.getId()); MediaItemImpl mediaItem = new MediaItemImpl(); mediaItem.setMimeType("image/jpg"); mediaItem.setType(MediaItem.Type.IMAGE); mediaItem.setUrl("http://foo.bar"); mediaItem.setLocation(new AddressImpl("Foo bar address")); mediaItem.setNumViews("10000"); activity.setMediaItems(Lists.<MediaItem> newArrayList(mediaItem)); activity.setUrl("http://foo.com"); beanXmlConverter = new BeanXStreamAtomConverter( new XStream081Configuration(injector)); }
@Before public void setUp() throws Exception { Injector injector = Guice.createInjector(new SocialApiTestsGuiceModule()); johnDoe = new PersonImpl("johnDoeId", "Johnny", new NameImpl("John Doe")); johnDoe.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl( "home", "+33H000000000"), new ListFieldImpl("mobile", "+33M000000000"), new ListFieldImpl("work", "+33W000000000"))); johnDoe.setAddresses(Lists.<Address> newArrayList(new AddressImpl( "My home address"))); johnDoe.setEmails(Lists.<ListField> newArrayList(new ListFieldImpl("work", "john.doe@work.bar"), new ListFieldImpl("home", "john.doe@home.bar"))); activity = new ActivityImpl("activityId", johnDoe.getId()); MediaItemImpl mediaItem = new MediaItemImpl(); mediaItem.setMimeType("image/jpg"); mediaItem.setType(MediaItem.Type.IMAGE); mediaItem.setUrl("http://foo.bar"); mediaItem.setLocation(new AddressImpl("Foo bar address")); mediaItem.setNumViews("10000"); activity.setMediaItems(Lists.<MediaItem> newArrayList(mediaItem)); activity.setUrl("http://foo.com"); beanXmlConverter = new BeanXStreamAtomConverter( new XStream081Configuration(injector)); }
@Before public void setUp() throws Exception { Injector injector = Guice.createInjector(new SocialApiTestsGuiceModule()); johnDoe = new PersonImpl("johnDoeId", "Johnny", new NameImpl("John Doe")); johnDoe.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl( "home", "+33H000000000"), new ListFieldImpl("mobile", "+33M000000000"), new ListFieldImpl("work", "+33W000000000"))); johnDoe.setAddresses(Lists.<Address> newArrayList(new AddressImpl( "My home address"))); johnDoe.setEmails(Lists.<ListField> newArrayList(new ListFieldImpl("work", "john.doe@work.bar"), new ListFieldImpl("home", "john.doe@home.bar"))); activity = new ActivityImpl("activityId", johnDoe.getId()); MediaItemImpl mediaItem = new MediaItemImpl(); mediaItem.setMimeType("image/jpg"); mediaItem.setType(MediaItem.Type.IMAGE); mediaItem.setUrl("http://foo.bar"); mediaItem.setLocation(new AddressImpl("Foo bar address")); mediaItem.setNumViews("10000"); activity.setMediaItems(Lists.<MediaItem> newArrayList(mediaItem)); activity.setUrl("http://foo.com"); beanXmlConverter = new BeanXStreamAtomConverter( new XStream081Configuration(injector)); }
ListField email = new ListFieldImpl("work", "dev@shindig.apache.org"); canonical.setEmails(Lists.newArrayList(email)); canonical.setNickname("diggy"); canonical.setPets("dog,cat"); canonical.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl( "work", "111-111-111"), new ListFieldImpl("mobile", "999-999-999")));
ListField email = new ListFieldImpl("work", "dev@shindig.apache.org"); canonical.setEmails(Lists.newArrayList(email)); canonical.setNickname("diggy"); canonical.setPets("dog,cat"); canonical.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl("work", "111-111-111"), new ListFieldImpl("mobile", "999-999-999")));
ListField email = new ListFieldImpl("work", "dev@shindig.apache.org"); canonical.setEmails(Lists.newArrayList(email)); canonical.setNickname("diggy"); canonical.setPets("dog,cat"); canonical.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl("work", "111-111-111"), new ListFieldImpl("mobile", "999-999-999")));
ListField email = new ListFieldImpl("work", "dev@shindig.apache.org"); canonical.setEmails(Lists.newArrayList(email)); canonical.setNickname("diggy"); canonical.setPets("dog,cat"); canonical.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl( "work", "111-111-111"), new ListFieldImpl("mobile", "999-999-999")));
ListField email = new ListFieldImpl("work", "dev@shindig.apache.org"); canonical.setEmails(Lists.newArrayList(email)); canonical.setNickname("diggy"); canonical.setPets("dog,cat"); canonical.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl("work", "111-111-111"), new ListFieldImpl("mobile", "999-999-999")));
ListField email = new ListFieldImpl("work", "dev@shindig.apache.org"); canonical.setEmails(Lists.newArrayList(email)); canonical.setNickname("diggy"); canonical.setPets("dog,cat"); canonical.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl( "work", "111-111-111"), new ListFieldImpl("mobile", "999-999-999")));
ListField email = new ListFieldImpl("work", "dev@shindig.apache.org"); canonical.setEmails(Lists.newArrayList(email)); canonical.setNickname("diggy"); canonical.setPets("dog,cat"); canonical.setPhoneNumbers(Lists.<ListField> newArrayList(new ListFieldImpl("work", "111-111-111"), new ListFieldImpl("mobile", "999-999-999")));