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