<view:view xmlns:view="http://www.alfresco.org/view/repository/1.0"
	        xmlns:cm="http://www.alfresco.org/model/content/1.0"
	        xmlns:app="http://www.alfresco.org/model/application/1.0"
                xmlns:emailserver="http://www.alfresco.org/model/emailserver/1.0">
	
	<!-- NOTE: all replaced properties referenced from repository.properties file must also be
	     mapped in the bootstrap-context.xml spacesBootstrap/configuration section -->
	<cm:folder view:childName="${spaces.company_home.childname}">
		<view:acl view:inherit="false">
			<view:ace view:access="ALLOWED">
				<view:authority>GROUP_EVERYONE</view:authority>
				<view:permission>Consumer</view:permission>
			</view:ace>
		</view:acl>
		<app:uifacets/>
		<cm:name>${spaces.company_home.name}</cm:name>
		<app:icon>space-icon-default</app:icon>
		<cm:title>${spaces.company_home.name}</cm:title>
		<cm:description>${spaces.company_home.description}</cm:description>
		<cm:contains>
			<cm:folder view:childName="${spaces.dictionary.childname}">
            <view:acl view:inherit="false">
               <view:ace view:access="ALLOWED">
                  <view:authority>GROUP_EVERYONE</view:authority>
                  <view:permission>Consumer</view:permission>
               </view:ace>
            </view:acl>
            <app:uifacets/>
            <cm:name>${spaces.dictionary.name}</cm:name>
            <app:icon>space-icon-default</app:icon>
            <cm:title>${spaces.dictionary.name}</cm:title>
            <cm:description>${spaces.dictionary.description}</cm:description>
            <cm:contains>
               <cm:folder view:childName="${spaces.templates.childname}">
                  <app:uifacets/>
                  <cm:name>${spaces.templates.name}</cm:name>
                  <app:icon>space-icon-default</app:icon>
                  <cm:title>${spaces.templates.name}</cm:title>
                  <cm:description>${spaces.templates.description}</cm:description>
               </cm:folder>
               <cm:folder
                  view:childName="${spaces.templates.content.childname}">
                  <app:uifacets/>
                  <cm:name>${spaces.templates.content.name}</cm:name>
                  <app:icon>space-icon-default</app:icon>
                  <cm:title>${spaces.templates.content.name}</cm:title>
                  <cm:description>${spaces.templates.content.description}</cm:description>
               </cm:folder>
               <cm:folder
                  view:childName="${spaces.templates.email.childname}">
                  <app:uifacets/>
                  <cm:name>${spaces.templates.email.name}</cm:name>
                  <app:icon>space-icon-default</app:icon>
                  <cm:title>${spaces.templates.email.name}</cm:title>
                  <cm:description>${spaces.templates.email.description}</cm:description>
                        <cm:contains>
                            <cm:folder
                                view:childName="${spaces.templates.email.invite.childname}">
                                <app:uifacets/>
                                <cm:name>${spaces.templates.email.invite.name}</cm:name>
                                <app:icon>space-icon-default</app:icon>
                                <cm:title>${spaces.templates.email.invite.name}</cm:title>
                                <cm:description>${spaces.templates.email.invite.description}</cm:description>
                                <cm:contains>
                                    <cm:content view:childName="cm:invite-email.ftl">
                                        <view:aspects>
                                            <cm:titled></cm:titled>
                                            <cm:author></cm:author>
                                            <app:inlineeditable></app:inlineeditable>
                                        </view:aspects>
                                        <view:properties>
                                            <app:editInline>true</app:editInline>
                                            <cm:description>${spaces.templates.email.generate_the_invite_email.description}</cm:description>
                                            <cm:content>contentUrl=classpath:alfresco/bootstrap/invite/invite-email.ftl|mimetype=text/plain|size=|encoding=UTF-8|locale=en_US_</cm:content>
                                            <cm:title>invite-email.ftl</cm:title>
                                            <cm:author></cm:author>
                                            <cm:name>invite-email.ftl</cm:name>
                                        </view:properties>
                                        <view:associations></view:associations>
                                    </cm:content>
                                </cm:contains>
                            </cm:folder>
                        </cm:contains>
               </cm:folder>
               <cm:folder
                  view:childName="${spaces.templates.rss.childname}">
                  <view:acl>
                     <view:ace view:access="ALLOWED">
                        <view:authority>${alfresco_user_store.guestusername}</view:authority>
                        <view:permission>Consumer</view:permission>
                     </view:ace>
                  </view:acl>
                  <app:uifacets/>
                  <cm:name>${spaces.templates.rss.name}</cm:name>
                  <app:icon>space-icon-default</app:icon>
                  <cm:title>${spaces.templates.rss.name}</cm:title>
                  <cm:description>${spaces.templates.rss.description}</cm:description>
               </cm:folder>
               <cm:folder
                  view:childName="${spaces.savedsearches.childname}">
                  <view:acl view:inherit="false">
                     <view:ace view:access="ALLOWED">
                        <view:authority>GROUP_EVERYONE</view:authority>
                        <view:permission>Contributor</view:permission>
                     </view:ace>
                  </view:acl>
                  <app:uifacets/>
                  <cm:name>${spaces.savedsearches.name}</cm:name>
                  <app:icon>space-icon-default</app:icon>
                  <cm:title>${spaces.savedsearches.name}</cm:title>
                  <cm:description>${spaces.savedsearches.description}</cm:description>
               </cm:folder>
               <cm:folder view:childName="${spaces.scripts.childname}">
                  <app:uifacets/>
                  <cm:name>${spaces.scripts.name}</cm:name>
                  <app:icon>space-icon-default</app:icon>
                  <cm:title>${spaces.scripts.name}</cm:title>
                  <cm:description>${spaces.scripts.description}</cm:description>
               </cm:folder>
            </cm:contains>
         </cm:folder>
         <cm:folder view:childName="${spaces.guest_home.childname}">
            <view:acl view:inherit="false">
               <view:ace view:access="ALLOWED">
                  <view:authority>${alfresco_user_store.guestusername}</view:authority>
                  <view:permission>Consumer</view:permission>
               </view:ace>
               <view:ace view:access="ALLOWED">
                  <view:authority>GROUP_EVERYONE</view:authority>
                  <view:permission>Consumer</view:permission>
               </view:ace>
            </view:acl>
            <app:uifacets/>
            <cm:name>${spaces.guest_home.name}</cm:name>
            <app:icon>space-icon-default</app:icon>
            <cm:title>${spaces.guest_home.name}</cm:title>
            <cm:description>${spaces.guest_home.description}</cm:description>
         </cm:folder>
         <cm:folder view:childName="${spaces.user_homes.childname}">
            <app:uifacets/>
            <cm:name>${spaces.user_homes.name}</cm:name>
            <app:icon>space-icon-default</app:icon>
            <cm:title>${spaces.user_homes.name}</cm:title>
            <cm:description>${spaces.user_homes.description}</cm:description>
         </cm:folder>
      </cm:contains>
   </cm:folder>
</view:view>