Commit 8d5a2dd4 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Rolling back temp fix.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@5568 b35dd754-fafc-0310-a699-88a17e54d16e
parent 1223034e
...@@ -15,13 +15,11 @@ import org.jivesoftware.util.*; ...@@ -15,13 +15,11 @@ import org.jivesoftware.util.*;
import org.jivesoftware.wildfire.XMPPServer; import org.jivesoftware.wildfire.XMPPServer;
import org.jivesoftware.wildfire.event.GroupEventDispatcher; import org.jivesoftware.wildfire.event.GroupEventDispatcher;
import org.jivesoftware.wildfire.event.GroupEventListener; import org.jivesoftware.wildfire.event.GroupEventListener;
import org.jivesoftware.wildfire.ldap.LdapGroupProvider;
import org.jivesoftware.wildfire.user.User; import org.jivesoftware.wildfire.user.User;
import org.jivesoftware.wildfire.user.UserManager; import org.jivesoftware.wildfire.user.UserManager;
import org.jivesoftware.wildfire.user.UserNotFoundException; import org.jivesoftware.wildfire.user.UserNotFoundException;
import org.xmpp.packet.JID; import org.xmpp.packet.JID;
import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.Map; import java.util.Map;
...@@ -338,16 +336,6 @@ public class GroupManager { ...@@ -338,16 +336,6 @@ public class GroupManager {
* @return all groups that an entity belongs to. * @return all groups that an entity belongs to.
*/ */
public Collection<Group> getGroups(JID user) { public Collection<Group> getGroups(JID user) {
// TODO Remove this temp fix for LDAP and fix LDAP to get correct list of groups of a user
if (provider.getClass() == LdapGroupProvider.class) {
Collection<Group> userGroups = new ArrayList<Group>();
for (Group group : getGroups()) {
if (group.isUser(user)) {
userGroups.add(group);
}
}
return userGroups;
}
String key = user.toBareJID(); String key = user.toBareJID();
Collection<String> groupNames = (Collection<String>)groupMetaCache.get(key); Collection<String> groupNames = (Collection<String>)groupMetaCache.get(key);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment