As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> <beans> <!– ici on enregistre notre modèle avec les bundles des labels –> <bean id="productContent.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap"> <property name="models"> <list> <value>com/koossery/alfresco/tuto/model/productModel.xml</value> </list> </property> <property name="labels"> <list> <value>com/koossery/alfresco/tuto/model/product-model</value> </list> </property> </bean> <bean id="resourceBundlesWebApp" class="org.alfresco.web.app.ResourceBundleBootstrap"> <property name="resourceBundles"> <list> <value>alfresco.messages.customcontent-webclient</value> </list> </property> </bean> </beans>
<alfresco-config> <config> <actions> <!– action :créer une fiche produit –> <action id="create_product"> <permissions> <permission allow="true">Write</permission> </permissions> <label-id>create_product</label-id> <image>/images/icons/add_product.gif</image> <action-listener>#{SaveProductDialog.setupFlagCreate}</action-listener> <action>dialog:save_product</action> </action> <!– action :modifier une fiche produit –> <action id="update_product"> <permissions> <permission allow="true">Write</permission> </permissions> <evaluator>com.koossery.web.action.evaluator.UpdateProductEvaluator</evaluator> <label-id>update-product</label-id> <image>/images/icons/update_product.gif</image> <action-listener>#{SaveProductDialog.setupContentAction}</action-listener> <action>dialog:save_product</action> <params> <param name="id">#{actionContext.id}</param> </params> </action> <!– ici on ajoute l'action 'créer produit' dans le groupe 'browse_create_menu'–> <action-group id="browse_create_menu"> <action idref="create_product" /> </action-group> <!– ici on ajoute l'action 'créer produit' dans le groupe 'document_browse'–> <action-group id="document_browse"> <action idref="update_product" /> </action-group> </actions> </config> <!– configuration du Dialog–> <config> <dialogs> <dialog name="save_product" page="/jsp/extension/content/save-product-dialog.jsp" managed-bean="SaveProductDialog" icon="/images/icons/new_content_large.gif" title-id="save_product_dialog_title" description-id="save_product_description_dialog"> </dialog> </dialogs> </config> <!– Configuration of Advanced search –> <config evaluator="string-compare" condition="Advanced Search"> <advanced-search> <content-types> <type name="product:product"/> </content-types> <custom-properties> <meta-data type="product:product" property="product:name" /> <meta-data type="product:product" property="product:description" /> <meta-data type="product:product" property="product:ref" /> <meta-data type="product:product" property="product:prize" /> <meta-data type="product:product" property="product:stock" /> </custom-properties> </advanced-search> </config> </alfresco-config>
<?xml version="1.0" encoding="UTF-"?> <!– Definition of new Model –> <model name="product:model" xmlns="http://www.alfresco.org/model/dictionary/."> <!– Optional meta-data about the model –> <description>Custom Content Model</description> <author>KOOSSERY TECHNOLOGY (Centre de Compétences Alfresco-jBPM)</author> <version>.</version> <!– ici nos imports de modèles M1 –> <imports> <!– Import Alfresco Dictionary Definitions –> <import uri="http://www.alfresco.org/model/dictionary/." prefix="d"/> <!– Import Alfresco Content Domain Model Definitions –> <import uri="http://www.alfresco.org/model/content/." prefix="cm"/> </imports> <!– ci-dessous notre modèle M2 pour ce projet –> <!– on définit le namespace de notre modèle M2 –> <namespaces> <namespace uri="http://www.koossery-tech.com/model/product/." prefix="product"/> </namespaces> <types> <!– The product type –> <type name="product:product"> <title>Product</title> <parent>cm:content</parent> <properties> <property name="product:name"> <title>Name</title> <type>d:text</type> <mandatory>true</mandatory> </property> <property name="product:description"> <title>Description</title> <type>d:text</type> </property> <property name="product:ref"> <title>REF</title> <type>d:text</type> <mandatory>true</mandatory> </property> <property name="product:prize"> <title>Prize</title> <type>d:float</type> <mandatory>true</mandatory> </property> <property name="product:stock"> <title>Stock</title> <type>d:int</type> </property> </properties> <associations> <!– ci-dessous l'association qui lie le produit à ses images –> <association name="product:image"> <target> <class>product:picture</class> <mandatory>false</mandatory> <many>false</many> </target> </association> </associations> <!– on greffe les aspect/comportements versionable et auditable –> <mandatory-aspects> <aspect>cm:versionable</aspect> <aspect>cm:auditable</aspect> </mandatory-aspects> </type> <!– The product image –> <type name="product:picture"> <title>Picture</title> <parent>cm:content</parent> <properties> <property name="product:pictureLegend"> <title>Legend</title> <type>d:text</type> <mandatory>false</mandatory> </property> </properties> </type> </types> </model>
<?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>