mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
MNT-17512 Revert debugging change to RecordsManagementAuditServiceImpl.java.
This commit is contained in:
@@ -110,7 +110,7 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
|
|||||||
private static Log logger = LogFactory.getLog(RecordsManagementAuditServiceImpl.class);
|
private static Log logger = LogFactory.getLog(RecordsManagementAuditServiceImpl.class);
|
||||||
|
|
||||||
private static final String ACCESS_AUDIT_CAPABILITY = "AccessAudit";
|
private static final String ACCESS_AUDIT_CAPABILITY = "AccessAudit";
|
||||||
|
|
||||||
private static final String KEY_RM_AUDIT_NODE_RECORDS = "RMAUditNodeRecords";
|
private static final String KEY_RM_AUDIT_NODE_RECORDS = "RMAUditNodeRecords";
|
||||||
|
|
||||||
protected static final String RM_AUDIT_EVENT_LOGIN_SUCCESS = "Login.Success";
|
protected static final String RM_AUDIT_EVENT_LOGIN_SUCCESS = "Login.Success";
|
||||||
@@ -284,7 +284,7 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
|
|||||||
{
|
{
|
||||||
this.namespaceService = namespaceService;
|
this.namespaceService = namespaceService;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param capabilityService capability service
|
* @param capabilityService capability service
|
||||||
*/
|
*/
|
||||||
@@ -292,9 +292,9 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
|
|||||||
{
|
{
|
||||||
this.capabilityService = capabilityService;
|
this.capabilityService = capabilityService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ignoredAuditProperties
|
* @param ignoredAuditProperties
|
||||||
@@ -506,8 +506,6 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
|
|||||||
@Override
|
@Override
|
||||||
public void auditEvent(NodeRef nodeRef, String eventName, Map<QName, Serializable> before, Map<QName, Serializable> after, boolean immediate, boolean removeIfNoPropertyChanged)
|
public void auditEvent(NodeRef nodeRef, String eventName, Map<QName, Serializable> before, Map<QName, Serializable> after, boolean immediate, boolean removeIfNoPropertyChanged)
|
||||||
{
|
{
|
||||||
logger.error("DEBUGGING: " + String.valueOf(before));
|
|
||||||
logger.error("ALSO : " + String.valueOf(after));
|
|
||||||
// deal with immediate auditing if required
|
// deal with immediate auditing if required
|
||||||
if (immediate)
|
if (immediate)
|
||||||
{
|
{
|
||||||
@@ -931,7 +929,7 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
|
|||||||
// Skip it
|
// Skip it
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(nodeRef != null && nodeService.exists(nodeRef) &&
|
if(nodeRef != null && nodeService.exists(nodeRef) &&
|
||||||
!AccessStatus.ALLOWED.equals(
|
!AccessStatus.ALLOWED.equals(
|
||||||
capabilityService.getCapabilityAccessState(nodeRef, ACCESS_AUDIT_CAPABILITY)))
|
capabilityService.getCapabilityAccessState(nodeRef, ACCESS_AUDIT_CAPABILITY)))
|
||||||
|
Reference in New Issue
Block a user