<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>

   </types>
   
   <aspects>
       <!-- Captures the node that a node was reverted from. -->
       <aspect name="wcm:reverted">
           <title>Contains a reference to the node that this node was reverted from.</title>
           <properties>
               <property name="wcm:revertedid">
                   <title>The id of the node this was reverted from.</title>
                   <type>d:long</type>
                   <mandatory>true</mandatory>
               </property>
           </properties>
       </aspect>
   </aspects>
   
</model>
