[Yanel-commits] rev 57551 - public/yanel/trunk/src/contributions/resources/personalized-content/src/java/org/wyona/yanel/impl/resources/boost

michi at wyona.com michi at wyona.com
Mon Mar 28 11:01:53 CEST 2011


Author: michi
Date: 2011-03-28 11:01:52 +0200 (Mon, 28 Mar 2011)
New Revision: 57551

Modified:
   public/yanel/trunk/src/contributions/resources/personalized-content/src/java/org/wyona/yanel/impl/resources/boost/PersonalizedContentResource.java
Log:
last modified to result added

Modified: public/yanel/trunk/src/contributions/resources/personalized-content/src/java/org/wyona/yanel/impl/resources/boost/PersonalizedContentResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/personalized-content/src/java/org/wyona/yanel/impl/resources/boost/PersonalizedContentResource.java	2011-03-28 09:00:56 UTC (rev 57550)
+++ public/yanel/trunk/src/contributions/resources/personalized-content/src/java/org/wyona/yanel/impl/resources/boost/PersonalizedContentResource.java	2011-03-28 09:01:52 UTC (rev 57551)
@@ -58,6 +58,7 @@
                         for (int i = 0; i < nodes.length; i++) {
                             org.w3c.dom.Element result = doc.createElementNS(NAMESPACE, "result");
                             result.setAttributeNS(NAMESPACE, "node-path", nodes[i].getPath());
+                            result.setAttributeNS(NAMESPACE, "node-last-modified", "" + new Date(nodes[i].getLastModified()));
                             result.setAttributeNS(NAMESPACE, "interest", userInterests[k]);
                             doc.getDocumentElement().appendChild(result);
                         }



More information about the Yanel-commits mailing list