Commit a7b4aee9 authored by guus's avatar guus

User now implements the Result interface, to make User objects suited for...

User now implements the Result interface, to make User objects suited for Result Set Management. Any user listing (the search plugin, for example) will benefit from this.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches/rsm@9167 b35dd754-fafc-0310-a699-88a17e54d16e
parent 93f63ed9
......@@ -20,6 +20,7 @@ import org.jivesoftware.util.Log;
import org.jivesoftware.util.cache.CacheSizes;
import org.jivesoftware.util.cache.Cacheable;
import org.jivesoftware.util.cache.ExternalizableUtil;
import org.jivesoftware.util.resultsetmanager.Result;
import java.io.Externalizable;
import java.io.IOException;
......@@ -42,7 +43,7 @@ import java.util.concurrent.ConcurrentHashMap;
*
* @author Matt Tucker
*/
public class User implements Cacheable, Externalizable {
public class User implements Cacheable, Externalizable, Result {
private static final String LOAD_PROPERTIES =
"SELECT name, propValue FROM jiveUserProp WHERE username=?";
......@@ -529,4 +530,13 @@ public class User implements Cacheable, Externalizable {
creationDate = new Date(ExternalizableUtil.getInstance().readLong(in));
modificationDate = new Date(ExternalizableUtil.getInstance().readLong(in));
}
/*
* (non-Javadoc)
* @see org.jivesoftware.util.resultsetmanager.Result#getUID()
*/
public String getUID()
{
return username;
}
}
\ 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