portal url replace with portal name
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/invite-friends-widget@126142 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
4233327568
commit
d60bc37b61
|
@ -48,11 +48,11 @@ public class InviteServiceImpl extends RemoteServiceServlet implements InviteSer
|
||||||
ASLSession aslSession = getASLSession();
|
ASLSession aslSession = getASLSession();
|
||||||
|
|
||||||
String lowercaseEmail = email.toLowerCase();
|
String lowercaseEmail = email.toLowerCase();
|
||||||
String portalUrl = null;
|
String portalName = "D4Science Gateway";
|
||||||
String vreDescription = null;
|
String vreDescription = null;
|
||||||
long groupId = getASLSession().getGroupId();
|
long groupId = getASLSession().getGroupId();
|
||||||
try {
|
try {
|
||||||
portalUrl = PortalUtil.getPortalURL(SiteManagerUtil.getCompany().getVirtualHostname(), 443, true);
|
portalName = PortalContext.getConfiguration().getGatewayName();
|
||||||
vreDescription = new LiferayGroupManager().getGroup(groupId).getDescription();
|
vreDescription = new LiferayGroupManager().getGroup(groupId).getDescription();
|
||||||
} catch (Exception e1) {
|
} catch (Exception e1) {
|
||||||
e1.printStackTrace();
|
e1.printStackTrace();
|
||||||
|
@ -60,7 +60,7 @@ public class InviteServiceImpl extends RemoteServiceServlet implements InviteSer
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
String portalSenderEmail = PortalContext.getConfiguration().getSenderEmail();
|
String portalSenderEmail = PortalContext.getConfiguration().getSenderEmail();
|
||||||
return InvitesManager.getInstance().sendInvite(aslSession, portalSenderEmail, portalUrl, name, lastName, lowercaseEmail, vreDescription);
|
return InvitesManager.getInstance().sendInvite(aslSession, portalSenderEmail, portalName, name, lastName, lowercaseEmail, vreDescription);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue