Maybe we should tackle this in steps. From what I heard so far, it seems
we can agree on:

a) forget about Resource#getResourceSuperType. This method is ignored
   from now on (and deprecated)

How about having a dedicated service, like:

d) we create a service which has three methods

  // get the super type
  String getResourceSuperType(ResourceResolver resolver, String
resourceType);

  // get an ordered list of all super types
  List<String> getResourceSuperTypes(ResourceResolver resolver, String
resourceType)

 // check if resourceType is checkResourceType (either directly or one
of the parents
boolean isResourceType(ResourceResolver resolver, String resourceType,
 String checkResourceType)

Regards
Carsten
-- 
Carsten Ziegeler
Adobe Research Switzerland
cziege...@apache.org

Reply via email to