From 17e71d3ec1f52cc2e13590499dd70c5932885b20 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 20 Apr 2017 09:56:16 +0200 Subject: Added AdminServlet.audit(AuditEvent). A new audit() methods have been added to log AuditEvents in AdminServlet. Change-Id: I92a259363bdda553621491e46122365c7097946a --- .../cms/src/com/netscape/cms/servlet/admin/AdminServlet.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'base') diff --git a/base/server/cms/src/com/netscape/cms/servlet/admin/AdminServlet.java b/base/server/cms/src/com/netscape/cms/servlet/admin/AdminServlet.java index 089fcbe45..16a2e393b 100644 --- a/base/server/cms/src/com/netscape/cms/servlet/admin/AdminServlet.java +++ b/base/server/cms/src/com/netscape/cms/servlet/admin/AdminServlet.java @@ -1024,6 +1024,16 @@ public class AdminServlet extends HttpServlet { auditor.log(msg); } + protected void audit(AuditEvent event) { + + String template = event.getMessage(); + Object[] params = event.getParameters(); + + String message = CMS.getLogMessage(template, params); + + audit(message); + } + /** * Signed Audit Log Subject ID * -- cgit