Skip to content

AuditRendererService

service

Service for managing audit-entry renderers. Renderers are components that render the inner content of an audit entry in the timeline view of ObjectAuditComponent.

Register a renderer for an action to override the default rendering of all audit entries with that action, or for an action + subaction pair to override a specific variant. Lookup prefers the subaction-specific renderer over the action-only renderer; if neither is registered, DefaultAuditRendererComponent is used.

Resolve the renderer for an audit entry. Tries (action, subaction) first, falls back to (action), then to DefaultAuditRendererComponent.

getAuditRenderer(action: number, subaction?: number): Type<AbstractAuditRendererComponent>
NameTypeDescription
actionnumber
subactionnumber

Register a renderer for a specific audit action. Pass subaction to scope the renderer to a particular (action, subaction) pair.

registerAuditRenderer(cmp: Type<AbstractAuditRendererComponent>, action: number, subaction?: number): void
NameTypeDescription
cmpType<AbstractAuditRendererComponent>
actionnumber
subactionnumber