The easiest would be to call query on the session. The query would looks like:
SELECT * FROM Document WHERE ecm:parentId = ? AND ecm:isCheckedInVersion
= 0 AND ecm:mixinType != 'HiddenInNavigation' AND
ecm:currentLifeCycleState != 'deleted'
you can have a looks at queries in the file querymodel-contrib.xml in
nuxeo-platform-webapp-core.
For your use of getFiles, could you check with "deleted" (d instead of D). You
can see the lifecycle name in LifeCycleCoreExtensions.xml in nuxeo-core.
--
Posted by "arussel" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread:
<http://www.nuxeo.org/discussions/thread.jspa?threadID=3055#9031>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm