Package org.nuxeo.audit.service
Interface AuditRouter
- All Known Implementing Classes:
AuditComponent
public interface AuditRouter
- Since:
- 2025.16
-
Method Summary
Modifier and TypeMethodDescriptioncomputeLogEntries(Event event) Computes the log entries from the given event based on contributed audit routes.Returns the audit router introspection to get information about the registered routes and backends.voidrouteToBackends(List<LogEntry> logEntries) Routes the given log entries to the appropriate backends based on contributed live audit routes.voidrouteToBackends(List<LogEntry> logEntries, List<Route> routes) Routes the given log entries to the appropriate backends based on given audit routes.
-
Method Details
-
computeLogEntries
Computes the log entries from the given event based on contributed audit routes.- Parameters:
event- the event to compute log entries from- Returns:
- the log entries to route, it could be an empty list if the event doesn't match any route
-
routeToBackends
Routes the given log entries to the appropriate backends based on contributed live audit routes.- Parameters:
logEntries- the log entries to route
-
routeToBackends
Routes the given log entries to the appropriate backends based on given audit routes.Each given route will be evaluated and log entry routed if it matches.
- Parameters:
logEntries- the log entries to routeroutes- the routes to evaluate on log entries
-
getIntrospection
AuditRouterIntrospection getIntrospection()Returns the audit router introspection to get information about the registered routes and backends.- Returns:
- the audit router introspection
-