You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2008/03/27 15:35:25 UTC

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

     [ 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: <f7...@mail.gmail.com>

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