02-21-2011 05:50 AM
02-21-2011 09:25 AM
<?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>
02-21-2011 09:30 AM
02-21-2011 09:44 AM
02-21-2011 09:52 AM
02-21-2011 09:56 AM
02-21-2011 09:57 AM
02-21-2011 10:05 AM
02-21-2011 10:11 AM
02-21-2011 10:16 AM
02-21-2011 10:19 AM
<?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.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.