mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-30 18:15:39 +00:00
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:
parent
2c0477f462
commit
1ae074b266
@ -129,15 +129,26 @@ public class PseudoFileOverlayImpl implements PseudoFileOverlay
|
|||||||
|
|
||||||
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user