On 16/07/13 12:47, nikosdim wrote:
And just a quick question on this FIQL approach.
Lets say that I have the service
localhost:808/service/books;author==Peter;records=20
SQLPrinterVisitor<Server> visitor = new SQLPrinterVisitor<Server>(
beanPropertiesMap, "books", cols);
where the "author" is included in the beanPropertiesMap but the "records" is
a parameter that we want to take with the @MatrixParam. Despite the fact
that @MatrixParam("records") getsthe value 20 of the "records" the FIQL
visitor throws an exception because the "records" matrix parameter is not
included in the beanPropertiesMap.
Is there any way to configure visitor to ignore the properties that are not
included in the beanPropertiesMap?
You can set a "search.lax.property.match" contextual property to get
those search properties which can not be mapped to bean properties ignored.
Or if I decide to follow this FIQL functionality and get my search
expressions through the ; symbol using the "ignore.matri.parameters"
property I am losing the functionality of the matrix parameters?
When you use this particular style the idea is that an expression like
"books;author==Peter" needs to be made available to a FIQL parser as a
single path segment value, and to do it we need to disable the runtime
stripping "author==Peter" which it will do by default
Perhaps, when working with this style, you can separate the actual
search expression from a paging parameter like this:
localhost:808/service/books;author==Peter?records=20
and capture the 'records' parameter with QueryParam.
Cheers, Sergey
Thanks
--
View this message in context:
http://cxf.547215.n5.nabble.com/Where-to-put-contextual-property-ignore-matrix-parameters-true-tp5730881p5730908.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com