Package com.google.feedserver.config

Examples of com.google.feedserver.config.UserInfo


    oauthParams.put(UserInfoProperties.OWNER_ID,
        urlDecode(message.getParameter("opensocial_owner_id")));
    oauthParams.put(UserInfoProperties.APPLICATION_ID, message.getParameter("opensocial_app_id"));
    oauthParams.put(UserInfoProperties.APPLICATION_URL, message.getParameter("opensocial_app_url"));

    UserInfo userInfo = new HashMapBasedUserInfo(oauthParams);
    request.setAttribute(AbstractManagedCollectionAdapter.USER_INFO, userInfo);

    return message.getParameter("opensocial_viewer_id");
  }
View Full Code Here


        urlDecode(message.getParameter("opensocial_owner_email")));
    oauthParams.put(UserInfoProperties.OWNER_ID, message.getParameter("opensocial_owner_id"));
    oauthParams.put(UserInfoProperties.APPLICATION_ID, message.getParameter("opensocial_app_id"));
    oauthParams.put(UserInfoProperties.APPLICATION_URL, message.getParameter("opensocial_app_url"));

    UserInfo userInfo = new HashMapBasedUserInfo(oauthParams);
    request.setAttribute(AbstractManagedCollectionAdapter.USER_INFO, userInfo);

    logger.info("signed fetch verified: " + viewerEmail);
    return message.getParameter("opensocial_viewer_id");
  }
View Full Code Here

  public UserInfo getUserInfoForRequest(RequestContext request) {
    return (UserInfo) request.getAttribute(RequestContext.Scope.REQUEST, USER_INFO);
  }

  public String getUserEmailForRequest(RequestContext request) {
    UserInfo userInfo = getUserInfoForRequest(request);
    return userInfo == null ? null : userInfo.getEmail();
  }
View Full Code Here

TOP

Related Classes of com.google.feedserver.config.UserInfo

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.