The bootstrap approach to deploying a content model involves modifying SkyVault content repository XML configuration files to register the content model.
-
To define a Dictionary Bootstrap component, use the following Spring framework
XML:
<bean id="kbmodel.extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBoot strap"> <property name="models"> <list> <value>alfresco/extension/kbModel.xml</value> </list> </property> </bean>
-
Add the XML snippet to a SkyVault extension context XML file in the classpath,
following the usual SkyVault customization conventions.
Note: For a default installation of SkyVault, extension context XML files are placed into <installLocation>/tomcat/shared/classes/alfresco/extension.
The content models that SkyVault provides out of the box are all registered this way.
Using the bootstrap approach, changes to model definitions through the content-model XML file are only registered after restarting the content repository. As this can lead to long development and test cycles, use the bootstrap approach only once the model is baked. For this reason, there is an alternate dynamic approach to deploying a content model, allowing the registration and updates to content models without the need to restart the content repository to pick up the changes.