jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramesh Devaraj" <r.deva...@maas.de>
Subject AW: creating node
Date Thu, 24 Aug 2006 13:37:15 GMT
Hi

 I want to create a node which is not added/attached to any node in the workspace.

Thank u very much
ramesh

-----Ursprüngliche Nachricht-----
Von: Nicolas [mailto:ntoper@gmail.com] 
Gesendet: Donnerstag, 24. August 2006 14:26
An: users@jackrabbit.apache.org
Betreff: Re: creating node

Hi,

Here is an example from the website:

          Node root = session.getRootNode();

            // *Store content*
            Node hello = root.addNode("hello");
            Node world = hello.addNode("world");
            world.setProperty("message", "Hello, World!");
            session.save();

Here is the link: http://jackrabbit.apache.org/doc/firststeps.html

By the way, you should create your app root, it is deemed as a good practive.


BR
Nico
my blog! http://www.deviant-abstraction.net !!

On 8/24/06, Ramesh Devaraj <r.devaraj@maas.de> wrote:
>
> Hi
>
>   Is there any to create a Node than attach to the root node
>
>   For example like this
>
>      Node a = createNode("a");
>
>      Session.getRootNode().addNode(a)
>
> Thank in Advance
>
> Devaraj Ramesh
>
> Maas High Tech Software GmbH
> Hornbergstr. 49
> 70794 Filderstadt
> Germany
>
>
> http://www.maas.de - Wir integrieren Zukunft
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> Weitergabe dieser Mail ist nicht gestattet.
>
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in
> error) please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
>
>

Mime
View raw message