Hi Bruce,

This kind of code would be useful in generic Nuxeo I believe. If you
want to contribute this code, could you open a NXP ticket and attach
the things you had to change?

Bye,
Florent


2010/3/10 Bruce Grant <[email protected]>:
> I ended up overriding SearchActionsBean and SearchResultsBean to implement a 
> new new type of search I called CONSTRAINED. The big change i made was the 
> ability to pass a parameter from the search xhtml to the underlying custom 
> search process which then maps to a queryModel I contributed via a query 
> model contribution. In this way I can have numerous searches, each that uses 
> it's own NXQL and I can restrict simple searches to a specific document type 
> for example.
>
> The xhtml command button then looked like
>     <h:commandButton 
> action="#{searchActions.performSearchCustom('CONSTRAINED')}"
>       rendered="#{searchEnabled}"
>       value="Client" class="button" />
>
> Constrained maps (programmatically) to a query contribution
>                 <queryModel name="CONSTRAINED_SEARCH">
>                         <pattern>
>                                 SELECT * FROM Document
>                                 WHERE ecm:fulltext LIKE ? AND
>                                 ecm:mixinType != 'HiddenInNavigation' AND
>                                 ecm:isCheckedInVersion = 0 AND
>                                 ecm:primaryType = 'Client Binder' AND
>                                 ecm:currentLifeCycleState != 'deleted'
>                       </pattern>
>                         <max>15</max>
>                         <sortable value="true" />
>                 </queryModel>
>


-- 
Florent Guillaume, Director of R&D, Nuxeo
Open Source, Java EE based, Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87
_______________________________________________
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