Massimiliano Assante 2016-03-23 18:02:54 +00:00
parent d60bc37b61
commit b623e5fcad
2 changed files with 4 additions and 3 deletions

View File

@ -58,6 +58,7 @@
<dependency>
<groupId>org.gcube.common.portal</groupId>
<artifactId>portal-manager</artifactId>
<version>[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -48,11 +48,11 @@ public class InviteServiceImpl extends RemoteServiceServlet implements InviteSer
ASLSession aslSession = getASLSession();
String lowercaseEmail = email.toLowerCase();
String portalName = "D4Science Gateway";
String portalUrl = null;
String vreDescription = null;
long groupId = getASLSession().getGroupId();
try {
portalName = PortalContext.getConfiguration().getGatewayName();
portalUrl = PortalContext.getConfiguration().getGatewayURL(this.getThreadLocalRequest());
vreDescription = new LiferayGroupManager().getGroup(groupId).getDescription();
} catch (Exception e1) {
e1.printStackTrace();
@ -60,7 +60,7 @@ public class InviteServiceImpl extends RemoteServiceServlet implements InviteSer
return null;
}
String portalSenderEmail = PortalContext.getConfiguration().getSenderEmail();
return InvitesManager.getInstance().sendInvite(aslSession, portalSenderEmail, portalName, name, lastName, lowercaseEmail, vreDescription);
return InvitesManager.getInstance().sendInvite(aslSession, portalSenderEmail, portalUrl, name, lastName, lowercaseEmail, vreDescription);
}