public class RBACLogger extends Object implements Serializable
| Constructor and Description |
|---|
RBACLogger() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(String userID,
String ip,
RBACLog.Action action,
String content)
Queues a log entry with severity level
RBACLog.Severity.ERROR. |
void |
info(String userID,
String ip,
RBACLog.Action action,
String content)
Queues a log entry with severity level
RBACLog.Severity.INFO. |
void |
queueLogEntry(String userID,
String ip,
RBACLog.Severity severity,
RBACLog.Action action,
String content)
Constructs an
RBACLog entity from the parameters. |
void |
warn(String userID,
String ip,
RBACLog.Action action,
String content)
Queues a log entry with severity level
RBACLog.Severity.WARNING. |
public void queueLogEntry(String userID, String ip, RBACLog.Severity severity, RBACLog.Action action, String content)
RBACLog entity from the parameters. The time stamp of the log entry is set to the current
time in milliseconds. If userID parameter is null, unknown is used instead. Once the
log entry fields are set, the entry is persisted by the entity manager.userID - of the user that initiated this logged action.ip - address of the user that initiated this logged action.severity - of the log entry.action - taken, that trigger logging.content - message containing additional information about the action.public void info(String userID, String ip, RBACLog.Action action, String content)
RBACLog.Severity.INFO. This is equivalent to
calling queueLogEntry(String, String, Severity.INFO, LogEntry.Action, String)userID - of the user that initiated this logged action.ip - address of the user that initiated this logged action.action - taken, that trigger logging.content - message containing additional information about the action.public void warn(String userID, String ip, RBACLog.Action action, String content)
RBACLog.Severity.WARNING. This is equivalent
to calling queueLogEntry(String, String, Severity.WARNING, LogEntry.Action, String)userID - of the user that initiated this logged action.ip - address of the user that initiated this logged action.action - taken, that trigger logging.content - message containing additional information about the action.public void error(String userID, String ip, RBACLog.Action action, String content)
RBACLog.Severity.ERROR. This is equivalent to
calling queueLogEntry(String, String, Severity.ERROR, LogEntry.Action, String)userID - of the user that initiated this logged action.ip - address of the user that initiated this logged action.action - taken, that trigger logging.content - message containing additional information about the action.Copyright © 2023 European Spallation Source. All rights reserved.