public interface ContextExtensionFactory
Modifier and Type | Method and Description |
---|---|
Object |
getExtension(DocumentModel currentDocument,
DocumentWrapper wrapper,
Map<String,Object> ctx)
Called before redering to let you add objects inside the rendering
context.
|
Object getExtension(DocumentModel currentDocument, DocumentWrapper wrapper, Map<String,Object> ctx)
If the method returns an object, it will be automatically pushed inside the context using the name defined in the contribution.
you can also directly push in the provided ctx map
currentDocument
- wrapper
- ctx
- Copyright © 2013 Nuxeo SA. All Rights Reserved.