On 2011-10-17 18:34, David Buchmann wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi,

i was playing around with the node types. according to the jcr
specification [1], nt:resource extends mix:mimeType, mix:lastModified

but in jackrabbit, it also has mix:referenceable...

NodeTypeManager m = s.getWorkspace().getNodeTypeManager();
NodeType t = m.getNodeType("nt:resource");
NodeType[] a = t.getDeclaredSupertypes();
for(int i=0; i<a.length; i++) {
     System.out.println(a[i].getName());
}

defined here
jackrabbit-core/target/classes/org/apache/jackrabbit/core/nodetype/builtin_nodetypes.cnd

is this on purpose? and are repositories allowed to do that? can they
add things in the default types on top of the specification type hierarchy?
...

AFAIR: yes, they can. For instance, there might be repositories that only support versionable nodes.

Best regards, Julian

Reply via email to