Examples of ListFieldImpl


Examples of org.apache.shindig.social.core.model.ListFieldImpl

        osPerson.setId(inPerson.getOpenSocialId());
        osPerson.setAboutMe(inPerson.getDescription());
        osPerson.setProfileUrl(containerBaseUrl + "/#people/" + inPerson.getAccountId());

        List<ListField> emailList = new ArrayList<ListField>();
        emailList.add(new ListFieldImpl("primary", inPerson.getEmail()));
        osPerson.setEmails(emailList);

        AvatarUrlGenerator generator = new AvatarUrlGenerator(EntityType.PERSON);
        osPerson.setThumbnailUrl(containerBaseUrl + generator.getNormalAvatarUrl(inPerson.getAvatarId()));
View Full Code Here

Examples of org.wso2.carbon.registry.social.impl.people.userprofile.model.impl.ListFieldImpl

        person.setAboutMe("About Me");
        Name personName = new NameImpl();
        personName.setGivenName("Admin");
        personName.setFamilyName("Abcd");
        person.setName(personName);
        ListField email = new ListFieldImpl();
        email.setValue("admin@abcd.org");
        List<ListField> emails = new ArrayList<ListField>();
        emails.add(email);
        person.setEmails(emails);
        ListField telephone = new ListFieldImpl();
        telephone.setValue("99999999");
        List<ListField> teleList = new ArrayList<ListField>();
        teleList.add(telephone);
        person.setPhoneNumbers(teleList);
        personManager.savePerson("admin12", person);
        Person person2;
View Full Code Here

Examples of org.wso2.carbon.registry.social.impl.people.userprofile.model.impl.ListFieldImpl

        person.setAboutMe("About Me");
        Name personName = new NameImpl();
        personName.setGivenName("Admin");
        personName.setFamilyName("Abcd");
        person.setName(personName);
        ListField email = new ListFieldImpl();
        email.setValue("admin@abcd.org");
        List<ListField> emails = new ArrayList<ListField>();
        emails.add(email);
        person.setEmails(emails);
        ListField telephone = new ListFieldImpl();
        telephone.setValue("99999999");
        List<ListField> teleList = new ArrayList<ListField>();
        teleList.add(telephone);
        person.setPhoneNumbers(teleList);
        personManager.savePerson("admin", person);
        Person person2 = personManager.getPerson("admin");
View Full Code Here

Examples of org.wso2.carbon.registry.social.impl.people.userprofile.model.impl.ListFieldImpl

        person.setAboutMe("About Me");
        Name personName = new NameImpl();
        personName.setGivenName("Admin");
        personName.setFamilyName("Abcd");
        person.setName(personName);
        ListField email = new ListFieldImpl();
        email.setValue("abcd@abcd.org");
        List<ListField> emails = new ArrayList<ListField>();
        emails.add(email);
        person.setEmails(emails);
        ListField telephone = new ListFieldImpl();
        telephone.setValue("123456");
        List<ListField> teleList = new ArrayList<ListField>();
        teleList.add(telephone);
        person.setPhoneNumbers(teleList);
        personManager.savePerson("abcd", person);
        Person person2 = personManager.getPerson("abcd");
View Full Code Here

Examples of org.wso2.carbon.registry.social.impl.people.userprofile.model.impl.ListFieldImpl

        person.setAboutMe("About Me");
        Name personName = new NameImpl();
        personName.setGivenName("Admin");
        personName.setFamilyName("Abcd");
        person.setName(personName);
        ListField email = new ListFieldImpl();
        email.setValue("admin@abcd.org");
        List<ListField> emails = new ArrayList<ListField>();
        emails.add(email);
        person.setEmails(emails);
        ListField telephone = new ListFieldImpl();
        telephone.setValue("99999999");
        List<ListField> teleList = new ArrayList<ListField>();
        teleList.add(telephone);
        person.setPhoneNumbers(teleList);
        personManager.savePerson("wwww", person);
        Person person2;
View Full Code Here

Examples of org.wso2.carbon.registry.social.impl.people.userprofile.model.impl.ListFieldImpl

        person.setAboutMe("About Me");
        Name personName = new NameImpl();
        personName.setGivenName("User1");
        personName.setFamilyName("Abcd");
        person.setName(personName);
        ListField email = new ListFieldImpl();
        email.setValue("user1@abcd.org");
        List<ListField> emails = new ArrayList<ListField>();
        emails.add(email);
        person.setEmails(emails);
        ListField telephone = new ListFieldImpl();
        telephone.setValue("99999999");
        List<ListField> teleList = new ArrayList<ListField>();
        teleList.add(telephone);
        person.setPhoneNumbers(teleList);
        personManager.savePerson("user1", person);
        Person[] person2;
        person2 = personManager.getPeople(new String[]{"user1"}, "SELF", null, new String[]{"NAME", "EMAILS", "ABOUT_ME", "PHONE_NUMBERS"});
        assertNotNull(person2);
        assertEquals(person2.length, 1);
        person.setId("user2");
        person.setNickname("User-2");
        person.setAboutMe("About Me");
        personName = new NameImpl();
        personName.setGivenName("User2");
        personName.setFamilyName("Abcd");
        person.setName(personName);
        email = new ListFieldImpl();
        email.setValue("user2@abcd.org");
        emails = new ArrayList<ListField>();
        emails.add(email);
        person.setEmails(emails);
        telephone = new ListFieldImpl();
        telephone.setValue("123456");
        teleList = new ArrayList<ListField>();
        teleList.add(telephone);
        person.setPhoneNumbers(teleList);
        personManager.savePerson("user2", person);
        person2 = personManager.getPeople(new String[]{"user1"}, "ALL", null, new String[]{"NAME", "EMAILS", "ABOUT_ME", "PHONE_NUMBERS"});
View Full Code Here

Examples of org.wso2.carbon.registry.social.impl.people.userprofile.model.impl.ListFieldImpl

        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()));
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.