jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Nuescheler <da...@day.com>
Subject [Chemistry] URL Layout
Date Tue, 28 Apr 2009 11:46:41 GMT
Hi all,

currently the URL layout of chemistry is exposed in a fashion that
prefixes the operation (eg. "/children/<folder-id>") and by coincidence
also permits the use of slashes in the folder & document ids.

I would like to propose a more natural mapping that also reflects a nicer
mapping for repositories that choose to expose a hierarchy and allows
for web infrastructure that make use of the hierarchical nature of the the
URL to apply things like access control.

my recommendation would be to go with something that would use the
folder & document id as the path and then identify the operation with
a suffix. (eg. /<folder-id>.children.xml)

so this would mean that instead of ...

/children/my/deep/folder/id
/children/9c56d0fcf93175d70e1c9b9d188167cf
/type/my/deep/folder/id
/type/9c56d0fcf93175d70e1c9b9d188167cf

... the URLs would be ...

/my/deep/folder.children.xml
/my/deep/folder.type.xml
/9c56d0fcf93175d70e1c9b9d188167cf.children.xml
/9c56d0fcf93175d70e1c9b9d188167cf.type.xml

WDYT?

regards,
david

-- 
Visit: http://dev.day.com/

Mime
View raw message