Commit 71198238 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added stream feature. JM-712

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3970 b35dd754-fafc-0310-a699-88a17e54d16e
parent fa41157b
......@@ -13,21 +13,24 @@ package org.jivesoftware.wildfire.vcard;
import org.dom4j.Element;
import org.jivesoftware.util.*;
import org.jivesoftware.wildfire.container.BasicModule;
import org.jivesoftware.wildfire.XMPPServer;
import org.jivesoftware.wildfire.user.User;
import org.jivesoftware.wildfire.event.UserEventDispatcher;
import org.jivesoftware.wildfire.container.BasicModule;
import org.jivesoftware.wildfire.disco.ServerFeaturesProvider;
import org.jivesoftware.wildfire.event.UserEventAdapter;
import org.jivesoftware.wildfire.event.UserEventDispatcher;
import org.jivesoftware.wildfire.user.User;
import java.util.StringTokenizer;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Map;
import java.util.StringTokenizer;
/**
* Manages VCard information for users.
*
* @author Matt Tucker
*/
public class VCardManager extends BasicModule {
public class VCardManager extends BasicModule implements ServerFeaturesProvider {
private VCardProvider provider;
private static VCardManager instance;
......@@ -210,6 +213,12 @@ public class VCardManager extends BasicModule {
UserEventDispatcher.removeListener(eventHandler);
}
public Iterator<String> getFeatures() {
ArrayList<String> features = new ArrayList<String>();
features.add("vcard-temp");
return features.iterator();
}
private class EventHandler extends UserEventAdapter {
public void userDeleting(User user, Map params) {
try {
......
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