Felix,
I will take a stab at this, I hope you don't mind since I am not using
the functionality described, I may be completely off the mark.
Can FsResourceProvider work w/o the superType "/sling/fs/resource"? Can
it use "nt:file" to encompass files and folders? It would be strange to
have a superType that was defined in a different way from the resource
type, so mingling stuff with an interface defined in JCR with stuff with
an interface defined in Fs would not be that coherent.
If it can't or you don't want it to, it seems like the question may
become whether JCR should expose some other type which underlies nt:file
and nt:folder through the getSuperType() method, in order to provide a
common interface for querying file and folder nodes (perhaps looking at
date modified, last access, etc?).
From a practical standpoint it makes sense to have a "resource type" in
JCR, but I don't know what the implication would be as far as the spec
and the existing contracts around using getSuperType, or whether this
kind of interface can effectively live in a layer above JCR to make an
end-run around the question.
Regards,
J5
Felix Meschberger wrote:
Hi,
We currently have the following resource providers which handle resource
types for resources denoting files and folders:
(1) JcrResourceProvider:
File has resource type nt:file
Folder has resource type nt:folder
Jcr[Node|Property]Resource.getSuperType() returns null
(2) BundleResourceProvider:
File has resource type nt:file
Folder has resource type nt:folder
BundleResource.getSuperType() returns null
(3) FsResourceProvider:
File has resource type sling/fs/file
Folder has resource type sling/fs/folder
FsResource.getSupertType() returns sling/fs/resource
I have the impression, that in the context abstract resource access, we
might want to have common resource types identifying resources denoting
file and folder concepts.
So, I think the FsResourceProvider should be modified to implement the
resource type assignment used by the BundleResourceProvider and the
JcrResourceprovider.
WDYT ?
I am ready to do a 1.0 release of the FS Resource Provider once this has
been resolved.
Regards
Felix