removed update of LDAP Group, no longer needed with keycloak
This commit is contained in:
parent
97da844261
commit
8b34a6230a
2
pom.xml
2
pom.xml
|
@ -12,7 +12,7 @@
|
|||
<groupId>org.gcube.portal.plugins</groupId>
|
||||
<artifactId>VREFolder-hook</artifactId>
|
||||
<name>VREFolder-hook Hook</name>
|
||||
<version>6.7.0</version>
|
||||
<version>6.7.0-SNAPSHOT</version>
|
||||
<packaging>war</packaging>
|
||||
<description>
|
||||
VREFolder-hook handles the user adding/removal from the related Home Library VRE Folder
|
||||
|
|
|
@ -14,7 +14,6 @@ import org.gcube.common.storagehub.client.proxies.GroupManagerClient;
|
|||
import org.gcube.portal.oidc.lr62.OIDCUmaUtil;
|
||||
import org.gcube.portal.plugins.thread.CheckShareLatexUserThread;
|
||||
import org.gcube.portal.plugins.thread.RemoveUserTokenFromVREThread;
|
||||
import org.gcube.portal.plugins.thread.UpdateUserToLDAPGroupThread;
|
||||
import org.gcube.vomanagement.usermanagement.GroupManager;
|
||||
import org.gcube.vomanagement.usermanagement.RoleManager;
|
||||
import org.gcube.vomanagement.usermanagement.UserManager;
|
||||
|
@ -135,9 +134,6 @@ public class GCubeHookUserLocalService extends UserLocalServiceWrapper {
|
|||
String scope = gm.getInfrastructureScope(groupId);
|
||||
org.gcube.vomanagement.usermanagement.UserManager um = new LiferayUserManager();
|
||||
String username = um.getUserById(userId).getUsername();
|
||||
//add the user to LDAP Group
|
||||
Thread tLdap = new Thread(new UpdateUserToLDAPGroupThread(username, scope, groupId, false));
|
||||
tLdap.start();
|
||||
//add the user to shareLatex
|
||||
Thread t = new Thread(new CheckShareLatexUserThread(username, scope));
|
||||
t.start();
|
||||
|
@ -228,9 +224,6 @@ public class GCubeHookUserLocalService extends UserLocalServiceWrapper {
|
|||
String scope = gm.getInfrastructureScope(groupId);
|
||||
org.gcube.vomanagement.usermanagement.UserManager um = new LiferayUserManager();
|
||||
String username = um.getUserById(userId).getUsername();
|
||||
//remove the user to LDAP Group
|
||||
Thread tLdap = new Thread(new UpdateUserToLDAPGroupThread(username, scope, groupId, true));
|
||||
tLdap.start();
|
||||
setUser2VREFolder(gm, um, username, scope, false);
|
||||
Thread tToken = new Thread(new RemoveUserTokenFromVREThread(username, scope));
|
||||
tToken.start();
|
||||
|
|
Loading…
Reference in New Issue