Permalink
Browse files

Fix chat message writing to use PersonalUtils

  • Loading branch information...
1 parent 6b40269 commit 35f7d7d3b2ce322da5a159dd443876898904c8ef @codders committed Sep 17, 2009
@@ -20,6 +20,7 @@
import org.apache.sling.commons.json.JSONException;
import org.apache.sling.commons.json.io.JSONWriter;
import org.sakaiproject.kernel.api.message.MessageConstants;
+import org.sakaiproject.kernel.api.personal.PersonalUtils;
import org.sakaiproject.kernel.message.MessageSearchResultProcessor;
import javax.jcr.Node;
@@ -61,11 +62,11 @@ public void writeNode(JSONWriter write, Node resultNode) throws JSONException,
// TODO : This should probably be using an Authorizable. However, updated
// properties were not included in this..
if (resultNode.hasProperty(MessageConstants.PROP_SAKAI_TO)) {
- writeUserInfo(resultNode, write, MessageConstants.PROP_SAKAI_TO, "userTo");
+ PersonalUtils.writeUserInfo(resultNode, write, MessageConstants.PROP_SAKAI_TO, "userTo");
}
if (resultNode.hasProperty(MessageConstants.PROP_SAKAI_FROM)) {
- writeUserInfo(resultNode, write, MessageConstants.PROP_SAKAI_FROM, "userFrom");
+ PersonalUtils.writeUserInfo(resultNode, write, MessageConstants.PROP_SAKAI_FROM, "userFrom");
}
// List all of the properties on here.

0 comments on commit 35f7d7d

Please sign in to comment.