Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmayworm2009-01-26 18:41:00 -0500
committermmayworm2009-01-26 18:41:00 -0500
commit3e40b230df4c6ceca138e58689bc11a393701b4b (patch)
tree49f0ad59260b9b004832834bfd9e2ad1cb685c51 /providers/bundles/org.eclipse.ecf.provider.xmpp
parente47d437bc4b2222440d295cbd6cbffcec1bef879 (diff)
downloadorg.eclipse.ecf-3e40b230df4c6ceca138e58689bc11a393701b4b.tar.gz
org.eclipse.ecf-3e40b230df4c6ceca138e58689bc11a393701b4b.tar.xz
org.eclipse.ecf-3e40b230df4c6ceca138e58689bc11a393701b4b.zip
[bug:256696] adding user search API on HEAD
Diffstat (limited to 'providers/bundles/org.eclipse.ecf.provider.xmpp')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java b/providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java
index 1e5589dc1..32d057992 100644
--- a/providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java
+++ b/providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java
@@ -41,6 +41,7 @@ import org.eclipse.ecf.internal.provider.xmpp.events.IQEvent;
import org.eclipse.ecf.internal.provider.xmpp.events.MessageEvent;
import org.eclipse.ecf.internal.provider.xmpp.events.PresenceEvent;
import org.eclipse.ecf.internal.provider.xmpp.filetransfer.XMPPOutgoingFileTransferHelper;
+import org.eclipse.ecf.internal.provider.xmpp.search.XMPPUserSearchManager;
import org.eclipse.ecf.internal.provider.xmpp.smack.ECFConnection;
import org.eclipse.ecf.internal.provider.xmpp.smack.ECFConnectionObjectPacketEvent;
import org.eclipse.ecf.internal.provider.xmpp.smack.ECFConnectionPacketEvent;
@@ -50,6 +51,7 @@ import org.eclipse.ecf.presence.chatroom.IChatRoomContainer;
import org.eclipse.ecf.presence.chatroom.IChatRoomManager;
import org.eclipse.ecf.presence.im.IChatManager;
import org.eclipse.ecf.presence.roster.IRosterManager;
+import org.eclipse.ecf.presence.search.IUserSearchManager;
import org.eclipse.ecf.presence.service.IPresenceService;
import org.eclipse.ecf.provider.comm.AsynchEvent;
import org.eclipse.ecf.provider.comm.ConnectionCreateException;
@@ -104,6 +106,8 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
protected XMPPOutgoingFileTransferHelper outgoingFileTransferContainerAdapter = null;
protected XMPPContainerPresenceHelper presenceHelper = null;
+
+ protected XMPPUserSearchManager searchManager = null;
protected ID presenceHelperID = null;
@@ -112,6 +116,7 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
this.keepAlive = keepAlive;
accountManager = new XMPPContainerAccountManager();
chatRoomManager = new XMPPChatRoomManager(getID());
+ searchManager = new XMPPUserSearchManager();
this.presenceHelperID = IDFactory.getDefault().createStringID(CONTAINER_HELPER_ID);
presenceHelper = new XMPPContainerPresenceHelper(this);
outgoingFileTransferContainerAdapter = new XMPPOutgoingFileTransferHelper(this);
@@ -132,6 +137,10 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
public IRosterManager getRosterManager() {
return presenceHelper.getRosterManager();
}
+
+ public IUserSearchManager getUserSearchManager() {
+ return searchManager;
+ }
public IAccountManager getAccountManager() {
return accountManager;
@@ -238,6 +247,8 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
final ECFConnection conn = getECFConnection();
accountManager.setConnection(conn.getXMPPConnection());
chatRoomManager.setConnection(getConnectNamespace(), originalTarget, conn);
+ searchManager.setConnection(getConnectNamespace(), originalTarget,conn);
+ searchManager.setEnabled(!isGoogle(originalTarget));
presenceHelper.setUser(new User(originalTarget));
outgoingFileTransferContainerAdapter.setConnection(conn.getXMPPConnection());
return originalTarget;

Back to the top