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/02/25 19:04:23 UTC
svn commit: r916379 -
/incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISCollection.java
Author: fguillaume
Date: Thu Feb 25 18:04:22 2010
New Revision: 916379
URL: http://svn.apache.org/viewvc?rev=916379&view=rev
Log:
CMIS-119: allow specifying repositoryId within link URLs
Modified:
incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISCollection.java
Modified: incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISCollection.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISCollection.java?rev=916379&r1=916378&r2=916379&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISCollection.java (original)
+++ incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISCollection.java Thu Feb 25 18:04:22 2010
@@ -13,6 +13,7 @@
*
* Authors:
* Florent Guillaume, Nuxeo
+ * Amelie Avramo, EntropySoft
*/
package org.apache.chemistry.atompub.server;
@@ -137,7 +138,11 @@
*/
public String getServiceLink(RequestContext request) {
- return request.absoluteUrlFor(TargetType.TYPE_SERVICE, null);
+ Map<String, String> params = new HashMap<String, String>();
+ if (repository != null) {
+ params.put("repository", repository.getId());
+ }
+ return request.absoluteUrlFor(TargetType.TYPE_SERVICE, params);
}
protected String getEntrylink(String entryType, String id,