<?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/model/scModel.xml</value>
</list>
</property>
</bean>
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<!–Definition of new Model –>
<model name="sc:somecomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!–Optional metadata about the model –>
<description>Someco Model</description>
<author>Moi</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" />
</imports>
<!–Introduction of new namespaces defined by this model –>
<namespaces>
<namespace uri="http://www.someco.com/model/content/1.0" prefix="sc" />
</namespaces>
<types>
<!–Enterprisewide generic document type –>
<type name="sc:doc">
<title>Someco Document</title>
<parent>cm:content</parent>
<associations>
<association name="sc:relatedDocuments">
<title>Related Documents</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>sc:doc</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
<mandatory-aspects>
<aspect>cm:generalclassifiable</aspect>
</mandatory-aspects>
</type>
<type name="sc:whitepaper">
<title>Someco Whitepaper</title>
<parent>sc:doc</parent>
</type>
</types>
<aspects>
<aspect name="sc:webable">
<title>Someco Webable</title>
<properties>
<property name="sc:published">
<type>d:date</type>
</property>
<property name="sc:isActive">
<type>d:boolean</type>
<default>false</default>
</property>
</properties>
</aspect>
<aspect name="sc:productRelated">
<title>Someco Product Metadata</title>
<properties>
<property name="sc:product">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="sc:version">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
</aspect>
</aspects>
</model>
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="sc:doc" />
<type name="sc:whitepaper" />
</content-types>
</config>
<!–add webable aspect properties to property sheet –>
<config evaluator="aspect-name" condition="sc:webable">
<property-sheet>
<show-property name="sc:published" display-label-id="published"/>
<show-property name="sc:isActive" display-label-id="isActive" read-only="true" />
<show-association name="sc:relatedDocuments" />
</property-sheet>
</config>
<config evaluator="aspect-name" condition="sc:productRelated">
<property-sheet>
<show-property name="sc:product" display-label-id="product"/>
<show-property name="sc:version" display-label-id="version" readonly="true" />
<show-association name="sc:relatedDocuments" />
</property-sheet>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<!–The list of aspects to show in the add/remove features action –>
<!–and the has-aspect condition –>
<aspects>
<aspect name="sc:webable"/>
<aspect name="sc:productRelated"/>
</aspects>
<!–The list of types shown in the issubtype condition –>
<subtypes>
<type name="sc:doc" />
<type name="sc:whitepaper" />
</subtypes>
<!–The list of content and/or folder types shown in the specialisetype action –>
<specialise-types>
<type name="sc:doc" />
<type name="sc:whitepaper" />
</specialise-types>
</config>
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="sc:doc" />
<type name="sc:whitepaper" />
</content-types>
<custom-properties>
<meta-data aspect="sc:webable" property="sc:published" display-label-id="published" />
<meta-data aspect="sc:webable" property="sc:isActive" display-label-id="isActive" />
<meta-data aspect="sc:productRelated" property="sc:product" display-label-id="product" />
<meta-data aspect="sc:productRelated" property="sc:version" display-label-id="version" />
</custom-properties>
</advanced-search>
</config>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<!– This file enables Alfresco WCM. It should be placed in shared/classes/extension –>
<beans>
<!–
Patch in the WCM folders for the Authoring Environment
Adds WCM Forms and WCM Projects
–>
<bean id="patch.wcmFolders" class="org.alfresco.repo.admin.patch.impl.WCMFoldersPatch" parent="basePatch" >
<property name="id"><value>patch.wcmFolders</value></property>
<property name="description"><value>patch.wcmFolders.description</value></property>
<property name="fixesFromSchema"><value>0</value></property>
<property name="fixesToSchema"><value>${version.schema}</value></property>
<property name="targetSchema"><value>10000</value></property>
<!– helper beans for execution –>
<property name="messageSource">
<ref bean="bootstrapSpacesMessageSource" />
</property>
<property name="importerBootstrap">
<ref bean="spacesBootstrap" />
</property>
</bean>
<!– Bootstrap the WCM Deployment Receiver Subsystem –>
<bean id="wcm_deployment_receiver"
class="org.alfresco.repo.management.subsystems.ChildApplicationContextFactory"
parent="abstractPropertyBackedBean">
<property name="autoStart">
<value>true</value>
</property>
</bean>
<!– Patch bean to add the "WCM Deployed" space to the company home folder –>
<bean id="patch.wcmDeployed" class="org.alfresco.repo.admin.patch.impl.GenericBootstrapPatch" parent="basePatch" >
<property name="id"><value>patch.wcmDeployed</value></property>
<property name="description"><value>patch.wcmDeployed.description</value></property>
<property name="fixesFromSchema"><value>0</value></property>
<property name="fixesToSchema"><value>${version.schema}</value></property>
<property name="targetSchema"><value>10000</value></property>
<!– bootstrap view –>
<property name="importerBootstrap">
<ref bean="spacesBootstrap" />
</property>
<property name="checkPath">
<value>/${spaces.company_home.childname}/${spaces.wcm_deployed.childname}</value>
</property>
<property name="bootstrapView">
<props>
<prop key="path">/${spaces.company_home.childname}</prop>
<prop key="location">alfresco/bootstrap/deployedSpace.xml</prop>
<prop key="messages">alfresco/messages/bootstrap-spaces</prop>
</props>
</property>
</bean>
</beans>
<?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/exampleModel.xml</value>
</list>
</property>
</bean>
</beans>
Respectivement pour le premier et le deuxième.
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.