Author: deepal
Date: Mon Jan 14 01:38:56 2008
New Revision: 12198

Log:

fixing issue REGISTRY-98

Modified:
   
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
   
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/RemoteRegistry.java

Modified: 
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
==============================================================================
--- 
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
   (original)
+++ 
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
   Mon Jan 14 01:38:56 2008
@@ -430,6 +430,7 @@
         String href = baseURI + "atom" + path;
         feed.addLink(href);
         feed.addLink(href, "path");
+        feed.addSimpleExtension(new QName("lastUpdatedUser") , 
resource.getLastUpdaterUserName());
 
         //if the content type is comment then the resource will contains ,
         // String array of comments

Modified: 
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/RemoteRegistry.java
==============================================================================
--- 
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/RemoteRegistry.java
 (original)
+++ 
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/RemoteRegistry.java
 Mon Jan 14 01:38:56 2008
@@ -118,6 +118,11 @@
         if (cretedDate != null) {
             resource.setCreatedTime(new Date(Long.parseLong(cretedDate)));
         }
+
+        String lastUpdatedUSer = feed.getSimpleExtension(new 
QName("lastUpdatedUser") );
+        if (lastUpdatedUSer != null){
+            resource.setLastUpdaterUserName(lastUpdatedUSer);
+        }
         resource.setPath(feed.getTitle());
         resource.setDescription(feed.getSubtitle());
         String state = feed.getSimpleExtension(new QName("state"));

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to