jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Buchmann <david.buchm...@liip.ch>
Subject nodetype nt:resource
Date Mon, 17 Oct 2011 16:34:07 GMT
-----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?

cheers,david


[1]
http://www.day.com/specs/jcr/2.0/3_Repository_Model.html#3.7.11.5%20nt:resource
- -- 
Liip AG // Agile Web Development // T +41 26 422 25 11
CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6cWP8ACgkQqBnXnqWBgIuq9wCfbZY+gHSBcgQnKniSuswAyMHV
IMMAoKStEPEdArrSNblXJTlaBwZS+SBi
=mCCL
-----END PGP SIGNATURE-----

Mime
View raw message