Interface AuditEventBuilder
public interface AuditEventBuilder
An interface defining a builder for
AuditEvent
objects.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the event.Corresponds toparameter(AuditEventParameter)
.parameter
(AuditEventParameter parameter) Adds an audit parameter.Assigns the event principal.
-
Method Details
-
build
AuditEvent build()Builds the event.- Returns:
- the audit event
-
principal
Assigns the event principal.- Parameters:
principal
- the event principal- Returns:
- the builder
-
parameter
Adds an audit parameter.If an event parameter for this parameter name already exists it will be overwritten.
- Parameters:
parameter
- the parameter to add- Returns:
- the builder
-
parameter
Corresponds toparameter(AuditEventParameter)
.- Parameters:
name
- the parameter name (must not be null)value
- the parameter value (may be null)- Returns:
- the builder
-