sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <>
Subject [jira] [Issue Comment Deleted] (SLING-7377) Expose derived resource types for a given resource type
Date Fri, 12 Jan 2018 13:47:00 GMT


Carsten Ziegeler updated SLING-7377:
    Comment: was deleted

(was: [~kwin] I'm not sure whether we need such an api - there is ResourceResolver#getParentResourceType(String)
. Doesn't iterating using this method solve the problem?)

> Expose derived resource types for a given resource type
> -------------------------------------------------------
>                 Key: SLING-7377
>                 URL:
>             Project: Sling
>          Issue Type: Improvement
>          Components: API, ResourceResolver
>    Affects Versions: API 2.16.4
>            Reporter: Konrad Windszus
> 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()}}
( 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

This message was sent by Atlassian JIRA

View raw message