CLOUD-2198: restored posting of activities from Sharepoint.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@58179 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Matt Ward
2013-11-22 17:22:28 +00:00
parent 8459973ee3
commit 7f1c0c42c7

View File

@@ -784,16 +784,21 @@ public class WebDAVHelper
}
public String determineSiteId(WebDAVMethod method)
{
return determineSiteId(method.getRootNodeRef(), method.getPath());
}
public String determineSiteId(NodeRef rootNodeRef, String path)
{
SiteService siteService = getServiceRegistry().getSiteService();
String siteId;
try
{
FileInfo fileInfo = getNodeForPath(method.getRootNodeRef(), method.getPath());
FileInfo fileInfo = getNodeForPath(rootNodeRef, path);
siteId = siteService.getSiteShortName(fileInfo.getNodeRef());
if (siteId == null)
{
throw new RuntimeException("Node is not contained by a site: " + method.getPath());
throw new RuntimeException("Node is not contained by a site: " + path);
}
}
catch (Exception error)
@@ -803,7 +808,13 @@ public class WebDAVHelper
return siteId;
}
@Deprecated
public String determineTenantDomain(WebDAVMethod method)
{
return determineTenantDomain();
}
public String determineTenantDomain()
{
TenantService tenantService = getTenantService();
String tenantDomain = tenantService.getCurrentUserDomain();