Hi Craig!

Am 22.04.2008 um 22:55 schrieb Craig L. Ching:

2) It appears that the request URI to get the properties of a node is
[resource URI].json (more or less, there's a depth in there that I don't
quite understand yet).

You can also get the json for an entire subtree of the repository - simply use an URI of a node that has child nodes, grandchildren and so on. The depth specifies how many levels of the subtree should be put into the json. IIRC depth = 0 means current node and its properties only, 1 would mean to include the child nodes, 2 down to grand children etc. If you specify "-1", you will get the entire subtree ("infinity").

Is it safe to assume that users won't have
content at that URI?

Nodes and properties *are* content! :-)

The important part here is the "json" extension. This triggers the json export servlet, which is by default active for all content in the repository. I don't know if it can be overridden, ie. replaced by another servlet or script that would render the response differently, but I think this is not a good idea anyway, since it's essentially the main access for javascript-clients to the repository.

3) Does anyone have any thoughts on how they'd like to see properties
vs. children (e.g. does everyone agree that the way the Eclipse browser works is a good model for this? Or are there certain things that should be done differently? I have to admit, I'm not real fond of the Eclipse plugin's structure, but maybe I don't completely understand it either).
I'm sort of of the opinion that properties should not be in the tree,
the tree should only contain nodes and the properties should be in a
separate pane when a node is selected in the tree.


Personally I find the The JCR plugin for Eclipse not perfect regarding the layout... but this is probably because there are just so many views in different places each time ;-)

IMHO there should be 3 main panes: the tree (to the left), containing only nodes, a property + child node list and a third pane below with node type / property type definitions and other node metadata. Basically like the Windows explorer with an open folder view on the left. This is just a personal opinion, though.

Alex

--
Alexander Klimetschek
[EMAIL PROTECTED]

>> Day JCR Cup 08 | Win a MacBook Pro: http://dev.day.com/ <<




Reply via email to