mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Re-enable the registration of the "Custom Model" by default - as was the case in v1.1.2. The custom model can be still be overridden using the extension mechanism of v1.2.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2487 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -427,6 +427,14 @@
|
|||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
|
||||||
|
<property name="models">
|
||||||
|
<list>
|
||||||
|
<value>alfresco/model/defaultCustomModel.xml</value>
|
||||||
|
</list>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
<bean id="dictionaryRepositoryBootstrap" class="org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap" init-method="bootstrap">
|
<bean id="dictionaryRepositoryBootstrap" class="org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap" init-method="bootstrap">
|
||||||
<property name="dictionaryDAO">
|
<property name="dictionaryDAO">
|
||||||
<ref local="dictionaryDAO"/>
|
<ref local="dictionaryDAO"/>
|
||||||
|
28
config/alfresco/model/defaultCustomModel.xml
Normal file
28
config/alfresco/model/defaultCustomModel.xml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<!-- Custom Model -->
|
||||||
|
|
||||||
|
<!-- Note: This model is pre-configured to load at startup of the Repository. So, all custom -->
|
||||||
|
<!-- types and aspects added here will automatically be registered -->
|
||||||
|
|
||||||
|
<model name="custom:customModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
||||||
|
|
||||||
|
<!-- Optional meta-data about the model -->
|
||||||
|
<description>Custom Model</description>
|
||||||
|
<author></author>
|
||||||
|
<version>1.0</version>
|
||||||
|
|
||||||
|
<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"/>
|
||||||
|
</imports>
|
||||||
|
|
||||||
|
<!-- Introduction of new namespaces defined by this model -->
|
||||||
|
<!-- NOTE: The following namespace custom.model should be changed to reflect your own namespace -->
|
||||||
|
<namespaces>
|
||||||
|
<namespace uri="custom.model" prefix="custom"/>
|
||||||
|
</namespaces>
|
||||||
|
|
||||||
|
</model>
|
Reference in New Issue
Block a user