mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD-QA to HEAD (4.2) (including moving test classes into separate folders)
51903 to 54309 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54310 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -21,7 +21,7 @@ package org.alfresco.opencmis;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.alfresco.opencmis.CMISDispatcherRegistry.Binding;
|
||||
import org.alfresco.repo.web.scripts.TenantWebScriptServlet;
|
||||
import org.alfresco.repo.tenant.TenantUtil;
|
||||
|
||||
/**
|
||||
* Generates an OpenCMIS base url based on the request, repository id and binding.
|
||||
@@ -109,7 +109,7 @@ public abstract class AbstractBaseUrlGenerator implements BaseUrlGenerator
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRequestURI(HttpServletRequest req, String repositoryId, String operation)
|
||||
public String getRequestURI(HttpServletRequest req, String repositoryId, String operation, String id)
|
||||
{
|
||||
StringBuilder url = new StringBuilder();
|
||||
|
||||
@@ -133,13 +133,19 @@ public abstract class AbstractBaseUrlGenerator implements BaseUrlGenerator
|
||||
|
||||
if(repositoryId != null)
|
||||
{
|
||||
url.append(repositoryId == null ? TenantWebScriptServlet.DEFAULT_TENANT : repositoryId);
|
||||
url.append(repositoryId == null ? TenantUtil.DEFAULT_TENANT : repositoryId);
|
||||
url.append("/");
|
||||
}
|
||||
|
||||
if(operation != null)
|
||||
{
|
||||
url.append(operation);
|
||||
url.append("/");
|
||||
}
|
||||
|
||||
if(id != null)
|
||||
{
|
||||
url.append(id);
|
||||
}
|
||||
|
||||
int length = url.length();
|
||||
|
Reference in New Issue
Block a user