jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Mueller <muel...@adobe.com>
Subject Re: [Jackrabbit Wiki] Update of "Jsop" by MichaelDürig
Date Wed, 02 Nov 2011 16:17:12 GMT

>I look at this from the perspective of converting a JSOP document (or
>string or text or file or HTTP request) into a series of JCR API calls.
>In such a scenario, I would have easy support for SET and REMOVE but
>would have two issues for supporting ADD:
>(1) I would have to inspect the argument to ADD to find out whether it is
>an addNode or setProperty call

Yes. You have to do that same when adding a node:

+ "/test": { "x": 1, "y": {} }

here "x" is a property and "y" is a node. The only way to decide which is
which is by looking at what comes after the ":".

>(2) I would have to handle SET and ADD-for-property with the same
>setProperty call

Yes, why is this a problem?

>This feels wrong.

I don't see anything wrong actually.


View raw message