File tree Expand file tree Collapse file tree
orcid-core/src/main/java/org/orcid/core/manager/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org .orcid .core .manager .impl ;
22
3- import java .util .Calendar ;
4- import java .util .Date ;
5- import java .util .HashMap ;
6- import java .util .List ;
7- import java .util .Map ;
8- import java .util .Random ;
3+ import java .util .*;
94
105import javax .annotation .Resource ;
116
@@ -35,7 +30,9 @@ public class UserConnectionManagerImpl implements UserConnectionManager {
3530
3631 @ Override
3732 public List <UserconnectionEntity > findByOrcid (String orcid ) {
38- return userConnectionDao .findByOrcid (orcid );
33+ List <UserconnectionEntity > userConnections = userConnectionDao .findByOrcid (orcid );
34+ userConnections .removeIf (userConnection -> userConnection .getId ().getProviderid ().equals ("google" ) || userConnection .getId ().getProviderid ().equals ("facebook" ));
35+ return userConnections ;
3936 }
4037
4138 @ Override
You can’t perform that action at this time.
0 commit comments