Hi, Does sling support the following ? I have looked at some running instances and not found adapter factories that do.
Tenant tenant = resource.adaptTo(Tenant.class) Where tenant is the tenant in which the resource resides or the tenant has read access to. I guess in highly collaborative environments it could be more than one Tenant, but lets not go there just yet. and Tenant tenant = resource.getResourceResolver().adaptTo(Tenant.class) Where the tenant in this case the the tenant to which the user that created the resource resolver belongs. If Sling could support these 2 Adapt patterns I think it would greatly simplify how application code learns about the tenant environment it exists in. If it already does, is there a pointer to where, I could not find it. Best Regards Ian
