Re: Differences between type responses for node and resource

2014-09-11 Thread Jason E Bailey
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.

Re: Differences between type responses for node and resource

2014-09-11 Thread Alexander Klimetschek
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

Re: Differences between type responses for node and resource

2014-09-11 Thread Felix Meschberger
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