RM-1194: As a records manager I want to create a 'standard' RM site that only displays records meta-data types relevant to standard RM practices, so that I don't get confused by unwanted DoD records meta-data types.

* record metadata aspects are now configured via spring and includes which file plan type they are relevant for
 * added 'unit test' structure .. for 'real' unit tests, ie anything that doesn't load the application context
 * included Mockito, new source location and unit test suite into POM
 * added unit and functional tests for feature (server)
 * refactored accordingly (webscripts, UI, etc)
 * visual test of UI .. automation tests to follow



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@63013 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2014-02-21 05:40:26 +00:00
parent d617a5b7e2
commit f69cd3961e
31 changed files with 906 additions and 97 deletions

View File

@@ -17,6 +17,19 @@
</property>
</bean>
<!-- Bootstrap DoD record metadata aspects -->
<bean id="dod.recordMetadataAspectBootstrap" parent="recordMetadataAspectBootstrap">
<property name="recordMetadataAspects">
<map>
<entry key="dod:dod5015record" value="dod:filePlan" />
<entry key="dod:scannedRecord" value="dod:filePlan" />
<entry key="dod:pdfRecord" value="dod:filePlan" />
<entry key="dod:digitalPhotographRecord" value="dod:filePlan" />
<entry key="dod:webRecord" value="dod:filePlan" />
</map>
</property>
</bean>
<!-- Bootstap the message property files -->
<bean id="org_alfresco_module_rm_resourceBundles.dod5015" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">

View File

@@ -74,11 +74,8 @@
<!-- DOD5015 Record Properties -->
<!-- @since 2.2 -->
<aspect name="dod:dod5015record">
<title>DOD5015 Record</title>
<parent>rma:recordMetaData</parent>
<aspect name="dod:dod5015record">
<title>DOD5015 Record</title>
<properties>
<property name="dod:publicationDate">
@@ -168,7 +165,6 @@
<aspect name="dod:scannedRecord">
<title>Scanned Record</title>
<parent>rma:recordMetaData</parent>
<properties>
<property name="dod:scannedFormat">
<title>Image Format</title>
@@ -208,14 +204,10 @@
<mandatory>false</mandatory>
</property>
</properties>
<mandatory-aspects>
<aspect>rma:filePlanComponent</aspect>
</mandatory-aspects>
</aspect>
<aspect name="dod:pdfRecord">
<title>PDF Record</title>
<parent>rma:recordMetaData</parent>
<properties>
<property name="dod:producingApplication">
<title>Producing Application</title>
@@ -263,14 +255,10 @@
</index>
</property>
</properties>
<mandatory-aspects>
<aspect>rma:filePlanComponent</aspect>
</mandatory-aspects>
</aspect>
<aspect name="dod:digitalPhotographRecord">
<title>Digital Photograph Record</title>
<parent>rma:recordMetaData</parent>
<properties>
<property name="dod:caption">
<title>Caption</title>
@@ -358,14 +346,10 @@
</index>
</property>
</properties>
<mandatory-aspects>
<aspect>rma:filePlanComponent</aspect>
</mandatory-aspects>
</aspect>
<aspect name="dod:webRecord">
<title>Web Record</title>
<parent>rma:recordMetaData</parent>
<properties>
<property name="dod:webFileName">
<title>Web File Name</title>
@@ -442,10 +426,7 @@
<tokenised>false</tokenised>
</index>
</property>
</properties>
<mandatory-aspects>
<aspect>rma:filePlanComponent</aspect>
</mandatory-aspects>
</properties>
</aspect>
</aspects>

View File

@@ -751,7 +751,9 @@
</aspect>
<!-- Marker aspect used to indicate an aspect is used for record meta-data -->
<!-- Marker aspect used to indicate an aspect is used for record meta-data -->
<!-- @deprecated since 2.2, record metadata aspects are configured via spring -->
<!-- using a bootstrap bean -->
<aspect name="rma:recordMetaData">
</aspect>

View File

@@ -34,6 +34,7 @@
<bean id="rm-ac-record-types" class="org.alfresco.module.org_alfresco_module_rm.action.constraint.RecordTypeParameterConstraint" parent="action-constraint">
<property name="recordService" ref="RecordService"/>
<property name="dictionaryService" ref="DictionaryService"/>
<property name="filePlanService" ref="FilePlanService" />
</bean>
<bean id="rm-ac-manual-events" class="org.alfresco.module.org_alfresco_module_rm.action.constraint.ManualEventParameterConstraint" parent="action-constraint">

View File

@@ -1177,6 +1177,11 @@
<property name="filePlanRoleService" ref="FilePlanRoleService" />
<property name="permissionService" ref="permissionService" />
</bean>
<bean id="recordMetadataAspectBootstrap" class="org.alfresco.module.org_alfresco_module_rm.record.RecordMetadataBootstrap" init-method="init" abstract="true">
<property name="recordService" ref="recordService"/>
<property name="namespaceService" ref="namespaceService"/>
</bean>
<bean id="RecordService" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
@@ -1222,7 +1227,9 @@
<property name="objectDefinitionSource">
<value>
<![CDATA[
org.alfresco.module.org_alfresco_module_rm.record.RecordService.registerRecordMetadataAspect=RM_ALLOW
org.alfresco.module.org_alfresco_module_rm.record.RecordService.getRecordMetaDataAspects=RM_ALLOW
org.alfresco.module.org_alfresco_module_rm.record.RecordService.getRecordMetadataAspects=RM.Read.0
org.alfresco.module.org_alfresco_module_rm.record.RecordService.isRecord=RM_ALLOW
org.alfresco.module.org_alfresco_module_rm.record.RecordService.isDeclared=RM.Read.0
org.alfresco.module.org_alfresco_module_rm.record.RecordService.isFiled=RM.Read.0

View File

@@ -168,6 +168,7 @@
<property name="recordService" ref="RecordService" />
<property name="dictionaryService" ref="DictionaryService" />
<property name="namespaceService" ref="NamespaceService" />
<property name="filePlanService" ref="FilePlanService" />
</bean>
<bean id="webscript.org.alfresco.rma.rmauditlogstatus.get"
@@ -474,6 +475,7 @@
<property name="dictionaryService" ref="DictionaryService" />
<property name="adminService" ref="RecordsManagementAdminService" />
<property name="recordService" ref="RecordService" />
<property name="filePlanService" ref="FilePlanService" />
</bean>
<bean id="webscript.org.alfresco.slingshot.forms.metadata.get"