Hello Stefan,
Stefan Guggisberg wrote:
thank you very much!On 4/18/05, Sandro B�hme <[EMAIL PROTECTED]> wrote:
Hi Stefan,
> check out >http://article.gmane.org/gmane.comp.apache.jackrabbit.devel/702 sorry, but I don't see in this article, how registering of nodetypes will later be accessable. Can you please clearify what I'am miss here?
you can register node types by calling
NodeTypeRegistry.registerNodeType().
here's how you get the NodeTypeRegistry object:
Workspace wsp = session.getWorkspace();
NodeTypeManager ntMgr = wsp.getNodeTypeManager();
NodeTypeRegistry ntReg = ((NodeTypeManagerImpl) ntMgr).getNodeTypeRegistry();
node type registration is not covered by the jsr-170 spec but it's nonetheless available in jackrabbit since day 0.
I knew that it is not part of the spec (this is why I asked how it will be accessable by jackrabbit). But I missed
the cast "(NodeTypeManagerImpl) ntMgr" to access the nodetype registry.
This helps alot.
Regards,
Sandro
cheers stefan
btw: custom_nodetypes.xml should never be manipulated directly
Regards,
Sandro
