I understand the difference between the Sling Resource Type and the JCR
Node type. However the resource.isResourceType is not specifically
dealing with one or the other. If I had a resource of a node with a
primaryNodeType of nt:file then doing resource.isResourceType("nt:file")
would return true.
Sling resource types have their own super type hierarchy. Using jcr node types
if no sling:resourceType is specified was added as a fallback for cases where
it is impractical to set a sling:resourceType. But it does not take into
account the node type hierarchy, I think because it would simply b
Hi Jason,
That’s true and mentioned, albeit a bit short on words if you will at [1]:
Returns true if the resource type or any of the resource's super type(s) equals
the given resource type.
So basically, Sling deals with Resource objects which have a Resource Type
which form a hierarchy much l