You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2018/03/08 09:02:00 UTC

[jira] [Commented] (SLING-7377) Expose derived resource types for a given resource type

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

Carsten Ziegeler commented on SLING-7377:
-----------------------------------------

As noted in my last mail to the above mentioned thread, even if you have this list how do you want to generate the query?

> Expose derived resource types for a given resource type
> -------------------------------------------------------
>
>                 Key: SLING-7377
>                 URL: https://issues.apache.org/jira/browse/SLING-7377
>             Project: Sling
>          Issue Type: Improvement
>          Components: API, ResourceResolver
>    Affects Versions: API 2.16.4
>            Reporter: Konrad Windszus
>            Priority: Major
>
> Currently {{sling::resourceSuperType}} properties are only evaluated in the Sling Servlet Resolver and it is only possible to retrieve the super type of a given type (via {{Resource.getResourceSuperType()}} (https://issues.apache.org/jira/browse/SLING-278) but not vice versa.
> For the use case of e.g. searching for content of resource type {{a}} or any type derived from {{a}} it is necessary to know all resource types derived from {{a}} (direct or transitive) up front.
> For that I propose to extend the {{ResourceResolver}} interface with an additional method which retrieves all derived resource types for a given type.
> There was an initial discussion about this in https://www.mail-archive.com/dev@sling.apache.org/msg73080.html.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)