diff --git a/source/java/org/alfresco/repo/audit/AuditComponent.java b/source/java/org/alfresco/repo/audit/AuditComponent.java index 886616159d..37bf3f31bb 100644 --- a/source/java/org/alfresco/repo/audit/AuditComponent.java +++ b/source/java/org/alfresco/repo/audit/AuditComponent.java @@ -96,7 +96,7 @@ public interface AuditComponent void deleteAuditEntries(String applicationName, Long fromTime, Long toTime); /** - * Check if an audit path is disabled. The path will be disabled if it or any higher + * Check if an audit path is enabled. The path will be disabled if it or any higher * path has been explicitly disabled. Any disabled path will not be processed when * data is audited. * @@ -106,7 +106,7 @@ public interface AuditComponent * * @since 3.2 */ - boolean isAuditPathDisabled(String applicationName, String path); + boolean isAuditPathEnabled(String applicationName, String path); /** * Enable auditing (if it is not already enabled) for all paths that contain the given path. diff --git a/source/java/org/alfresco/repo/audit/AuditComponentImpl.java b/source/java/org/alfresco/repo/audit/AuditComponentImpl.java index 4fd1049dc6..e51bb8ee1d 100644 --- a/source/java/org/alfresco/repo/audit/AuditComponentImpl.java +++ b/source/java/org/alfresco/repo/audit/AuditComponentImpl.java @@ -841,7 +841,7 @@ public class AuditComponentImpl implements AuditComponent * {@inheritDoc} * @since 3.2 */ - public boolean isAuditPathDisabled(String applicationName, String path) + public boolean isAuditPathEnabled(String applicationName, String path) { ParameterCheck.mandatory("applicationName", applicationName); ParameterCheck.mandatory("path", path); @@ -879,12 +879,12 @@ public class AuditComponentImpl implements AuditComponent if (logger.isDebugEnabled()) { logger.debug( - "Audit disable check: \n" + + "Audit path enabled check: \n" + " Application: " + applicationName + "\n" + " Path: " + path + "\n" + " Disabling Path: " + disablingPath); } - return disablingPath != null; + return disablingPath == null; } /** diff --git a/source/java/org/alfresco/repo/audit/AuditServiceImpl.java b/source/java/org/alfresco/repo/audit/AuditServiceImpl.java index 5a53151731..901f56752a 100644 --- a/source/java/org/alfresco/repo/audit/AuditServiceImpl.java +++ b/source/java/org/alfresco/repo/audit/AuditServiceImpl.java @@ -135,7 +135,7 @@ public class AuditServiceImpl implements AuditService public boolean isAuditEnabled(String applicationName, String path) { // Get the root path for the application - return auditComponent.isAuditPathDisabled(applicationName, path); + return auditComponent.isAuditPathEnabled(applicationName, path); } /**