public interface

AuditEntryConverter

com.atlassian.bitbucket.audit.AuditEntryConverter<T>

Class Overview

Converts an Audited event into a standard audit format.

Implementations must have a nullary (no argument) constructor and are intended to be lightweight, stateless classes. Converters are instantiated for each event and discarded after the event has been converted.

Summary

Public Methods
@Nonnull AuditEntry convert(T event, AuditEntryBuilder builder)
Converts an Audited event into a standard audit format.

Public Methods

@Nonnull public AuditEntry convert (T event, AuditEntryBuilder builder)

Converts an Audited event into a standard audit format.

Parameters
event the original annotated event
builder an audit entry builder which has the source IP address set by the caller
Returns
  • the details of the original event in the standard audit format