jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandro Böhme <s.boe...@inovex.de>
Subject Re: Getting "custom" objects from the repository?
Date Mon, 18 Apr 2005 14:18:08 GMT
Hello Stefan,

Stefan Guggisberg wrote:
> On 4/18/05, Sandro Böhme <s.boehme@inovex.de> 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.
thank you very much!
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
>>
> 
> 
> 

Mime
View raw message