You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by David Buchmann <da...@liip.ch> on 2011/10/17 18:34:07 UTC
nodetype nt:resource
-----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-----
Re: nodetype nt:resource
Posted by Julian Reschke <ju...@gmx.de>.
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