[jira] Created: (SLING-340) Use a JcrDefaultResourceTypeProvider for path-based resource types

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (SLING-340) Use a JcrDefaultResourceTypeProvider for path-based resource types

Andrei Shilov (Jira)
Use a JcrDefaultResourceTypeProvider for path-based resource types
------------------------------------------------------------------

                 Key: SLING-340
                 URL: https://issues.apache.org/jira/browse/SLING-340
             Project: Sling
          Issue Type: Improvement
            Reporter: Bertrand Delacretaz
            Priority: Minor


As discussed on sling-dev [1], add a JcrDefaultResourceTypeProvider interface in o.a.s.jcr.resource, with a default implementation in a separate bundle.

[1] Message-ID: <[hidden email]>

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (SLING-340) Use a JcrDefaultResourceTypeProvider for path-based resource types

Andrei Shilov (Jira)

     [ https://issues.apache.org/jira/browse/SLING-340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bertrand Delacretaz resolved SLING-340.
---------------------------------------

    Resolution: Fixed

Implemented in revision 641828.

The new jcr/default-rtp module provides a default implementation that uses mappings like

  /content:2

To mean "for nodes under /content, use the second element of the path as the resource type if the node has no sling:resourceType property". So a node at /content/foo/bar would get a resource type of "foo".

> Use a JcrDefaultResourceTypeProvider for path-based resource types
> ------------------------------------------------------------------
>
>                 Key: SLING-340
>                 URL: https://issues.apache.org/jira/browse/SLING-340
>             Project: Sling
>          Issue Type: Improvement
>            Reporter: Bertrand Delacretaz
>            Priority: Minor
>
> As discussed on sling-dev [1], add a JcrDefaultResourceTypeProvider interface in o.a.s.jcr.resource, with a default implementation in a separate bundle.
> [1] Message-ID: <[hidden email]>

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.