git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/invite-friends-widget@126139 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
49075a906a
commit
4233327568
5
pom.xml
5
pom.xml
|
@ -121,6 +121,11 @@
|
|||
<groupId>javax.portlet</groupId>
|
||||
<artifactId>portlet-api</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.dvos</groupId>
|
||||
<artifactId>usermanagement-core</artifactId>
|
||||
<version>[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.liferay.portal</groupId>
|
||||
|
|
|
@ -8,11 +8,11 @@ import org.gcube.portal.custom.scopemanager.scopehelper.ScopeHelper;
|
|||
import org.gcube.portal.databook.shared.InviteOperationResult;
|
||||
import org.gcube.portal.invites.InvitesManager;
|
||||
import org.gcube.portlets.widgets.inviteswidget.client.InviteService;
|
||||
import org.gcube.vomanagement.usermanagement.impl.LiferayGroupManager;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
|
||||
import com.liferay.portal.service.OrganizationLocalServiceUtil;
|
||||
import com.liferay.portal.util.PortalUtil;
|
||||
|
||||
|
||||
|
@ -50,10 +50,10 @@ public class InviteServiceImpl extends RemoteServiceServlet implements InviteSer
|
|||
String lowercaseEmail = email.toLowerCase();
|
||||
String portalUrl = null;
|
||||
String vreDescription = null;
|
||||
long organizationId = getASLSession().getGroupId();
|
||||
long groupId = getASLSession().getGroupId();
|
||||
try {
|
||||
portalUrl = PortalUtil.getPortalURL(SiteManagerUtil.getCompany().getVirtualHostname(), 443, true);
|
||||
vreDescription = OrganizationLocalServiceUtil.getOrganization(organizationId).getComments();
|
||||
vreDescription = new LiferayGroupManager().getGroup(groupId).getDescription();
|
||||
} catch (Exception e1) {
|
||||
e1.printStackTrace();
|
||||
_log.warn("While trying to send email for invitation to " + lowercaseEmail);
|
||||
|
|
Loading…
Reference in New Issue