Package org.hoteia.tools.scribe.mapping.oauth.twitter.json.pojo

Examples of org.hoteia.tools.scribe.mapping.oauth.twitter.json.pojo.UserPojo


    return null;
  }
 
  protected void handleAuthenticationData(HttpServletRequest request, HttpServletResponse response, RequestData requestData, OAuthType type, String jsonData) throws Exception {
    UserPojo userPojo = null;
    try {
      userPojo = jsonMapper.getJsonMapper().readValue(jsonData, UserPojo.class);
    } catch (JsonGenerationException e) {
      logger.error(e.getMessage());
    } catch (JsonMappingException e) {
      logger.error(e.getMessage());
    }
    if(userPojo != null){
      // TWITTER DOESN'T WANT TO SHARE EMAIL -> WE DON'T EXPOSE THIS CONNECT OPTION - WITHOUT EMAIL WE WILL SAVE DUPLICATES WITH CORE CREATE ACCOUNT PROCESS
      // AND WE DON'T WANT ASK TO THE NEW CUSTOMER TO CONFIRM HIS EMAIL BY A FORM
      final String email = "";

      final String firstName = userPojo.getName();
      final String lastName = userPojo.getName();
      final String locale = userPojo.getLang();
      Customer customer = customerService.getCustomerByLoginOrEmail(email);
     
      if(customer == null){
        // CREATE A NEW CUSTOMER
        customer = new Customer();
View Full Code Here

TOP

Related Classes of org.hoteia.tools.scribe.mapping.oauth.twitter.json.pojo.UserPojo

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.