Package com.impetus.client.twitter.entities

Examples of com.impetus.client.twitter.entities.ExternalLinkHBase


    {
        UserHBase user1 = new UserHBase(userId1, "Amresh", "password1", "married");

        user1.setPreference(new PreferenceHBase("P1", "Motif", "2"));

        user1.addExternalLink(new ExternalLinkHBase("L1", "Facebook", "http://facebook.com/coolnerd"));
        user1.addExternalLink(new ExternalLinkHBase("L2", "LinkedIn", "http://linkedin.com/in/devilmate"));

        user1.addTweet(new TweetHbase("Here is my first tweet", "Web"));
        user1.addTweet(new TweetHbase("Second Tweet from me", "Mobile"));
        return user1;
    }
View Full Code Here


    {
        UserHBase user2 = new UserHBase(userId2, "Saurabh", "password2", "single");

        user2.setPreference(new PreferenceHBase("P2", "High Contrast", "3"));

        user2.addExternalLink(new ExternalLinkHBase("L3", "GooglePlus", "http://plus.google.com/inviteme"));
        user2.addExternalLink(new ExternalLinkHBase("L4", "Yahoo", "http://yahoo.com/profiles/itsmeamry"));

        user2.addTweet(new TweetHbase("Saurabh tweets for the first time", "Phone"));
        user2.addTweet(new TweetHbase("Another tweet from Saurabh", "text"));
        return user2;
    }
View Full Code Here

    @Override
    public void addExternalLink(String userId, String linkId, String linkType, String linkAddress)
    {
        UserHBase user = em.find(UserHBase.class, userId);
        user.addExternalLink(new ExternalLinkHBase(linkId, linkType, linkAddress));

        em.persist(user);
    }
View Full Code Here

TOP

Related Classes of com.impetus.client.twitter.entities.ExternalLinkHBase

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.