jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCR-3005) Make it possible to get multiple nodes in one call via davex
Date Thu, 06 Oct 2011 14:46:29 GMT

    [ https://issues.apache.org/jira/browse/JCR-3005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121982#comment-13121982
] 

Jukka Zitting commented on JCR-3005:
------------------------------------

> simply retrieving the workspace name from the locator wasn't my intention.

I'm just using the locator to check whether the request is targeting a workspace resource
or not. Is there a better way to do that? The other alternative I considered was using instanceof
WorkspaceResource, but that didn't seem any cleaner. Ideally I think we should allow the resource
itself to process the HTTP request, but that would require quite a bit of refactoring of the
current codebase.

> request ANY dav resource and get back the json-serialization of some other resources.

In the HTTP sense the resource is the one identified by the full URI (e.g. .../default?:path=/node1&path=/node2)
instead of just the path part (.../default), so I don't see a fundamental disconnect here.
From the perspective of a clean URI space though it would of course be nicer if the multi-read
case was better rooted to a single root resource.

One way we could achieve that would be to introduce extra ":include" and ":exclude" patterns
for the normal batch-read functionality. Such patterns direct which parts of the subtree rooted
at the identified resources should be included in or excluded from the JSON response. For
example:

    $ curl http://localhost:8080/server/default/jcr:root/path.json?:include=node1&:include=node2
    {...,"node1":{...},"node2":{...}}

or

    $ curl http://localhost:8080/server/default/jcr:root/.json?:include=path&:exclude=path/node2
    {...,"path":{"node1":{...},"node3":{...}}}
                
> Make it possible to get multiple nodes in one call via davex
> ------------------------------------------------------------
>
>                 Key: JCR-3005
>                 URL: https://issues.apache.org/jira/browse/JCR-3005
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-jcr-server
>            Reporter: Christian Stocker
>            Assignee: Jukka Zitting
>             Fix For: 2.3.1
>
>         Attachments: getSessions.patch
>
>
> I'm working on this currently

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message