Package org.encuestame.utils.social

Examples of org.encuestame.utils.social.SocialUserProfile


        log.debug("Users size: "+users.size());
        List<QuestionBean> listQuestions = getPollQuestions();
        List<QuestionBean> tpListQuestions = getTpPollQuestions();
        final List<UserAccount> userAccount = getAccountDao().findAll();
        for (UserAccount userAccount2 : userAccount) {
            SocialUserProfile socialProfileId = new SocialUserProfile();
            socialProfileId.setEmail(userAccount2.getUserEmail());
            final Long id = Long.valueOf(getRandomNumberRange(50, 5000) );
            final StringBuffer stringBuffer = new StringBuffer(id.toString());
            stringBuffer.append("-");
            stringBuffer.append(RandomStringUtils.randomAlphanumeric(100));
            socialProfileId.setId(stringBuffer.toString());
            socialProfileId.setProfileImageUrl("xxxxx");
            socialProfileId.setProfileUrl("url");
            socialProfileId.setUsername(userAccount2.getUsername());
            socialProfileId.setName(userAccount2.getCompleteName());
            //create social account.
            getSecurity().addNewSocialAccount(
                    "12345",
                    "12345",
                    null,
View Full Code Here

TOP

Related Classes of org.encuestame.utils.social.SocialUserProfile

Copyright © 2018 www.massapicom. 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.