<?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="Statut">
<list>
<value>alfresco/extension/customModel.xml</value>
</list>
</property>
</bean>
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<!– Custom Model –>
<!– Note: This model is pre-configured to load at startup of the Repository. So, all custom –>
<!– types and aspects added here will automatically be registered –>
<model name="custom:customModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Epingler le statut d'un document</description>
<author>Thomas Berment</author>
<version>1.0</version>
<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 –>
<!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="custom.model" prefix="custom"/>
</namespaces>
</model>
<aspects>
<!– Definition of new Content Aspect: Customer Details –>
<aspect name="custom:Metadatastatut">
<title>Statut du document</title>
<properties>
<property name="custom:Statut">
<title>Statut du document</title>
<type>d:text</type>
<constraint name="custom:typestatut" type="LIST">
<parameter name="allowedValues">
<list>
<value>En travail</value>
<value>En relecture</value>
<value>Validé</value>
<value>4</value>
<value>5</value>
</list>
</parameter>
</constraint>
</property>
</properties>
</aspect>
</aspects>
<!– Lists the custom aspect in business rules Action wizard –>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="custom:Metadatastatut"/>
</aspects>
</config>
<!– Displays the properties in view details page –>
<config evaluator="aspect-name" condition="custom:Metadatastatut">
<property-sheet>
<separator name="sepCust1" display-label="Statut du document" component-generator="HeaderSeparatorGenerator" />
<show-property name="custom:Statut"/>
</property-sheet>
</config>
<?xml version="1.0" encoding="UTF-8"?>
<!– Custom Model –>
<!– Note: This model is pre-configured to load at startup of the Repository. So, all custom –>
<!– types and aspects added here will automatically be registered –>
<model name="custom:customModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Epingler le statut d'un document</description>
<author>Thomas Berment</author>
<version>1.0</version>
<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 –>
<!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="custom.model" prefix="custom"/>
</namespaces>
<constraint name="custom:typestatut" type="LIST">
<parameter name="allowedValues">
<list>
<value>En Travail</value>
<value>A Relire</value>
<value>En Relecture</value>
<value>A Valider</value>
<value>Validation</value>
</list>
</parameter>
</constraint>
<aspects>
<!– Definition of new Content Aspect: Customer Details –>
<aspect name="custom:Metadatastatut">
<title>Statut du document</title>
<properties>
<property name="custom:Statut">
<title>Statut</title>
<type>d:text</type>
<!–<protected>false</protected>
<mandatory>false</mandatory>
<multiple>false</multiple>–>
<constraints>
<constraint ref="custom:typestatut"/>
</constraints>
</property>
</properties>
</aspect>
</aspects>
</model>
<constraint> doit être dans un <constraints>, d'où l'intérêt d'un éditeur XML avec validation !
<?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\customModel.xml</value>
</list>
</property>
</bean>
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<!– Custom Model –>
<!– Note: This model is pre-configured to load at startup of the Repository. So, all custom –>
<!– types and aspects added here will automatically be registered –>
<model name="custom:custommodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Epingler le statut d'un document</description>
<author>Thomas Berment</author>
<version>1.0</version>
<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 –>
<!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="custom.model" prefix="custom"/>
</namespaces>
<constraints>
<constraint name="custom:typestatut" type="LIST">
<parameter name="allowedValues">
<list>
<value>Travail</value>
<value>Relu</value>
<value>Validé</value>
<value>Archivé</value>
</list>
</parameter>
</constraint>
</constraints>
<aspects>
<!– Definition of new Content Aspect: Customer Details –>
<aspect name="custom:Metadatastatut">
<title>Statut du document</title>
<properties>
<property name="custom:Statut">
<title>Statut</title>
<type>d:text</type>
<!–<protected>false</protected>
<mandatory>false</mandatory>
<multiple>false</multiple>–>
<constraints>
<constraint ref="custom:typestatut"/>
</constraints>
</property>
</properties>
</aspect>
</aspects>
</model>
<!– Lists the custom aspect in business rules Action wizard –>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="custom:Metadatastatut"/>
</aspects>
</config>
<!– Displays the properties in view details page –>
<config evaluator="aspect-name" condition="custom:Metadatastatut">
<property-sheet>
<separator name="sepCust1" display-label="Statut du document" component-generator="HeaderSeparatorGenerator" />
<show-property name="custom:Statut"/>
</property-sheet>
</config>
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.