public abstract class AbstractAuditListener extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AUDIT_I18N_PREFIX |
protected AuditManager |
auditManager |
protected AuditRecordEntityFactory |
entityFactory |
protected com.atlassian.confluence.impl.audit.listener.AuditListenerHelper |
helper |
Constructor and Description |
---|
AbstractAuditListener(AuditManager auditManager,
AuditHandlerService auditHandlerService,
AuditRecordEntityFactory entityFactory,
com.atlassian.confluence.impl.audit.listener.AuditListenerHelper helper) |
Modifier and Type | Method and Description |
---|---|
protected static ChangedValue |
createChangedValue(String key,
Object oldValue,
Object newValue) |
protected AuditHandlerService |
getAuditHandlerService() |
protected static String |
getDescriptionText(String summary) |
protected AuditRecord.Builder |
getRecordBuilderForCategory(String category) |
protected static String |
getSummaryText(String summary) |
protected void |
save(Supplier<com.atlassian.fugue.Option<AuditRecord>> recordSupplier)
Saves the auditRecord generated by recordSupplier if both the system is ready and capable of saving, and the
record itself is not an empty Option.
|
protected final AuditManager auditManager
protected final AuditRecordEntityFactory entityFactory
protected final com.atlassian.confluence.impl.audit.listener.AuditListenerHelper helper
public static final String AUDIT_I18N_PREFIX
public AbstractAuditListener(AuditManager auditManager, AuditHandlerService auditHandlerService, AuditRecordEntityFactory entityFactory, com.atlassian.confluence.impl.audit.listener.AuditListenerHelper helper)
protected static ChangedValue createChangedValue(String key, Object oldValue, Object newValue)
protected AuditHandlerService getAuditHandlerService()
protected AuditRecord.Builder getRecordBuilderForCategory(String category)
protected void save(Supplier<com.atlassian.fugue.Option<AuditRecord>> recordSupplier)
recordSupplier
- provides the record to save. Nothing will be persisted if it return Option.none().Copyright © 2003–2016 Atlassian. All rights reserved.