public class AuditExtensionFactory extends Object implements ContextExtensionFactory
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
static List<LogEntry> |
testAuditEntries |
Constructor and Description |
---|
AuditExtensionFactory() |
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.
|
protected List<LogEntry> |
preprocessAuditEntries(List<LogEntry> auditEntries,
CoreSession session,
String lang) |
public static List<LogEntry> testAuditEntries
protected static final org.apache.commons.logging.Log log
public AuditExtensionFactory()
public Object getExtension(DocumentModel currentDocument, DocumentWrapper wrapper, Map<String,Object> ctx)
ContextExtensionFactory
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
getExtension
in interface ContextExtensionFactory
protected List<LogEntry> preprocessAuditEntries(List<LogEntry> auditEntries, CoreSession session, String lang) throws MissingResourceException
MissingResourceException
Copyright © 2015 Nuxeo SA. All rights reserved.