RM-947 Remove unwanted properties from being audited for the 'Updated Metadata' event in RM

- Specified a list of properties in Spring's configuration to be ignored by audit.
- If an audit entry ends up with no changes in properties then we discard the entire audit map altogether. Currently this applies only to 'Update RM Object' events as other events still require to be audited even if there are no property changes.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@55219 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Craig Tan
2013-09-11 09:46:33 +00:00
parent 4e3e0cb7e4
commit cf4c105fa1
5 changed files with 119 additions and 39 deletions

View File

@@ -1050,6 +1050,15 @@
<property name="recordsManagementService" ref="RecordsManagementService" />
<property name="recordsManagementActionService" ref="RecordsManagementActionService" />
<property name="filePlanService" ref="FilePlanService" />
<property name="namespaceService" ref="NamespaceService" />
<property name="ignoredAuditProperties">
<list>
<value>cm:lastThumbnailModification</value>
<value>cm:autoVersion</value>
<value>cm:autoVersionOnUpdateProps</value>
<value>cm:initialVersion</value>
</list>
</property>
</bean>
<bean id="RecordsManagementAuditService" class="org.springframework.aop.framework.ProxyFactoryBean">