public static String getUsers<Lis<Id> authInfo){
if(authInfo==null){
return null;
}
String formatted = authInfo.stream()
.map(AuthUtil::getUser)
.filter(name->name!=null &&!name.trim().isEmpty())
.collect(Collectors.joining(","));
return formatted.isEmpty()?null:formatted;
}
public static List<ClientInfo> getClientInfos(List<Id> authInfo){
List<ClientInfo> clientAuthInfo = new ArrayList<>(authInfo.size());
authInfo.forEach(
id->{
String user = getUser(id);
clientAuthInfo.add(new ClientInfo(id.getScheme(),user==null?"":user);
});
}
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20