Package com.simpletwitter.models

Examples of com.simpletwitter.models.Tweet


      Set<TwitterUser> allUserList = TwitterUserService
          .getAllUserList(currUser);
      Map<String, Integer> followCount = TwitterUserService
          .getFollowCount(currUser.getObjId());
      int tweetCount = TwitterUserService.getTweetCount(currUser);
      Tweet eTweet = new Tweet();
      mv.addObject("tweet", eTweet);
      mv.setViewName("twitterhomepage");
      mv.addObject("tweets", tweets);
      mv.addObject("user", currUser);
      mv.addObject("userlist", allUserList);
View Full Code Here


  public ModelAndView viewUser(@RequestParam(value = "objid") String objId,
      HttpServletRequest request) {
    TwitterUser currUser = Authenticator.isValid(request);
    ModelAndView mv = new ModelAndView();
    if (currUser != null) {
      Tweet tweet = TweetService.getTweet(Long.valueOf(objId));
      if (currUser.equals(tweet.getTwitterUser())) {
        TweetService.deleteTweet(tweet);
      }
      Set<Tweet> tweets = TweetService.getTweetStream(
          currUser.getObjId(), currUser.getFollowing());
      Set<TwitterUser> allUserList = TwitterUserService
          .getAllUserList(currUser);
      Map<String, Integer> followCount = TwitterUserService
          .getFollowCount(currUser.getObjId());
      int tweetCount = TwitterUserService.getTweetCount(currUser);
      Tweet eTweet = new Tweet();
      mv.addObject("tweet", eTweet);
      mv.setViewName("twitterhomepage");
      mv.addObject("tweets", tweets);
      mv.addObject("user", currUser);
      mv.addObject("userlist", allUserList);
View Full Code Here

    Map<String, Integer> followCount = TwitterUserService
        .getFollowCount(objectByExample.getObjId());
    Set<Tweet> tweets = TweetService.getTweetStream(
        objectByExample.getObjId(), objectByExample.getFollowing());
    int tweetCount = TwitterUserService.getTweetCount(objectByExample);
    Tweet tweet = new Tweet();
    mv.addObject("tweet", tweet);
    mv.addObject("tweets", tweets);
    mv.setViewName("twitterhomepage");
    mv.addObject("user", objectByExample);
    mv.addObject("userlist", smallUserList);
View Full Code Here

TOP

Related Classes of com.simpletwitter.models.Tweet

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.