Search in sources :

Example 1 with AuditEvent

use of com.google.gerrit.audit.AuditEvent in project gerrit by GerritCodeReview.

the class HttpLogoutServlet method doGet.

@Override
protected void doGet(final HttpServletRequest req, final HttpServletResponse rsp) throws IOException {
    final String sid = webSession.get().getSessionId();
    final CurrentUser currentUser = webSession.get().getUser();
    final String what = "sign out";
    final long when = TimeUtil.nowMs();
    try {
        doLogout(req, rsp);
    } finally {
        audit.dispatch(new AuditEvent(sid, currentUser, what, when, null, null));
    }
}
Also used : CurrentUser(com.google.gerrit.server.CurrentUser) AuditEvent(com.google.gerrit.audit.AuditEvent)

Aggregations

AuditEvent (com.google.gerrit.audit.AuditEvent)1 CurrentUser (com.google.gerrit.server.CurrentUser)1