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/springbeans.dtd'> <beans> <!– Registration of new models –> <bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" dependson="dictionaryBootstrap"> <property name="models"> <list> <value>alfresco/extension/poubelle-model.xml</value> </list> </property> </bean> </beans>
<?xml version="1.0" encoding="UTF-8"?> <!– Definition of new Model –> <model name="appli:poubellemodel" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <!– Optional metadata about the model –> <description>appli Model</description> <author>falco</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.alfresco.org/model/content/1.0" prefix="appli" /> </namespaces> <aspects> <aspect name="appli:supertop"> <title>appli supertop</title> <properties> <property name="appli:published"> <type>d:date</type> <mandatory>true</mandatory> </property> <property name="appli:isActive"> <type>d:boolean</type> <default>false</default> </property> <property name="appli:product"> <type>d:text</type> <mandatory>true</mandatory> </property> </properties> </aspect> </model>
<alfresco-config> <!– Document Library config section –> <config evaluator="string-compare" condition="DocumentLibrary"> <!– Used by the "Manage Aspects" action For custom aspects, remember to also add the relevant i18n string(s) cm_myaspect=My Aspect –> <aspects> <!– Aspects that a user can see –> <visible> <aspect name="cm:generalclassifiable" /> <aspect name="cm:complianceable" /> <aspect name="cm:dublincore" /> <aspect name="cm:effectivity" /> <aspect name="cm:summarizable" /> <aspect name="cm:versionable" /> <aspect name="cm:templatable" /> <aspect name="cm:emailed" /> <aspect name="emailserver:aliasable" /> <aspect name="cm:taggable" /> <aspect name="app:inlineeditable" /> <!– <aspect name="kb:referencable" /> –> <aspect name="appli:supertop" /> </visible> <!– Aspects that a user can add. Same as "visible" if left empty –> <addable> </addable> <!– Aspects that a user can remove. Same as "visible" if left empty –> <removeable> </removeable> </aspects> </config> <!– cm:content type (existing nodes) –> <config evaluator="node-type" condition="cm:content"> <forms> <!– Default form configuration used on the document details and edit metadata pages –> <form> <field-visibility> <!– <show id="kb:documentRef" /> –> <show id="appli:published" /> </field-visibility> </form> <!– Document Library pop-up Edit Metadata form –> <form id="doclib-simple-metadata"> <field-visibility> <!– <show id="kb:documentRef" /> –> <show id="appli:published" /> </field-visibility> <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" /> </form> <!– Document Library Inline Edit form –> <form id="doclib-inline-edit"> <field-visibility> <!– <show id="kb:documentRef" /> –> <show id="appli:published" /> </field-visibility> </form> </forms> </config> </alfresco-config>
GRAVE: Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.alfresco.repo.webdav.WebDAVSessionListenerorg.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:alfresco/application-context.xml]Offending resource: ServletContext resource [/WEB-INF/web-application-context.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath*:alfresco/extension/*-context.xml]Offending resource: class path resource [alfresco/application-context.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from file [/home/user/alfresco/alfresco-4.1.1.3/tomcat/shared/classes/alfresco/extension/poubelle-model-context.xml]; nested exception is java.io.FileNotFoundException: http://www.springframework.org/dtd/springbeans.dtdaused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath*:alfresco/extension/*-context.xml]MErci
tomcat/shared/classes/alfresco/extension
<constraint name="XXX:StatutDoc_constraint" type="LIST"> <parameter name="allowedValues"> <list> <value></value> <!– permet une recherche sans valeur –> <value>Création</value> <value>Modification</value> <value>Validation</value> <value>Publication</value> <value>Archivage</value> </list> </parameter> </constraint> </constraints>
<aspect name="XXX:StatutDoc"> <title>XXX Statut Documentaire</title> <properties> <property name="XXX:Statut"> <title>XXX - Statut Documentaire</title> <type>d:text</type> <default>Création</default> <index enabled="true"> <atomic>true</atomic> <stored>false</stored> <tokenised>false</tokenised> </index> <constraints> <constraint ref="XXX:StatutDoc_constraint"/> </constraints> </property> </properties> </aspect>
<!– Custom Types & Aspects –> <config evaluator="string-compare" condition="DocumentLibrary"> <aspects> <!– Aspects that a user can see –> <visible> <!– Ajout des aspects pour l'Application SIMAerotraining –> <aspect name="XXX:StatutDoc"/> </visible> <!– Aspects that a user can add. Same as "visible" if left empty –> <addable> </addable> <!– Aspects that a user can remove. Same as "visible" if left empty –> <removeable> </removeable> </aspects> </config>
<config evaluator="aspect" condition="XXX:StatutDoc"> <forms> <!– configuration de la "form" par défaut utilisée pour les éditer et afficher les détails des méta-données du document par défaut –> <form> <field-visibility> <!– cm:content data –> …. <!– Métadonnées pour l'application XXX Statut Documentaire –> <show id="XXX:Statut"/> </field-visibility> </form> </forms> </config>
<config evaluator="node-type" condition="cm:content"> … </config> <config evaluator="model-type" condition="cm:content"> … </config>