Thanks Florent, but after the invocation of doc.save() the entity is not 
updated. Indeed APPObject#create says: "get the response to update the content 
of the posted document".
With the response I can retrieve the posted document on the server, but I don't 
know the best way to update the current entry.(link and properties)

Emanuele



> All the currently working API gets tested from BasicTestCase.
> Some test for newDocument for instance:
>
>          Folder root = conn.getRootFolder();
>          Document doc = root.newDocument("doc");
>          doc.setName("mydoc");
>          doc.setValue("title", "mytitle");
>          doc.save();
>
> Florent
>
>
> On 20 Jul 2009, at 17:01, Emanuele Lombardi wrote:
>
> > Hi, I'm in trouble with AtomPub document creation. Can you describe  
> > me the basic steps for creating a document?
> > This is my code
> > {code}
> > doc = connection.newDocument(entry.getTypeId(),parent);
> > doc.setName("Prova1");
> > doc.save();
> > {code}
> > is it wrong?
> >
> > Thanks
> > Emanuele
> >
>
> --
> Florent Guillaume, Head of R&D, Nuxeo
> Open Source, Java EE based, Enterprise Content Management (ECM)
> http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87
>
>

Emanuele Lombardi


Reply via email to