anonimized usernames
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/admin/register-vre-users@122006 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
559b91937d
commit
b1c52a176e
|
@ -2,10 +2,12 @@
|
|||
<Changeset component="org.gcube.portlets-admin.register-vre-users.1-4-1"
|
||||
date="2015-12-21">
|
||||
<Change>Fix for Bug #1857 typo when displaying loading popup</Change>
|
||||
<Change>Anonymized usernames</Change>
|
||||
</Changeset>
|
||||
<Changeset component="org.gcube.portlets-admin.register-vre-users.1-4-0"
|
||||
date="2015-10-13">
|
||||
<Change>Updated to use shared common library for notification messages</Change>
|
||||
<Change>Updated to use shared common library for notification messages
|
||||
</Change>
|
||||
</Changeset>
|
||||
<Changeset component="org.gcube.portlets-admin.register-vre-users.1-3-0"
|
||||
date="2015-07-24">
|
||||
|
|
|
@ -9,6 +9,8 @@ import org.gcube.applicationsupportlayer.social.ApplicationNotificationsManager;
|
|||
import org.gcube.applicationsupportlayer.social.NotificationsManager;
|
||||
import org.gcube.common.homelibrary.home.HomeLibrary;
|
||||
import org.gcube.common.homelibrary.home.workspace.Workspace;
|
||||
import org.gcube.common.scope.impl.ScopeBean;
|
||||
import org.gcube.common.scope.impl.ScopeBean.Type;
|
||||
import org.gcube.portal.custom.communitymanager.OrganizationsUtil;
|
||||
import org.gcube.portal.custom.scopemanager.scopehelper.ScopeHelper;
|
||||
import org.gcube.portal.notifications.bean.GenericItemBean;
|
||||
|
@ -118,9 +120,15 @@ public class ManageUsersServiceImpl extends RemoteServiceServlet implements Man
|
|||
String labs = (user.getExpandoBridge().getAttribute(LABS) != null) ? user.getExpandoBridge().getAttribute(LABS).toString() : "";
|
||||
if ((u.getLastname() != null && u.getLastname().compareTo("") != 0)) {
|
||||
String firstLetter = u.getLastname().substring(0,1);
|
||||
String email = "";
|
||||
email = "********";
|
||||
PortalUserDTO myUser = new PortalUserDTO(id, firstLetter, u.getFirstname(), u.getLastname(), email, position, labs);
|
||||
String scope = getASLSession().getScope();
|
||||
ScopeBean validator = new ScopeBean(scope);
|
||||
String email = u.getEmail();
|
||||
String username = id;
|
||||
if (validator.is(Type.VRE)) {
|
||||
email = "********@"+ email.split("@")[1];
|
||||
username = "********";
|
||||
}
|
||||
PortalUserDTO myUser = new PortalUserDTO(username, firstLetter, u.getFirstname(), u.getLastname(), email, position, labs);
|
||||
unregisteredUsers.add(myUser);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue