Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)

122183 jvonka: FileFolderService / GetChildrenCQ - list children may ignore specific node type filter (and return all rather than none)
   - initially fixed on BRANCHES/DEV/FILE-FOLDER-API (see also RA-811)
   - will eventually be merged to HEAD for 5.N (although this specific commit could be cherry-picked sooner, if needed)
   ACE-5114, RA-811


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126459 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jamal Kaabi-Mofrad
2016-05-10 11:03:22 +00:00
parent 6d2906efcc
commit 2341e9f573
2 changed files with 111 additions and 80 deletions

View File

@@ -433,6 +433,21 @@ public class GetChildrenCannedQueryTest extends TestCase
antiChildTypeQNames.add(ContentModel.TYPE_FOLDER);
filterByTypeAndCheck(parentNodeRef, childTypeQNames, antiChildTypeQNames);
// Specific super-type (that likely does not exist in DB, at least yet - see ACE-5114 - alternatively could create custom type to ensure this)
// note: results should return 0
childTypeQNames.clear();
childTypeQNames.add(ContentModel.TYPE_LINK);
PagingResults<NodeRef> results = list(parentNodeRef, -1, -1, 0, childTypeQNames, null, null);
assertEquals(0, results.getPage().size());
childTypeQNames.clear();
childTypeQNames.add(ContentModel.TYPE_CMOBJECT);
results = list(parentNodeRef, -1, -1, 0, childTypeQNames, null, null);
assertEquals(0, results.getPage().size());
}
public void testPropertyStringFiltering() throws Exception