Package org.nuxeo.audit.api
Interface Route
Represents a rule for routing audit
logEntries to a specific backend.
A Route is a Predicate that determines whether a given LogEntry should be routed to a
particular backend, identified by its name. Implementations can define custom logic in the Predicate.test(Object)
method to filter events.
- Since:
- 2025.16
-
Method Summary
Modifier and TypeMethodDescriptionstatic RouteallEventsTo(String backendName) Creates aRoutethat matches all events, and routes them to the given backend.Returns the name of the backend to which matchingLogEntryevents should be routed.getName()static RouteCreates aRoutethat matches events based on the providedpredicate, and routes them to the given backend.
-
Method Details
-
getName
String getName()- Returns:
- the route name
-
getBackendName
String getBackendName()Returns the name of the backend to which matchingLogEntryevents should be routed.- Returns:
- the backend name
-
allEventsTo
Creates aRoutethat matches all events, and routes them to the given backend.- Parameters:
backendName- the name of the backend- Returns:
- a
Routethat matches all events
-
of
Creates aRoutethat matches events based on the providedpredicate, and routes them to the given backend.- Parameters:
backendName- the name of the backendpredicate- the predicate to apply toLogEntryevents for matching- Returns:
- a
Routethat matches events based on the provided predicate
-