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.
<alfresco-config> - <!– Example of overriding the from email address –> - <!– <config> <client> <from-email-address>someone@your-domain.com</from-email-address> <search-max-results>100</search-max-results> </client> </config> –> - <!– Example of adding languages to the list in the login page –> - <config evaluator="string-compare" condition="Languages"> - <languages> <language locale="ca_ES">Catalan</language> <language locale="da_DK">Danish</language> <language locale="de_DE">German</language> <language locale="es_ES">Spanish</language> <language locale="el_GR">Greek</language> <language locale="fr_FR">French</language> <language locale="it_IT">Italian</language> <language locale="ja_JP">Japanese</language> <language locale="du_NL">Dutch</language> <language locale="pt_BR">Portuguese (Brazilian)</language> <language locale="ru_RU">Russian</language> <language locale="fi_FI">Finnish</language> <language locale="tr_TR">Turkish</language> <language locale="zh_CN">Simplified Chinese</language> </languages> </config> - <!– Example of configuring advanced search –> - <!– <config evaluator="string-compare" condition="Advanced Search"> <advanced-search> <content-types> </content-types> <custom-properties> <meta-data aspect="app:simpleworkflow" property="app:approveStep" /> </custom-properties> </advanced-search> </config> –> - <!– Example of changing the sort direction for a view in the client –> - <!– <config evaluator="string-compare" condition="Views"> <views> <view-defaults> <topic> <sort-direction>ascending</sort-direction> </topic> </view-defaults> </views> </config> –> - <!– Example of adding a custom icon to the Create Space dialog –> - <!– <config evaluator="string-compare" condition="cm:folder icons"> <icons> <icon name="space-icon-custom" path="/images/icons/space-icon-custom.gif" /> </icons> </config> –> - <!– The config below shows how to incorporate the example model –> - <!– into the web client, for this to work you will need to –> - <!– rename example-model-context.xml.sample to example-model-context.xml –> - <!– <config evaluator="string-compare" condition="Content Wizards"> <content-types> <type name="my:sop" /> </content-types> </config> <config evaluator="node-type" condition="my:sop"> <property-sheet> <show-property name="mimetype" display-label-id="content_type" component-generator="MimeTypeSelectorGenerator" /> <show-property name="size" display-label-id="size" converter="org.alfresco.faces.ByteSizeConverter" show-in-edit-mode="false" /> <show-property name="my:publishedDate" /> <show-association name="my:signOff" /> <show-property name="my:authorisedBy" /> <show-child-association name="my:processSteps" /> </property-sheet> </config> <config evaluator="aspect-name" condition="my:imageClassification"> <property-sheet> <show-property name="my:width"/> <show-property name="my:height"/> <show-property name="my:resolution"/> </property-sheet> </config> <config evaluator="string-compare" condition="Action Wizards"> <aspects> <aspect name="my:imageClassification"/> </aspects> </config> <config evaluator="string-compare" condition="Advanced Search"> <advanced-search> <content-types> <type name="my:sop" /> </content-types> <custom-properties> <meta-data type="my:sop" property="my:authorisedBy" /> <meta-data aspect="my:imageClassification" property="my:resolution" /> </custom-properties> </advanced-search> </config> –> - <!– add webable aspect properties to property sheet –> - <config evaluator="string-compare" condition="Content Wizards"> - <content-types> <type name="sc:doc" /> <type name="sc:whitepaper" /> </content-types> </config> - <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="string-compare" condition="Content Wizards"> - <aspects> <aspect name="sc:webable" /> <aspect name="sc:productRelated" /> </aspects> - <subtypes> <type name="sc:doc" /> <type name="sc:whitepaper" /> </subtypes> - <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> </alfresco-config>
<config evaluator="node-type" condition="sc:doc"> <property-sheet> <show-property name="…" display-label-id="…" /> … </property-sheet> </config> <config evaluator="node-type" condition="sc:whitepaper"> <property-sheet> <show-property name="…" display-label-id="…" /> … </property-sheet> </config>
<property name="sc:Identifiant Unique"> <type>d:text</type> </property>
<constraints> <constraint name="sc:idLength" type="LENGTH"> <parameter name="minLength"><value>8</value></parameter> <parameter name="maxLength"><value>8</value></parameter> </constraint> </constraints>
<property name="sc:Identifiant Unique"> <type>d:text</type> <constraints> <constraint ref="sc:idLength"/> </constraints> </property>
- <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>
j'ai une question :en cas d'erreur de l'utilisateur est ce que je peut personnaliser le message affiché? comment?
je veux que les associations contiennent : deux métadonnées
<property name="sc:Identifiant Unique"> <type>d:int</type> <constraints> <constraint ref="sc:idLength"/> </constraints> </property>
j'ai un problème quand je mets plusieurs contraintes il ya un problème dans l'apparition d'alfresco.
<constraints> <constraint name="prefix:code" type="LIST"> <parameter name="allowedValues"> <list> <value>valeur1</value> <value>valeur2</value> <value>valeur3</value> </list> </parameter> </constraint> </constraints>
<!– 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" /> <show-association name="sc:relatedDocuments" /> </property-sheet> </config> <!– add someco types to add content list –> <config evaluator="string-compare" condition="Content Wizards"> <content-types> <type name="sc:doc" /> <type name="sc:whitepaper" /> </content-types> </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 specialise-type 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'> <beans> <!– Registration of new models –> <bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap"> <property name="models"> <list> <value>alfresco/extension/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>Optaros</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> <!– Enterprise-wide 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>
#sc:webable published=Published/Publié isActive=Active? #sc:productRelated product=Product/Produit version=Version
[…] <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> <aspect>sc:webable</aspect> </mandatory-aspects> </type> […] <aspect name="sc:webable"> <title>Someco Webable</title> <properties> <property name="sc:published"> <type>d:date</type> <mandatory>false</mandatory> </property> <property name="sc:isActive"> <type>d:boolean</type> <mandatory>false</mandatory> <default>false</default> </property> </properties> </aspect> […]
<type name="sc:doc"> <title>Someco Document</title> <parent>cm:content</parent> <properties> <property name="sc:prop"> <title>Name</title> <type>d:text</type> </property> </properties> <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> <aspect>sc:webable</aspect> </mandatory-aspects> </type>
<config evaluator="node-type" condition="sc:doc"> <property-sheet> <show-property name="sc:prop" display-label-id="monLabel"/> <show-association name="sc:relatedDocuments" display-label-id="monLabel"/> </property-sheet> </config>
12:31:35,418 ERROR [web.context.ContextLoader] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'extension.dictionaryBootstrap' defined in file [C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension\example-model-context.xml]: Invocation of init method failed; nested exception is org.alfresco.service.cmr.dictionary.DictionaryException: 09190001 Could not import bootstrap model alfresco/extension/exampleModel.xml at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1401) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 09190001 Could not import bootstrap model alfresco/extension/exampleModel.xml at org.alfresco.repo.dictionary.DictionaryBootstrap.onDictionaryInit(DictionaryBootstrap.java:158) at org.alfresco.repo.dictionary.DictionaryBootstrap.bootstrap(DictionaryBootstrap.java:105) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1529) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1468) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398) … 37 more Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 09190000 Failed to parse model at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:93) at org.alfresco.repo.dictionary.DictionaryBootstrap.onDictionaryInit(DictionaryBootstrap.java:147) … 45 more Caused by: org.jibx.runtime.JiBXException: Error accessing document at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.nextToken(XMLPullReaderFactory.java:269) at org.jibx.runtime.impl.UnmarshallingContext.advance(UnmarshallingContext.java:333) at org.jibx.runtime.impl.UnmarshallingContext.parsePastCurrentEndTag(UnmarshallingContext.java:795) at org.alfresco.repo.dictionary.M2Model.JiBX_root_projects_data_model_source_java_org_alfresco_repo_dictionary_m2binding_unmarshal_1_0(M2Model.java) at org.alfresco.repo.dictionary.JiBX_root_projects_data_model_source_java_org_alfresco_repo_dictionary_m2bindingM2Model_access.unmarshal() at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2773) at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2916) at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:88) … 46 more