public abstract static class AbstractUserAuditEvent.AbstractUserAuditEventBuilder<T extends AbstractUserAuditEvent,TBuilder extends AbstractUserAuditEvent.AbstractUserAuditEventBuilder<T,TBuilder>> extends AbstractAuditEvent.AbstractAuditEventBuilder<T,TBuilder>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractUserAuditEventBuilder(Class<? extends TBuilder> builderClass) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildAuditMessage(StringBuilder builder)
Appends to audit event details the user name and remote ip of the host
where user actions originates from.
|
TBuilder |
withProxyUserName(String proxyUserName)
Sets the proxy user name.
|
TBuilder |
withRemoteIp(String ip)
Sets the remote ip where the user action originated from.
|
TBuilder |
withUserName(String userName)
Sets the user name of the user that initiated the audited action.
|
build, newAuditEvent, self, withTimestampprotected void buildAuditMessage(StringBuilder builder)
buildAuditMessage in class AbstractAuditEvent.AbstractAuditEventBuilder<T extends AbstractUserAuditEvent,TBuilder extends AbstractUserAuditEvent.AbstractUserAuditEventBuilder<T,TBuilder>>builder - builder for the audit message details.public TBuilder withUserName(String userName)
userName - public TBuilder withProxyUserName(String proxyUserName)
proxyUserName - Copyright © 2022 Apache Software Foundation. All rights reserved.