use of org.springframework.social.connect.ConnectionRepository in project ORCID-Source by ORCID.
the class SocialContext method isConnectedGoogleUser.
private boolean isConnectedGoogleUser(String userId) {
ConnectionRepository connectionRepo = connectionRepository.createConnectionRepository(userId);
Connection<Google> googleConnection = connectionRepo.findPrimaryConnection(Google.class);
return googleConnection != null;
}
use of org.springframework.social.connect.ConnectionRepository in project ORCID-Source by ORCID.
the class SocialContext method isConnectedFacebookUser.
private boolean isConnectedFacebookUser(String userId) {
ConnectionRepository connectionRepo = connectionRepository.createConnectionRepository(userId);
Connection<Facebook> facebookConnection = connectionRepo.findPrimaryConnection(Facebook.class);
return facebookConnection != null;
}
Aggregations