ACE-2735 : CIFS desktop actions should be re-worked to use Share URLs

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@85925 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers 2014-09-29 14:59:20 +00:00
parent 2c0477f462
commit 1ae074b266

View File

@ -129,15 +129,26 @@ public class PseudoFileOverlayImpl implements PseudoFileOverlay
NodeRef parent = nodeService.getPrimaryParent(nodeRef).getParentRef();
while (parent != null && !nodeService.getType(parent).equals(SiteModel.TYPE_SITE))
if(nodeService.getType(parent).equals(SiteModel.TYPE_SITE))
{
String parentName = (String) nodeService.getProperty(parent, ContentModel.PROP_NAME);
if (parentName.equalsIgnoreCase("documentlibrary"))
String folderName = (String) nodeService.getProperty(nodeRef, ContentModel.PROP_NAME);
if(folderName.equalsIgnoreCase("documentlibrary"))
{
isInDocLibrary = true;
}
}
else
{
while (parent != null && !nodeService.getType(parent).equals(SiteModel.TYPE_SITE))
{
String parentName = (String) nodeService.getProperty(parent, ContentModel.PROP_NAME);
if (parentName.equalsIgnoreCase("documentlibrary"))
{
isInDocLibrary = true;
}
parent = nodeService.getPrimaryParent(parent).getParentRef();
parent = nodeService.getPrimaryParent(parent).getParentRef();
}
}
if (parent == null)