Ok, the NodeTypeDefDiff gets me part of the way there, but how do I go about updating my existing data with that info? JCR-322 just talks about the inability to perform Non-Trivial updates, which I'm not concerned with at the moment.
Will I still need to go through and unregister/register my NodeTypes, and assume I will loose the data with those? Thanks for the links and references! -Nick > > > trivial node type modifications are already supported. > for more details see: > > http://jackrabbit.apache.org/api-1/org/apache/jackrabbit/core/nodetype/NodeTypeDefDiff.html > http://issues.apache.org/jira/browse/JCR-322. > > here you'll find some sample code using node type definitions in CND/XML > format: > http://code.google.com/p/jackrabbit-jcr-demo/wiki/RegisterNodeTypes > > if you want to build the node type definition programmatically you can use > > http://jackrabbit.apache.org/api/1.4/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.html#registerNodeType(org.apache.jackrabbit.core.nodetype.jsr283.NodeTypeDefinition,%20boolean)<http://jackrabbit.apache.org/api/1.4/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.html#registerNodeType%28org.apache.jackrabbit.core.nodetype.jsr283.NodeTypeDefinition,%20boolean%29> > > BTW this method will probably be included in the JCR 2.0 API. > > cheers > stefan > > >> > >> regards, toby > >> > > >
