From d85ded1a8eabb46f97ebe25812cf85ff55b22235 Mon Sep 17 00:00:00 2001 From: Roxana Lucanu-Ghetu Date: Mon, 30 Apr 2018 21:00:40 +0300 Subject: [PATCH] RM-5234 Minor refactor. --- .../audit/RecordsManagementAuditServiceImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/audit/RecordsManagementAuditServiceImpl.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/audit/RecordsManagementAuditServiceImpl.java index 6b46eb4e9c..35e7756bf5 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/audit/RecordsManagementAuditServiceImpl.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/audit/RecordsManagementAuditServiceImpl.java @@ -1107,12 +1107,11 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean } else if (params.getEvent() != null) { - if (params.getEvent().equalsIgnoreCase("Login.Success")) + if (params.getEvent().equalsIgnoreCase(RM_AUDIT_EVENT_LOGIN_SUCCESS)) { auditQueryParams.addSearchKey(RM_AUDIT_DATA_LOGIN_FULLNAME, null); } - else - if (params.getEvent().equalsIgnoreCase("Login.Failure")) + else if (params.getEvent().equalsIgnoreCase(RM_AUDIT_EVENT_LOGIN_FAILURE)) { auditQueryParams.addSearchKey(RM_AUDIT_DATA_LOGIN_ERROR, null); }