2009/11/12 Vidar Ramdal <[email protected]> > >> What if you could post to a (Json)QueryServlet URL, something like: > >> POST > >> > http://localhost:8080/.query.json?statement=//*[sling:resourceType='myContentType > >> '] > >> ... with the fields > >> myprop=123 > >> anotherProp="new value" > >> ...etc > >> > >> The servlet would then run the query, and run the modifications on > >> each result node. > > On Thu, Nov 12, 2009 at 3:47 PM, Christophe Lombart > <[email protected]> wrote: > > This is exactly what I'm thinking about :-) > > I think we should have one servlet (or extension) / type of operation > > (delete props, rename prop, update value, ...). > > Those operations, aren't those already handled by SlingPostServlet? > > The SlingPostSerlvet already supports the :applyTo parameter [1], so > you can act on multiple nodes by supplying their paths. > Perhaps :applyTo could be extended to support XPath queries? >
This is maybe something that we can evaluate. > > [1] > http://dev.day.com/microsling/content/blogs/main/cheatsheet/docroot/back.png > - lower left corner > -- > Vidar S. Ramdal <[email protected]> - http://www.idium.no > Sommerrogata 13-15, N-0255 Oslo, Norway > + 47 22 00 84 00 / +47 21 531941, ext 2070 >
