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

Carsten Ziegeler commented on SLING-4184:
-----------------------------------------

I've committed a first version which introduces a PathMapper service which can 
be configured with mappings from a JCR path to a resource path, e.g.:

/foo:/bar

If a resource /bar is requested, the node at /foo is returned, the mapping 
applies to the whole subtree.

It's also possible to not expose certain parts of the repository as resources, 
e.g.:

/temp:.

In that case if a resource /temp is requested, no JCR resource is returned.

The mapping is also applied for the resource events and search results.

I've added a simple junit test for the mapper but I think we should test:
- resource mapping
- observation events
- search results

> Provide path mapping from JCR nodes to resource paths
> -----------------------------------------------------
>
>                 Key: SLING-4184
>                 URL: https://issues.apache.org/jira/browse/SLING-4184
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: JCR Resource 2.4.0
>
>
> Right now a JCR repository is mounted as is without any way to make this more 
> fine grained, for example if you want to mount a whole repository but a 
> specific sub tree, or you want the whole repository as is, but map just one 
> sub tree to a different path/name, this is currently not possible.
> The mapping on the resource level is too high level for these things.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to