I have done the following (for if someone needs it):

I have looked at nuxeo code, and the "whereclauses" are extracted and added to 
a String variable with StringUtils.join(clauses, "AND" )... so, they are always 
AND clauses. What I have done, instead of using the "queryModelActions" 
provider, is to program  and reference another one. In it, I get the 
PredicateDescriptors array from my queryModel. For each element of that array, 
I use the "getQueryElement" method to extract the String which is going to be 
added to the query (all WHERE clauses). Now, I can do whatever I want with all 
the clausules of my "where" query.

Although this patch works it's very improvable. I think it would be useful to 
add an attribute to the <predicate> clause (or another different clause) to 
allow Developers to choose between "AND" or "OR" clauses. That's only an idea 
;-)

Kind Regards
--
Posted by "franciscogonzalez" at Nuxeo Discussions 
<http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=3082#9129>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to