<?xml version="1.0" encoding="UTF-8"?>

<!-- Definition of Site Model -->

<model name="st:siteModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <!-- Meta-data about the model -->   
   <description>Site Model</description>
   <author>Roy Wetherall</author>
   <version>1.0</version>

   <!-- Imports are required to allow references to definitions in other models -->   
   <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"/>
      <!-- Import Alfresco Content Domain Model Definitions -->
      <import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" />
   </imports>

   <!-- Sites Namespace -->
   <namespaces>
      <namespace uri="http://www.alfresco.org/model/site/1.0" prefix="st"/>
      <!-- if you want to extend the properties of a site then use this namespace to mark the custom properties -->
      <namespace uri="http://www.alfresco.org/model/sitecustomproperty/1.0" prefix="stcp"/>
   </namespaces>
   
   <types>
   
      <!-- Site Definition:                                                                 -->
      <!--    - The cm:name property is used to contain the 'short' name of the site        -->
      <!--    - The titled aspect is used to contain the title and description of the site  -->
      <!--    - Memberships are managed using the standard permissions mechanism            -->
      <type name="st:site">
         <title>Site</title>
         <parent>cm:folder</parent>         
         <properties>
            <property name="st:sitePreset">
            	<title>Site Preset</title>
            	<type>d:text</type>        
            </property>
            <property name="st:siteVisibility">
               <title>Site Visibility</title>
               <type>d:text</type>        
            </property>
         </properties>
         <mandatory-aspects>
            <aspect>cm:titled</aspect>
         </mandatory-aspects>
      </type>

	  <!-- Site Root Folder:                                                               -->
	  <!--    - all sites are stored beneath the site root folder                           -->
      <type name="st:sites">
         <title>Sites</title>
         <parent>cm:folder</parent>         
      </type>    
     
   </types>
   
   <aspects>
   
      <!-- Site Container Aspect -->
      <aspect name="st:siteContainer">
     	<title>Site Container</title> 	      
         <properties>
            <property name="st:componentId">
            	<title>Component Id</title>
            	<type>d:text</type>        
            </property>
         </properties>
  	   </aspect>
  	   
  	   <!-- Example Custom Site Properties Aspect -->
      <aspect name="st:customSiteProperties">
     	<title>Custom Site Properties</title> 	      
         <properties>
            <property name="stcp:additionalInformation">
            	<title>Additional Site Information</title>
            	<type>d:text</type>        
            </property>
         </properties>
  	   </aspect>
   
   </aspects>
   
</model>