Hi,
I'm working on versioning services, but I have a problem :The Updating of
CmisObject's properties.
My procedure:
First I set the property value by CMISObject#setValue method and last I call
the save method. The save method if is an update require a server method not
yet implemented and I try to implement it (the method is
"org.apache.chemistry.atompub.server.CMISObjectsCollection.putEntry(ObjectEntry,
String, Date, List<Person>, String, Content, RequestContext)") But my
implementation doesn't work. If I'm not able to save the modified properties on
the repository I can't test the versioning services.
Can you help me? I attach my code.
Thanks
Emanuele
public void putEntry(ObjectEntry object, String title, Date updated,
List<Person> authors, String summary, Content content,
RequestContext request) throws ResponseContextException {
Entry entry = null;
try {
entry = getEntryFromRequest(request);
} catch (ResponseContextException e) {
e.printStackTrace();
}
entry.setTitle(title);
entry.setEdited(updated);
for (Person a : authors) {
entry.addAuthor(a);
}
entry.setContent(content);
entry.setSummary(summary);
String link = addEntryDetails(request, entry, null, object);
buildCreateEntryResponse(link,entry);
}