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);