Profile userProfile = userIdentity.getProfile(); json.put("id", userProfile.getId()); json.put("profileUrl", LinkProvider.getUserProfileUri(userIdentity.getRemoteId())); json.put("avatar", userProfile.getAvatarImageSource() != null ? userProfile.getAvatarImageSource() : LinkProvider.PROFILE_DEFAULT_AVATAR_URL); jsonArray.put(json);
return Response.seeOther(URI.create(domain + LinkProvider.getRedirectUri(""))).build();
contactBean.setId(userId); contactBean.setFullName(forumService.getUserInfo(userId).getFullName()); String profileLink = LinkProvider.getProfileLink(userId); contactBean.setProfileLink(profileLink);
bundle.put("profile", LinkProvider.getUserProfileUri(remoteUser)); bundle.put("connect", LinkProvider.getUserConnectionsUri(remoteUser)); bundle.put("space", GettingStartedUtils.SPACE_URL); bundle.put("activity", "#");
ExoSocialActivity[] latestAct = activities.load(0, 1); contactBean.setLatestActivity((latestAct.length == 0) ? null : latestAct[0].getTitle()); String profileLink = LinkProvider.getProfileLink(contact.getRemoteId()); contactBean.setProfileLink(profileLink);