mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-947 Remove unwanted properties from being audited for the 'Updated Metadata' event in RM
- Just tidied things up a little. Added the following override so that by default it is audited immediately and the audit entry isn't removed. This means a lot of the calling clients don't need to understand or define the last two properties. @Override public void auditEvent(NodeRef nodeRef, String eventName, Map<QName, Serializable> before, Map<QName, Serializable> after) { auditEvent(nodeRef, eventName, before, after, true, false); } git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@55256 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -75,7 +75,7 @@ public interface RecordsManagementAuditService extends RecordsManagementAuditSer
|
||||
String eventName);
|
||||
|
||||
/**
|
||||
* Audits an event, assumes that the event should not be audited immediately and not be removed if no property is changed.
|
||||
* Audits an event, assumes that the event should be audited immediately and not be removed if no property is changed.
|
||||
*
|
||||
* @param nodeRef node reference
|
||||
* @param eventName event name
|
||||
|
@@ -359,7 +359,7 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
|
||||
logger.info("Started Records Management auditing");
|
||||
}
|
||||
|
||||
auditEvent(filePlan, AUDIT_EVENT_START, null, null, true, false);
|
||||
auditEvent(filePlan, AUDIT_EVENT_START, null, null);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -370,7 +370,7 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
|
||||
ParameterCheck.mandatory("filePlan", filePlan);
|
||||
// TODO use file plan to scope audit log
|
||||
|
||||
auditEvent(filePlan, AUDIT_EVENT_STOP, null, null, true, false);
|
||||
auditEvent(filePlan, AUDIT_EVENT_STOP, null, null);
|
||||
|
||||
auditService.disableAudit(
|
||||
RM_AUDIT_APPLICATION_NAME,
|
||||
@@ -397,7 +397,7 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
|
||||
logger.debug("Records Management audit log has been cleared");
|
||||
}
|
||||
|
||||
auditEvent(filePlan, AUDIT_EVENT_CLEAR, null, null, true, false);
|
||||
auditEvent(filePlan, AUDIT_EVENT_CLEAR, null, null);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -440,7 +440,7 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
|
||||
@Override
|
||||
public void auditEvent(NodeRef nodeRef, String eventName, Map<QName, Serializable> before, Map<QName, Serializable> after)
|
||||
{
|
||||
auditEvent(nodeRef, eventName, before, after, false, false);
|
||||
auditEvent(nodeRef, eventName, before, after, true, false);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -984,7 +984,7 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
|
||||
// grab the default file plan, but don't fail if it can't be found!
|
||||
nodeRef = filePlanService.getFilePlanBySiteId(FilePlanService.DEFAULT_RM_SITE_ID);
|
||||
}
|
||||
auditEvent(nodeRef, AUDIT_EVENT_VIEW, null, null, true, false);
|
||||
auditEvent(nodeRef, AUDIT_EVENT_VIEW, null, null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user