jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Stuart" <nstu...@speranzasystems.com>
Subject Re: Incremental node type update?!?
Date Fri, 18 Jul 2008 19:53:47 GMT
Blah, nevermind I see the allowUpdate flag on there now....yeah for
reading....

On Fri, Jul 18, 2008 at 3:52 PM, Nick Stuart <nstuart@speranzasystems.com>
wrote:

> 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
>> >>
>> >
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message