removed ASL Session, ported to gCube Client Context
git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/join-vre@134174 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
402b9ede25
commit
3c564b8298
|
@ -4,6 +4,9 @@
|
||||||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
||||||
|
<dependent-module archiveName="invites-common-library-1.3.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/invites-common-library/invites-common-library">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
<property name="java-output-path" value="/${module}/target/www/WEB-INF/classes"/>
|
<property name="java-output-path" value="/${module}/target/www/WEB-INF/classes"/>
|
||||||
<property name="context-root" value="join-vre"/>
|
<property name="context-root" value="join-vre"/>
|
||||||
</wb-module>
|
</wb-module>
|
||||||
|
|
|
@ -406,8 +406,12 @@ public class JoinServiceImpl extends RemoteServiceServlet implements JoinService
|
||||||
_log.debug("initStore OK");
|
_log.debug("initStore OK");
|
||||||
|
|
||||||
String email = PortalContext.getConfiguration().getCurrentUser(getThreadLocalRequest()).getEmail();
|
String email = PortalContext.getConfiguration().getCurrentUser(getThreadLocalRequest()).getEmail();
|
||||||
String infraScope = PortalContext.getConfiguration().getCurrentScope(getThreadLocalRequest());
|
String infraScope = null;
|
||||||
|
try {
|
||||||
|
infraScope = new LiferayGroupManager().getInfrastructureScope(groupId);
|
||||||
|
} catch (UserManagementSystemException | GroupRetrievalFault e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
_log.debug("checking if invite exists for " + email + " on " +infraScope);
|
_log.debug("checking if invite exists for " + email + " on " +infraScope);
|
||||||
return store.isExistingInvite(infraScope, email);
|
return store.isExistingInvite(infraScope, email);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue