Class AuditExtensionFactory
- java.lang.Object
-
- org.nuxeo.template.context.extensions.AuditExtensionFactory
-
- All Implemented Interfaces:
ContextExtensionFactory
public class AuditExtensionFactory extends Object implements ContextExtensionFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected static Loglogstatic List<LogEntry>testAuditEntries
-
Constructor Summary
Constructors Constructor Description AuditExtensionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetExtension(DocumentModel currentDocument, DocumentWrapper wrapper, Map<String,Object> ctx)Called before redering to let you add objects inside the rendering context.protected List<LogEntry>preprocessAuditEntries(List<LogEntry> auditEntries, CoreSession session, String lang)
-
-
-
Method Detail
-
getExtension
public Object getExtension(DocumentModel currentDocument, DocumentWrapper wrapper, Map<String,Object> ctx)
Description copied from interface:ContextExtensionFactoryCalled before redering to let you add objects inside the rendering context.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
- Specified by:
getExtensionin interfaceContextExtensionFactory
-
preprocessAuditEntries
protected List<LogEntry> preprocessAuditEntries(List<LogEntry> auditEntries, CoreSession session, String lang) throws MissingResourceException
- Throws:
MissingResourceException
-
-