Add stub classified content model

* model I18n added
 * added Java contanstants via interface for convenience
 * includes a couple of renames for consistency
 * relates to RM-1947

+review RM-18



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@101539 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2015-04-09 02:24:39 +00:00
parent bf91f5e1a1
commit 2cc8ad2843
6 changed files with 110 additions and 12 deletions

View File

@@ -3,6 +3,33 @@
<beans> <beans>
<!-- Classified content model bootstrap -->
<bean id="classifiedContentDictionaryBootstrap" parent="dictionaryModelBootstrap">
<property name="models">
<list>
<value>alfresco/module/org_alfresco_module_rm/model/classifiedContentModel.xml</value>
</list>
</property>
<property name="labels">
<list>
<value>alfresco/module/org_alfresco_module_rm/messages/classified-content-model</value>
</list>
</property>
</bean>
<!-- I18N bootstrap -->
<bean id="classifiedContentResourceBundles" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>alfresco.module.org_alfresco_module_rm.messages.classified-content</value>
</list>
</property>
</bean>
<!-- Classification service DAO -->
<bean id="classificationServiceDAO" class="org.alfresco.module.org_alfresco_module_rm.classification.ClassificationServiceDAO"> <bean id="classificationServiceDAO" class="org.alfresco.module.org_alfresco_module_rm.classification.ClassificationServiceDAO">
<property name="levelConfigLocation" value="${rm.classification.levelsFile}" /> <property name="levelConfigLocation" value="${rm.classification.levelsFile}" />
<property name="reasonConfigLocation" value="${rm.classification.reasonsFile}" /> <property name="reasonConfigLocation" value="${rm.classification.reasonsFile}" />
@@ -62,11 +89,4 @@
<constructor-arg ref="TransactionService"/> <constructor-arg ref="TransactionService"/>
</bean> </bean>
<bean id="rmClassificationResourceBundles" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>alfresco.module.org_alfresco_module_rm.messages.rm-classification</value>
</list>
</property>
</bean>
</beans> </beans>

View File

@@ -0,0 +1,2 @@
clf_classifiedcontent.description=Classified Content Model

View File

@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Definition of Classified Content Model -->
<model name="clf:classifiedcontent" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!-- Meta-data about the model -->
<description>Classified Content Model</description>
<author>Roy Wetherall</author>
<version>1.0</version>
<!-- Imports are required to allow references to definitions in other models -->
<imports>
<!-- Import Alfresco Dictionary Definitions -->
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<!-- Import Alfresco Content Domain Model Definitions -->
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
<!-- Import Alfresco Content Domain Model Definitions -->
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" />
</imports>
<!-- Classified Content Namespace -->
<namespaces>
<namespace uri="http://www.alfresco.org/model/classifiedcontent/1.0" prefix="clf"/>
</namespaces>
<!-- Model Constraints -->
<constraints>
</constraints>
<!-- Types -->
<types>
</types>
<!-- Aspects -->
<aspects>
</aspects>
</model>

View File

@@ -240,7 +240,7 @@
<!-- Import the RM webscript's --> <!-- Import the RM webscript's -->
<import resource="classpath:alfresco/module/org_alfresco_module_rm/rm-webscript-context.xml"/> <import resource="classpath:alfresco/module/org_alfresco_module_rm/rm-webscript-context.xml"/>
<!-- Import the Classified Records Services --> <!-- Import the Classified Content Services -->
<import resource="classpath:alfresco/module/org_alfresco_module_rm/rm-classified-records-context.xml"/> <import resource="classpath:alfresco/module/org_alfresco_module_rm/classified-content-context.xml"/>
</beans> </beans>

View File

@@ -0,0 +1,34 @@
/*
* Copyright (C) 2005-2015 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
package org.alfresco.module.org_alfresco_module_rm.classification.model;
/**
* Classified content model interface.
* <p>
* Helper containing reusable information about the classified content model.
*
* @author Roy Wetherall
* @since 3.0
*/
public interface ClassifiedContentModel
{
/** Namespace details */
String RM_URI = "http://www.alfresco.org/model/classifiedcontent/1.0";
String RM_PREFIX = "clf";
}