AnsweredAssumed Answered

JCR & versioning

Question asked by anweber on Apr 20, 2006
Latest reply on Sep 22, 2009 by jharrop
Hi,

   I have a little problem when I try to create a node with "versionable" aspect.  When I look at the created node with the webClient, I see it as checked-out (without the working node) but I want to obtain a checked-in node.

There is an extract of my code :


            Node document = folder.addNode("cm:aweTestDoc", "cm:content");
            document.setProperty("cm:name", "AWE test doc");
            document.setProperty("cm:description", "AWE test document, created with JCR");
            document.setProperty("cm:title", "AWE document");
            document.setProperty("cm:content", "xxxxxxxxxxxxx");
            document.addMixin("mix:versionable");
           
            document.checkin();
           
             session.save();



          Thanks for your help,

                Andr

Outcomes