Package org.springframework.social.connect

Examples of org.springframework.social.connect.NoSuchConnectionException


    }

    private Connection<?> getConnection(String providerId, String providerUserId) {
        List<SocialAuthentication> socialAuthentications = userDao.getSocialAuthentications(providerId, providerUserId);
        if (socialAuthentications.isEmpty()) {
            throw new NoSuchConnectionException(new ConnectionKey(providerId, providerUserId));
        }
        return authToConnection(socialAuthentications.get(0));
    }
View Full Code Here


  public Connection<?> getConnection(ConnectionKey connectionKey) {
    try {
      return jdbcTemplate.queryForObject(selectFromUserConnection() + " where userId = ? and providerId = ? and providerUserId = ?", connectionMapper, userId, connectionKey.getProviderId(), connectionKey.getProviderUserId());
    } catch (EmptyResultDataAccessException e) {
      throw new NoSuchConnectionException(connectionKey);
    }
  }
View Full Code Here

        if (connection.getKey().equals(connectionKey)) {
          return connection;
        }
      }
    }
    throw new NoSuchConnectionException(connectionKey);
  }
View Full Code Here

TOP

Related Classes of org.springframework.social.connect.NoSuchConnectionException

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.