04-09-2009 07:12 AM
<model name="sc:somecomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Someco Model</description>
<author>Optaros</author>
<version>1.0</version>
<imports>
<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 uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<namespaces>
<namespace uri="http://www.alfresco.org/model/content1/1.0" prefix="sc"/>
</namespaces>
<types>
<type name="sc:scobject">
<title>Object</title>
<parent>sys:base</parent>
</type>
<!– Enterprise-wide generic document type –>
<type name="sc:doc">
<title>Folder</title>
<parent>sc:scobject</parent>
<archive>true</archive>
<properties>
<property name="sc:description">
<type>d:text</type>
</property>
<property name="sc:title">
<type>d:text</type>
</property>
</properties>
<associations>
<child-association name="sc:contains">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>sys:base</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
<duplicate>false</duplicate>
</child-association>
</associations>
</type>
</types>
</model>
<alfresco-config>
<!– The config below shows how to incorporate the example model–>
<!– into the web client, for this to work you will need to –>
<!– rename example-model-context.xml.sample to example-model-context.xml –>
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="sc:doc" />
</content-types>
</config>
<config evaluator="node-type" condition="sc:doc">
<property-sheet>
<show-property name="mimetype" display-label-id="content_type"
component-generator="MimeTypeSelectorGenerator" />
<show-property name="size" display-label-id="size"
converter="org.alfresco.faces.ByteSizeConverter"
show-in-edit-mode="false" />
<show-property name="sc:description" />
<show-property name="sc:title" />
<show-child-association name="sc:contains" />
</property-sheet>
</config>
</alfresco-config>
04-09-2009 08:16 AM
04-13-2009 06:47 AM
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Registration of new models –>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/scModel.xml</value>
</list>
</property>
</bean>
</beans>
07-30-2009 05:49 PM
07-31-2009 01:35 AM
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.