You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fg...@apache.org on 2010/01/14 17:47:30 UTC
svn commit: r899289 -
/incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISServiceResponse.java
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);