Package com.jeck.microblogging.shared.interfaces

Examples of com.jeck.microblogging.shared.interfaces.ICallBackParameter


  Logger logger = Logger.getLogger(WeiboListServiceImpl.class.getName());

  @Override
  public List<Blog> listMyBlogs(Page page,BlogFeature feature) {
    logger.info("begin listMyBlogs!");
    ICallBackParameter para=new CallBackParameterImpl(perThreadRequest.get().getSession());
    if (null != para.getParameter(ICallBackParameter.ACCESS_TOKEN, AccessToken.class)){
      IWeibo weibo=new SinaWeibo();
      List<Blog> blogs=weibo.getAllWeibo(para,page,feature);
      return blogs;
    }else{
      //work for test
View Full Code Here


  }
 
  @Override
  public long getBlogCount() {
    logger.info("begin getBlogCount!");
    ICallBackParameter para=new CallBackParameterImpl(perThreadRequest.get().getSession());
    if (null != para.getParameter(ICallBackParameter.ACCESS_TOKEN, AccessToken.class)){
      IWeibo weibo=new SinaWeibo();
      return weibo.getAllWeiboCount(para);
    }else{
      return 0;
    }
View Full Code Here

  }
 
  private void redirectMainPage(HttpServletRequest req,
      HttpServletResponse resp){
    logger.info("redirectMainPage");
    ICallBackParameter para=new CallBackParameterImpl(req.getSession());
    Oauth oauth = new Oauth();
    try {
      AccessToken at = oauth.getAccessTokenByCode(req.getParameter("code"));
      para.putParameter(ICallBackParameter.ACCESS_TOKEN, at);
      logger.info("Access Token:"+at);
      User user=storeService.find(User.class,at.getAccessToken());
      if (user == null){
        user = new User();
        user.setAccessToken(at.getAccessToken());
View Full Code Here

TOP

Related Classes of com.jeck.microblogging.shared.interfaces.ICallBackParameter

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.