chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fguilla...@apache.org
Subject svn commit: r899289 - /incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISServiceResponse.java
Date Thu, 14 Jan 2010 16:47:30 GMT
Author: fguillaume
Date: Thu Jan 14 16:47:29 2010
New Revision: 899289

URL: http://svn.apache.org/viewvc?rev=899289&view=rev
Log:
Proper type for foldertree and typedescendants links in AtomPub service document

Modified:
    incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISServiceResponse.java

Modified: incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISServiceResponse.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISServiceResponse.java?rev=899289&r1=899288&r2=899289&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISServiceResponse.java
(original)
+++ incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISServiceResponse.java
Thu Jan 14 16:47:29 2010
@@ -83,14 +83,14 @@
             // CMIS links
             sw.startElement(AtomPub.ATOM_LINK);
             sw.writeAttribute("rel", AtomPubCMIS.LINK_TYPE_DESCENDANTS);
-            sw.writeAttribute("type", AtomPub.MEDIA_TYPE_ATOM_FEED);
+            sw.writeAttribute("type", AtomPubCMIS.MEDIA_TYPE_CMIS_TREE);
             String tdurl = CMISTypesCollection.getTypeDescendantsLink(null,
                     request);
             sw.writeAttribute("href", tdurl);
             sw.endElement();
             sw.startElement(AtomPub.ATOM_LINK);
             sw.writeAttribute("rel", AtomPubCMIS.LINK_FOLDER_TREE);
-            sw.writeAttribute("type", AtomPub.MEDIA_TYPE_ATOM_FEED);
+            sw.writeAttribute("type", AtomPubCMIS.MEDIA_TYPE_CMIS_TREE);
             String fturl = CMISTypesCollection.getFolderTreeLink(
                     info.getRootFolderId().getId(), request);
             sw.writeAttribute("href", fturl);



Mime
View raw message