10-01-2007 11:14 AM
10-01-2007 11:27 AM
10-01-2007 12:50 PM
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– ************************************************ –>
<!– Ne pas redéfinir le bean webClientConfigSource –>
<!– afin d'éviter que lors d'un update –>
<!– de version Alfresco on oublie de nouvelles –>
<!– valeurs de la liste. –>
<!– ************************************************ –>
<!–
<bean id="webClientConfigSource" class="org.alfresco.config.source.UrlConfigSource">
<constructor-arg>
<list>
<value>classpath:alfresco/web-client-config.xml</value>
<value>classpath:alfresco/web-client-config-wizards.xml</value>
<value>classpath:alfresco/web-client-config-properties.xml</value>
<value>classpath:alfresco/web-client-config-navigation.xml</value>
<value>classpath:alfresco/web-client-config-actions.xml</value>
<value>classpath:alfresco/web-client-config-forum-actions.xml</value>
<value>classpath:alfresco/web-client-config-dialogs.xml</value>
<value>classpath:alfresco/extension/web-client-config-monModel.xml</value>
</list>
</constructor-arg>
</bean>
–>
<bean id="webClientConfigSource" class="org.alfresco.config.source.UrlConfigSource">
<constructor-arg>
<list>
<value>classpath:alfresco/web-client-config.xml</value>
<value>classpath:alfresco/web-client-config-dialogs.xml</value>
<value>classpath:alfresco/web-client-config-wizards.xml</value>
<value>classpath:alfresco/web-client-config-properties.xml</value>
<value>classpath:alfresco/web-client-config-navigation.xml</value>
<value>classpath:alfresco/web-client-config-actions.xml</value>
<value>classpath:alfresco/web-client-config-forum-actions.xml</value>
<value>classpath:alfresco/web-client-config-workflow-actions.xml</value>
<value>classpath:alfresco/extension/web-client-config-custom.xml</value>
<value>classpath:alfresco/extension/web-client-rm-custom.xml</value>
<value>classpath:alfresco/extension/web-client-config-cetmef.xml</value>
</list>
</constructor-arg>
</bean>
<bean id="monModel.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/cetmefModel.xml</value>
</list>
</property>
</bean>
</beans>
code du fichier cetmefModel.xml<?xml version="1.0" encoding="UTF-8"?>
<model name="mm:cetmefModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Modèle personnalisé du CETMEF</description>
<author>Jean Claude LOUISE</author>
<published>2007-01-4</published>
<version>1.0</version>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<namespaces>
<namespace uri="cetmef.model" prefix="mm"/>
</namespaces>
<constraints>
<constraint name="mm:Clangue" type="LIST">
<parameter name="allowedValues">
<list>
<value>Francais</value>
<value>Anglais</value>
</list>
</parameter>
</constraint>
</constraints>
<types>
<!– Définition du type production –>
<type name="mm:production">
<title>Production</title>
<parent>cm:content</parent>
<properties>
<property name="mm:datepublication">
<title>Date de Publication </title>
<type>d:date</type>
<!–<mandatory>true</mandatory>–>
</property>
</properties>
<!–
<associations>
<association name="mm:association">
<title>Association </title>
<target>
<class>mm:production</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
–>
</type>
<!– Définition du type projet –>
<type name="mm:projet">
<title>Projet</title>
<parent>cm:content</parent>
<!–
<associations>
<association name="mm:association">
<title>Association </title>
<target>
<class>mm:production</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
–>
</type>
</types>
<aspects>
<aspect name="mm:aspect_cetmef">
<title>CETMEF</title>
<properties>
<property name="mm:langue">
<title>Langue </title>
<type>d:text</type>
<default>Francais</default>
<constraints>
<constraint ref="mm:Clangue"/>
</constraints>
</property>
<property name="mm:support">
<title>Support </title>
<type>d:text</type>
</property>
<property name="mm:disponibilite">
<title>Disponibilité </title>
<type>d:text</type>
</property>
<property name="mm:reference">
<title>Référence </title>
<type>d:text</type>
</property>
</properties>
</aspect>
</aspects>
</model>
code du fichier wb-client-config-cetmef.xml<?xml version="1.0" encoding="UTF-8"?>
<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>
–>
<!– Configuration de la recherche–>
<config>
<client>
<search-max-results>100</search-max-results>
<search-and-terms>true</search-and-terms>
</client>
</config>
<!– Example of adding languages to the list in the login page –>
<config evaluator="string-compare" condition="Languages">
<languages>
<language locale="fr_FR">Français</language>
</languages>
</config>
<!– **************************************************–>
<!– configuration du modèle cetmefModel –>
<!– ************************************* ************–>
<!– Ajout des types production et projet–>
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="mm:production" />
<type name="mm:projet" />
</content-types>
</config>
<!– Ajout du type production et projet dans les arguments de l'action specialise le type d'un element–>
<config evaluator="string-compare" condition="Action Wizards">
<specialise-types>
<type name="mm:production" />
<type name="mm:projet" />
</specialise-types>
</config>
<!– Affichage aspect CETMEF –>
<config evaluator="aspect-name" condition="mm:aspect_cetmef">
<property-sheet>
<show-property name="mm:langue" />
<show-property name="mm:support" />
<show-property name="mm:disponibilite" />
<show-property name="mm:reference" />
</property-sheet>
</config>
<!– Affichage propriétés –>
<config evaluator="node-type" condition="mm:production">
<property-sheet>
<show-property name="mm:datepublication"/>
<!– ajouter display-label-id=" " si on souhaite ler relier au fichier webclient.properties
<show-association name="mm:association" display-label-id="asso"/>
–>
</property-sheet>
</config>
<!– Ajout de l'aspect filiale dans les arguments de l'action ajouter un aspect –>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="mm:aspect_cetmef" display-label="Aspect du CETMEF"/>
</aspects>
</config>
<!– ************************************** –>
<!– configuration des groupes action –>
<!– création d'un groupe d'actions –>
<!– ************************************** –>
<config>
<actions>
<action-group id="myWorkflow_item_edit_actions">
<action idref="view_content_properties" />
<action idref="edit_content_properties" />
<action idref="remove_package_item" />
<action idref="edit_doc_http" />
<action idref="checkout_doc" />
<action idref="update_doc" />
</action-group>
</actions>
</config>
<!– Configuration de la recherche avancée pour le modele cetmefModel –>
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="mm:production" />
</content-types>
<custom-properties>
<meta-data type="mm:production" property="mm:datepublication" />
<meta-data aspect="mm:aspect_cetmef" property="mm:langue" />
<meta-data aspect="mm:aspect_cetmef" property="mm:support" />
<meta-data aspect="mm:aspect_cetmef" property="mm:disponibilite" />
<meta-data aspect="mm:aspect_cetmef" property="mm:reference" />
</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>
–>
</alfresco-config>
Merci encore pour votre aide
10-02-2007 09:14 AM
<bean id="mon-bean-de-config" class="org.alfresco.web.config.WebClientConfigBootstrap" init-method="init">
<property name="configs">
<list>
<value>classpath:alfresco/extension/web-client-config-cetmef.xml</value>
</list>
</property>
</bean>
Est-ce que cela résoud le problème?<bean id="webClientConfigSource" class="org.alfresco.repo.config.source.RepoUrlConfigSource">
<constructor-arg>
<list>
<value>classpath:alfresco/web-client-config.xml</value>
<value>classpath:alfresco/web-client-config-dialogs.xml</value>
<value>classpath:alfresco/web-client-config-wizards.xml</value>
<value>classpath:alfresco/web-client-config-properties.xml</value>
<value>classpath:alfresco/web-client-config-navigation.xml</value>
<value>classpath:alfresco/web-client-config-wcm.xml</value>
<value>classpath:alfresco/web-client-config-actions.xml</value>
<value>classpath:alfresco/web-client-config-forum-actions.xml</value>
<value>classpath:alfresco/web-client-config-wcm-actions.xml</value>
<value>classpath:alfresco/web-client-config-workflow-actions.xml</value>
<value>classpath:alfresco/extension/web-client-config-custom.xml</value>
<value>jar:*!/META-INF/web-client-config-custom.xml</value>
<!– note: will be skipped if not present –>
<value>workspace://SpacesStore/${spaces.company_home.childname}/${spaces.dictionary.childname}/app:webclient_extension/cm:web-client-config-custom.xml</value>
</list>
</constructor-arg>
<property name="tenantService" ref="tenantService"/>
<property name="searchService" ref="SearchService"/>
<property name="contentService" ref="ContentService"/>
<property name="namespaceService" ref="NamespaceService"/>
<property name="nodeService" ref="NodeService"/>
</bean>
10-02-2007 09:33 AM
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.