Hi,

Looking at the SLING-2530 Resources CRUD stuff - for the create
operation, https://cwiki.apache.org/confluence/display/SLING/Supporting+CRUD
says

> We add a new method create(String absolutePath, ValueMap properties) to the 
> resource resolver, where the value map is optional.
> This will create the resource at the given path and add the provided 
> properties.

I see two potential problems:

1) If the parent of the Resource to create does not exist yet, options
might be needed to specify how to create the intermediate path - the
node type to use for intermediate nodes in JCR, for example.
How can those options be specified?

2) If this requires the parent Resource to pre-exist, it would be
clearer to express that as a createChild method on the Resource object

Carsten, how do you see that in your design?

-Bertrand

Reply via email to