}
return data;
}
private ProfilesData readPeopleData(PersonImpl person) {
Endpoint ep = EndpointFactory.getEndpointUnchecked(EndpointFactory.SERVER_CONNECTIONS);
if(ep!=null) {
try {
//String id = person.getId();
boolean currentUser = person.isViewer();
// Find the Connections id
String lcid = person.getIdentity(IdentityMapper.TARGET_CONNECTIONS);
// If the id is not available, then look at the end point to get the current id
boolean privateData = false;
// If it is the current user, then find the user uuis
if(lcid==null && currentUser) {
// Be sure that we are authenticated for Connections
if(!ep.isAuthenticated()) {
ep.authenticate(true);
}
try {
// ConnectionsService svc = new ConnectionsService(ep,"/profiles/atom/profileService.do");
ConnectionsService svc = new ConnectionsService(ep);
HandlerXml xml = new HandlerXml();