Merged MNT-17845-5.2.N (5.2.2) to 5.2.N (5.2.2)

137773 anechifor: REPO-2516 - MNT-17845 : Smart Folders - replece isReference with fromNodeRef


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@137783 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ancuta Morarasu
2017-06-23 11:37:21 +00:00
parent f84a7bf2f3
commit f6f20a31f9
5 changed files with 64 additions and 60 deletions

View File

@@ -42,7 +42,7 @@ public abstract class VirtualSpringBeanExtension<E, T extends Trait> extends Spr
public boolean isVirtualContextFolder(NodeRef nodeRef, ActualEnvironment environment)
{
boolean isReference=Reference.isReference(nodeRef);
boolean isReference=(Reference.fromNodeRef(nodeRef)!=null);
boolean isFolder=environment.isSubClass(environment.getType(nodeRef),
ContentModel.TYPE_FOLDER);
boolean virtualContext=environment.hasAspect(nodeRef,VirtualContentModel.ASPECT_VIRTUAL_DOCUMENT);