git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/invite-friends-widget@126196 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d60bc37b61
commit
b623e5fcad
1
pom.xml
1
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue