[Yanel-commits] rev 29780 - public/yanel/contributions/realms/foaf/src/resources/findfriend/src/java/org/wyona/yanel/impl/resources/findfriend

michi at wyona.com michi at wyona.com
Tue Dec 11 23:40:10 CET 2007


Author: michi
Date: 2007-12-11 23:40:10 +0100 (Tue, 11 Dec 2007)
New Revision: 29780

Modified:
   public/yanel/contributions/realms/foaf/src/resources/findfriend/src/java/org/wyona/yanel/impl/resources/findfriend/FindFriendResource.java
Log:
use person instead foo bar

Modified: public/yanel/contributions/realms/foaf/src/resources/findfriend/src/java/org/wyona/yanel/impl/resources/findfriend/FindFriendResource.java
===================================================================
--- public/yanel/contributions/realms/foaf/src/resources/findfriend/src/java/org/wyona/yanel/impl/resources/findfriend/FindFriendResource.java	2007-12-11 22:39:22 UTC (rev 29779)
+++ public/yanel/contributions/realms/foaf/src/resources/findfriend/src/java/org/wyona/yanel/impl/resources/findfriend/FindFriendResource.java	2007-12-11 22:40:10 UTC (rev 29780)
@@ -104,11 +104,11 @@
 
             Repository pRepo = getProfilesRepository();
             Node[] pNodes = pRepo.search(qs);
-            //Node[] pNodes = pRepo.getNode("/profiles").getNodes();
             if (pNodes != null) {
             for (int i = 0; i < pNodes.length; i++) {
+                org.wyona.foaf.api.basics.Person person = new org.wyona.foaf.impl.basics.PersonImpl();
                 sb.append("<result number=\"" + "1" + "\" source-name=\"" + "Wyona-FOAF" + "\">");
-                sb.append("<title><![CDATA[" + "Foo Bar" + "]]></title>");
+                sb.append("<title><![CDATA[" + person.getName() + "]]></title>");
                 sb.append("<excerpt><![CDATA[" + "About Foo Bar ..." + "]]></excerpt>");
                 sb.append("<url><![CDATA[" + "profiles/" + withoutSuffix(pNodes[i].getName()) + ".html" + "]]></url>");
                 sb.append("<last-modified><![CDATA[" + "null" + "]]></last-modified>");



More information about the Yanel-commits mailing list