03-24-2006 05:35 AM
03-24-2006 06:36 AM
03-27-2006 02:41 AM
03-27-2006 02:53 AM
03-27-2006 02:59 AM
<?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="xp:xpModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>XP 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="xp.dam.model" prefix="xp"/>
</namespaces>
<types>
<!– Definition of new Content Type: Image Type –>
<type name="xp:asset">
<title>Asset</title>
<parent>cm:dictionaryModel</parent>
<properties>
<property name="xp:assettype">
<type>d:text</type>
</property>
<property name="xp:thumbnail">
<type>d:text</type>
</property>
<property name="xp:delete">
<type>d:text</type>
</property>
<property name="xp:testing">
<type>d:text</type>
</property>
</properties>
</type>
</types>
<aspects>
<!– Definition of new Content Aspect: Image Classification –>
<aspect name="xp:imageClassification">
<title>Image Classfication</title>
<properties>
<property name="xp:width">
<type>d:int</type>
</property>
<property name="xp:height">
<type>d:int</type>
</property>
<property name="xp:resolution">
<type>d:int</type>
</property>
</properties>
</aspect>
</aspects>
</model>
04-05-2006 01:33 AM
04-05-2006 04:58 AM
04-05-2006 10:09 AM
We do have the beginnings of support for dynamically registering content models. There's a content type called cm:dictionaryModel derived from cm:content. Creating a node of type cm:dictionaryModel (and placing the content model xml in the content property) will register the model automatically with the data dictionary when it is saved or updated. There's a cm:modelActive property too allowing the auto-registration to be switched.
There's no support for ensuring that model changes are compatible or break existing data, so you'd need to control that yourself.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.