Implementation and unit tests for RM-2481, RM-2482, RM-2483 and RM-2489.

This checkin adds behaviours for ensuring that classification aspect/properties are correclty copied between nodes and their renditions on the creation of new renditions, on the classification or reclassification of nodes with existing renditions.

To do this I needed what should be, in my opinion, a common Alfresco utility method - the ability to copy an aspect from one node to another (aspect meaning property group i.e. no assocs).
I've created that method and put it in CoreServicesExtras. It should really be moved to core.

+ review RM


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110069 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Neil McErlean
2015-08-13 16:29:38 +00:00
parent 5e4ecae6e2
commit 3fceea8655
8 changed files with 519 additions and 4 deletions

View File

@@ -241,6 +241,15 @@
class="org.alfresco.module.org_alfresco_module_rm.model.clf.aspect.ClassifiedAspect"
parent="rm.baseBehaviour">
<property name="classificationSchemeService" ref="ClassificationSchemeService" />
<property name="renditionService" ref="RenditionService" />
<property name="coreServicesExtras" ref="rm.coreServicesExtras" />
</bean>
<bean id="clf.classifiedRenditions"
class="org.alfresco.module.org_alfresco_module_rm.model.clf.ClassifiedRenditions"
parent="rm.baseBehaviour">
<property name="contentClassificationService" ref="ContentClassificationService" />
<property name="renditionService" ref="RenditionService" />
<property name="coreServicesExtras" ref="rm.coreServicesExtras" />
</bean>
</beans>

View File

@@ -11,6 +11,12 @@
<!-- Authentication Helper -->
<bean name="rm.authenticationUtil" class="org.alfresco.module.org_alfresco_module_rm.util.AuthenticationUtil"/>
<!-- Utility methods that enhance core Alfresco services -->
<bean name="rm.coreServicesExtras" class="org.alfresco.module.org_alfresco_module_rm.util.CoreServicesExtras">
<property name="dictionaryService" ref="dictionaryService" />
<property name="nodeService" ref="NodeService" />
</bean>
<!-- Transactional Resouce Helper -->
<bean name="rm.transactionalResourceHelper" class="org.alfresco.module.org_alfresco_module_rm.util.TransactionalResourceHelper" />