Bogdan Stefanescu wrote:

> I've implemented a document adapter service.

[...]

> -----------------------------------------------
> 
> DocumentModel doc = .. get a document model ..
> ...
> AnnotatedDocument annoDoc =
> doc.getAdapter(org.nuxeo.ecm.annotation.AnnotatedDocument.class);
> annoDoc.setAdapter("myannotation", value);

I guess this is a typo and should be :

annoDoc.setAnnotation("myannotation", value);

[...]

Alright, just take some time to take a look at this. It rocks. I'm gonna
use this for the workflows to factor out the interface at client level
while refactoring the web client. This is pretty close to the Zope3
adapter service, actually.

Next step will be to have a generic adapter service DocumentModel
independent (as in Zope3) and we could use this base framework as the
underlying framework for the DocumentModel adapter service implementation.

Thanks :)

        J.

-- 
Julien Anguenot | Nuxeo R&D (Paris, France)
Open Source ECM - http://www.nuxeo.com
Nuxeo 5 : http://www.nuxeo.org
Mobile: +33 (0) 6 72 57 57 66

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to