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

@ -127,17 +127,28 @@ public class PseudoFileOverlayImpl implements PseudoFileOverlay
} }
boolean isInDocLibrary = false; boolean isInDocLibrary = false;
NodeRef parent = nodeService.getPrimaryParent(nodeRef).getParentRef(); 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); String folderName = (String) nodeService.getProperty(nodeRef, ContentModel.PROP_NAME);
if (parentName.equalsIgnoreCase("documentlibrary")) if(folderName.equalsIgnoreCase("documentlibrary"))
{ {
isInDocLibrary = true; 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) if (parent == null)