jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: Create nodetype through API
Date Fri, 13 Feb 2009 10:47:02 GMT
On Fri, Feb 13, 2009 at 8:27 AM, Patrick Plaatje <patrick@ipros.nl> wrote:
> i'm very new to Jackrabbit, and working myslef through the posiiblities of
> it. I came across the part on nodetypes and learned that nodetypes can be
> created by making a XML file of a CND file, and feed that to
> nodeTypeManager. All fine, but i didn't come across any class that could
> create this nodetpye programmatically. Is there an class which does this
> or is there a reason for it that it doesn't exist?

You don't have to convert CND into the XML node type format. The
JackrabbitNodeTypeManager can accept both. See the node type
documentation on the website:
http://jackrabbit.apache.org/node-types.html (code is at the bottom).


Alexander Klimetschek

View raw message