Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7377

Expose derived resource types for a given resource type

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: API 2.16.4
    • Fix Version/s: None
    • Component/s: API, ResourceResolver
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kwin Konrad Windszus
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: