Files
alfresco-community-repo/config/alfresco/model/wcmModel.xml
Ariel Backenroth c926f15241 - model changes
- adding freemarker expression for output path patterns
- enabling using the same rendering engine template with multiple mime types
- extracting rendering engine template from rendering engine to make moving to templateservice easier eventually

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4351 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-11-14 08:49:18 +00:00

188 lines
6.4 KiB
XML

<model name="wcm:wcmmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>WCM Specific Types</description>
<author>Alfresco</author>
<published>2006-10-06</published>
<version>1.0</version>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<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>
<namespaces>
<namespace uri="http://www.alfresco.org/model/wcmmodel/1.0" prefix="wcm"/>
</namespaces>
<types>
<!-- Consider this an abstract type for most purposes. -->
<type name="wcm:avmcontent">
<title>AVM Content</title>
<parent>cm:content</parent>
</type>
<type name="wcm:avmplaincontent">
<title>AVM Plain content</title>
<parent>wcm:avmcontent</parent>
</type>
<type name="wcm:avmlayeredcontent">
<title>AVM Layered Content</title>
<parent>cm:content</parent>
<properties>
<property name="wcm:avmfileindirection">
<title>File Layer Indirection</title>
<type>d:noderef</type>
<mandatory>true</mandatory>
</property>
</properties>
</type>
<!-- Consider this abstract for most purposes. -->
<type name="wcm:avmfolder">
<title>AVM Folder</title>
<parent>cm:folder</parent>
</type>
<type name="wcm:avmplainfolder">
<title>AVM Plain Folder</title>
<parent>wcm:avmfolder</parent>
</type>
<type name="wcm:avmlayeredfolder">
<title>AVM Layered Folder</title>
<parent>wcm:avmfolder</parent>
<properties>
<property name="wcm:avmdirindirection">
<title>Directory Layer Indirection</title>
<type>d:noderef</type>
<mandatory>true</mandatory>
</property>
</properties>
</type>
<type name="wcm:renditionproperties">
<title>Properties for renditions</title>
<parent>sys:base</parent>
<properties>
<property name="wcm:outputpathpatternforrendition">
<title>Type</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="wcm:mimetypeforrendition">
<title>Mimetype for generated assets</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
</type>
</types>
<aspects>
<!-- An XForms capture form aspect. -->
<aspect name="wcm:form">
<title>XForms Form</title>
<properties>
<property name="wcm:xmlschemarootelementname">
<title>Schema Root Element Name</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="wcm:xmlschema">
<title>Schema</title>
<type>d:noderef</type>
<mandatory>true</mandatory>
</property>
<property name="wcm:outputpathpatternforforminstancedata">
<title>Type</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
<associations>
<association name="wcm:renderingenginetemplates">
<title>Form Data Renderers</title>
<source>
<role>wcm:capture</role>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>wcm:renderingenginetemplate</class>
<role>wcm:presentation</role>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</aspect>
<!-- An XML to something else transformer. -->
<aspect name="wcm:renderingenginetemplate">
<title>A Rendering Engine</title>
<properties>
<property name="wcm:parentrendereringenginename">
<title>Type</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="wcm:formsource">
<title>Form Source</title>
<type>d:noderef</type>
<mandatory>true</mandatory>
</property>
</properties>
<associations>
<child-association name="wcm:renditionproperties">
<title>Rendition Properties</title>
<source>
<role>wcm:capture</role>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>wcm:renditionproperties</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</child-association>
</associations>
</aspect>
<aspect name="wcm:forminstancedata">
<title>XML file generated by a form</title>
<properties>
<property name="wcm:parentform">
<title>Form that generated this asset</title>
<type>d:noderef</type>
<mandatory>true</mandatory>
</property>
<property name="wcm:parentformname">
<title>Form that generated this asset</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
</aspect>
<aspect name="wcm:rendition">
<title>XML file generated by a form</title>
<properties>
<property name="wcm:parentrenderingenginetemplate">
<title>Form data renderer that generated this asset</title>
<type>d:noderef</type>
<mandatory>true</mandatory>
</property>
<property name="wcm:primaryforminstancedata">
<title>Primary XML Asset used to generate this asset</title>
<type>d:noderef</type>
<mandatory>true</mandatory>
</property>
</properties>
</aspect>
</aspects>
</model>