abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dand...@apache.org
Subject svn commit: r634479 - /incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/employee/EmployeeCollectionAdapter.java
Date Fri, 07 Mar 2008 00:33:12 GMT
Author: dandiep
Date: Thu Mar  6 16:33:11 2008
New Revision: 634479

URL: http://svn.apache.org/viewvc?rev=634479&view=rev
Log:
More snippet stuff

Modified:
    incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/employee/EmployeeCollectionAdapter.java

Modified: incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/employee/EmployeeCollectionAdapter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/employee/EmployeeCollectionAdapter.java?rev=634479&r1=634478&r2=634479&view=diff
==============================================================================
--- incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/employee/EmployeeCollectionAdapter.java
(original)
+++ incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/employee/EmployeeCollectionAdapter.java
Thu Mar  6 16:33:11 2008
@@ -48,10 +48,11 @@
     return "Acme Industries";
   }
   // END SNIPPET: feedmetadata
-  
+  // START SNIPPET: getEntries
   public Iterable<Employee> getEntries(RequestContext request) {
     return employees.values();
   }
+  // END SNIPPET: getEntries
   // START SNIPPET: getEntry
   public Employee getEntry(String resourceName, RequestContext request) throws ResponseContextException
{
     Integer id = getIdFromResourceName(resourceName);
@@ -65,19 +66,20 @@
     }
     return new Integer(resourceName.substring(0, idx));
   }
+
+  public String getName(Employee entry) {
+    return entry.getId() + "-" + entry.getName().replaceAll(" ", "_");
+  }
   // END SNIPPET: getEntry
   // START SNIPPET: entryMetadata
   public String getId(Employee entry) {
     return ID_PREFIX + entry.getId();
   }
-
-  public String getName(Employee entry) {
-    return entry.getId() + "-" + entry.getName().replaceAll(" ", "_");
-  }
+  
   public String getTitle(Employee entry) {
     return entry.getName();
   }
-
+  
   public Date getUpdated(Employee entry) {
     return entry.getUpdated();
   }



Mime
View raw message