[ http://jira.nuxeo.org/browse/NXP-2784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45333#action_45333 ]
Florent Guillaume commented on NXP-2784: ---------------------------------------- Adding another way to get the children, based on a query model, which then takes over the sorting and filtering (but the leafFilter is still used). This is not enabled by default and has to be explicitly enabled in a project by the treeManagerPlugin extension point: <treeManagerPlugin ...> ... <queryModel>TREE_CHILDREN</queryModel> </treeManagerPlugin> There is a TREE_CHILDREN query model provided by default but of course it can be redefined, or another one used: <queryModel name="TREE_CHILDREN"> <pattern> SELECT * FROM Document WHERE ecm:parentId = ? AND ecm:mixinType = 'Folderish' AND ecm:mixinType != 'HiddenInNavigation' AND ecm:isCheckedInVersion = 0 AND ecm:currentLifeCycleState != 'deleted' </pattern> <sortable value="true" defaultSortColumn="dc:title" defaultSortAscending="true" /> <max>50</max> </queryModel> For 5.1: http://hg.nuxeo.org/nuxeo/nuxeo-platform/rev/16428b2b85e6 For 5.2: http://hg.nuxeo.org/nuxeo/nuxeo-platform/rev/5a971993d24e > Add filter for the navigation tree to avoid getting the children of some big > folders > ------------------------------------------------------------------------------------ > > Key: NXP-2784 > URL: http://jira.nuxeo.org/browse/NXP-2784 > Project: Nuxeo Enterprise Platform > Issue Type: Improvement > Components: Web UI > Reporter: Florent Guillaume > Assignee: Florent Guillaume > Fix For: 5.1.7 > > Original Estimate: 2 hours > Time Spent: 1 day > Remaining Estimate: 0 minutes > > The JSF navigation tree (on the left) displays a + in front of nodes that are > folderish, to allow opening them to see their sub-folders. To do that it > needs to call getChildren(). > On big folders that contain only documents, this is extremely costly. > Therefore, a way to mark some folder as "don't get its children for the tree" > is needed. > This can be added as a new "leaf filter" for the tree manager. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nuxeo.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ ECM-tickets mailing list ECM-tickets@lists.nuxeo.com http://lists.nuxeo.com/mailman/listinfo/ecm-tickets