Hello,

Michael Santy a écrit :
Hello,

It is critical to my project to have the capability to add comments
describing a document modification.  After studying the Nuxeo source, I
didn't see a good way to accomplish this without modifying the code in
nuxeo-core.

You're right.

There are two ways that I can see to accomplish this.

1) Add a new overloaded method to the CoreSession interface that has a
comments parameter, e.g.:
public DocumentModel saveDocument(DocumentModel docModel, String
comments)

2) Pass the comments as context data and modify the implementations of
saveDocument to extract them from the context data and marshal to the
CoreEvent constructor.
docModel.putContextData(ScopeType.REQUEST, "action.comments",
comments);

+1.
I created a jira issue: http://jira.nuxeo.org/browse/NXP-2316.
Feel free to submit your patch there.

Any thoughts?  I would be willing to write the code to make either
change.

Thanks,

--
Anahide Tchertchian, Nuxeo
Mail: [EMAIL PROTECTED] - Tel: +33 (0)1 40 33 79 87
http://www.nuxeo.com - http://www.nuxeo.org
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to