mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user