jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Edelson <justinedel...@gmail.com>
Subject Re: Question about updating node types
Date Tue, 28 Sep 2010 21:39:06 GMT
This is the easiest method:
http://jackrabbit.apache.org/api/2.1/org/apache/jackrabbit/commons/cnd/CndImporter.html#registerNodeTypes(java.io.Reader,
java.lang.String, javax.jcr.nodetype.NodeTypeManager,
javax.jcr.NamespaceRegistry, javax.jcr.ValueFactory, boolean)

Pass true as the last parameter.

I should point out that this only works with Jackrabbit 2.0 and above.

Justin

On 9/28/10 5:04 PM, Zoltan Farkas wrote:
> Cool, how can I achieve that? Can you point me to the API, or a sample? 
> 
> Thank you
> 
> --zoly
> 
> On Sep 28, 2010, at 4:27 PM, Justin Edelson <justinedelson@gmail.com> wrote:
> 
>> Yes, although not if the property is mandatory.
>>
>> On 9/28/10 4:01 PM, Zoltan Farkas wrote:
>>> Can a node type be updated ? (add a property)
>>>
>>> --zoly
>>


Mime
View raw message