Kevin Roast d7663be072 First part of ETHREEOH-3062.
- Fast NodeService.getChildAssocs(types) based API added to ScriptNode for non-xpath based retrieval of file folder child nodes
 - Optionally retrieve files, folders or both
 - Optionally ignore certain sub-types e.g. fm:forum
 - Automatically remove cm:systemfolder sub-types - equivalent to FileFolderService.list() and related methods
 - Modified Share treenode data webscript to use faster API for child folder node counts

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16980 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-10-16 10:04:05 +00:00

8 lines
372 B
JavaScript

var results1 = companyhome.childFileFolders();
var results2 = companyhome.childFileFolders(true, false);
var results3 = companyhome.childFileFolders(false, true);
var results4 = companyhome.childFileFolders(false, true, "fm:forums");
var types = new Array();
types.push("fm:forums");
types.push("fm:forum");
var results5 = companyhome.childFileFolders(false, true, types);