Commit 5d60fff0 authored by Tom Evans's avatar Tom Evans Committed by tevans

OF-601: Include name attribute when persisting privacy lists

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13397 b35dd754-fafc-0310-a699-88a17e54d16e
parent bfdbe692
......@@ -280,12 +280,14 @@ public class PrivacyList implements Cacheable, Externalizable {
public void writeExternal(ObjectOutput out) throws IOException {
ExternalizableUtil.getInstance().writeSafeUTF(out, userJID.toString());
ExternalizableUtil.getInstance().writeSafeUTF(out, name);
ExternalizableUtil.getInstance().writeBoolean(out, isDefault);
ExternalizableUtil.getInstance().writeSafeUTF(out, asElement().asXML());
}
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
userJID = new JID(ExternalizableUtil.getInstance().readSafeUTF(in));
name = ExternalizableUtil.getInstance().readSafeUTF(in);
isDefault = ExternalizableUtil.getInstance().readBoolean(in);
String xml = ExternalizableUtil.getInstance().readSafeUTF(in);
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