Commit 14bbc4bf authored by Matt Tucker's avatar Matt Tucker Committed by matt

Fixed compilation errors.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@46 b35dd754-fafc-0310-a699-88a17e54d16e
parent d79fc591
......@@ -13,22 +13,22 @@ package org.jivesoftware.messenger.chatbot.spi;
import org.jivesoftware.messenger.container.BasicModule;
import org.jivesoftware.util.LocaleUtils;
import org.jivesoftware.util.Log;
import org.jivesoftware.util.LongHashMap;
import org.jivesoftware.util.LongList;
import org.jivesoftware.messenger.XMPPAddress;
import org.jivesoftware.messenger.auth.UnauthorizedException;
import org.jivesoftware.messenger.chatbot.*;
import org.jivesoftware.messenger.user.UserAlreadyExistsException;
import org.jivesoftware.messenger.user.UserNotFoundException;
import java.util.Hashtable;
import java.util.*;
public class ChatbotManagerImpl extends BasicModule implements ChatbotManager {
private ChatbotAccountProvider accountProvider = ChatbotProviderFactory.getChatbotAccountProvider();
private ChatbotIDProvider idProvider = ChatbotProviderFactory.getChatbotIDProvider();
private ChatbotInfoProvider infoProvider = ChatbotProviderFactory.getChatbotInfoProvider();
private LongHashMap id2botname = new LongHashMap();
private LongHashMap id2botinfo = new LongHashMap();
private Map id2botname = new HashMap<Integer,Object>();
private Map id2botinfo = new HashMap<Integer,Object>();
private Hashtable botname2id = new Hashtable();
/**
......@@ -86,9 +86,9 @@ public class ChatbotManagerImpl extends BasicModule implements ChatbotManager {
public void deleteChatbot(long chatbotID) throws UnauthorizedException, UserNotFoundException {
accountProvider.deleteChatbot(chatbotID);
id2botinfo.removeKey(chatbotID);
id2botinfo.remove(chatbotID);
botname2id.remove(id2botname.get(chatbotID));
id2botname.removeKey(chatbotID);
id2botname.remove(chatbotID);
}
public int getChatbotCount() {
......@@ -102,4 +102,4 @@ public class ChatbotManagerImpl extends BasicModule implements ChatbotManager {
public LongList chatbots(int startIndex, int numResults) {
return idProvider.getChatbotIDs(startIndex, numResults);
}
}
}
\ No newline at end of file
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