コード例 #1
0
 @Override
 public List<String> findUserIdsWithConnection(final Connection<?> connection) {
   final ConnectionKey key = connection.getKey();
   final List<UserConnection> userConnections =
       userConnectionRepository.findByProviderIdAndProviderUserId(
           key.getProviderId(), key.getProviderUserId());
   return userConnections.stream().map(UserConnection::getUserId).collect(toList());
 }
コード例 #2
0
 @Override
 public List<String> findUserIdsWithConnection(Connection<?> connection) {
   ConnectionKey key = connection.getKey();
   List<SocialUserConnection> socialUserConnections =
       socialUserConnectionRepository.findAllByProviderIdAndProviderUserId(
           key.getProviderId(), key.getProviderUserId());
   return socialUserConnections
       .stream()
       .map(SocialUserConnection::getUserId)
       .collect(Collectors.toList());
 };