 
					
				
		
02-17-2010 06:12 AM
02-18-2010 09:41 AM
 
					
				
		
02-18-2010 11:50 AM
<?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> 
					
				
		
02-18-2010 12:03 PM
 
					
				
		
02-19-2010 03:18 AM
02-19-2010 04:48 AM
 
					
				
		
02-19-2010 04:56 AM
<?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>02-19-2010 05:00 AM
 
					
				
		
02-19-2010 05:24 AM
<constraint> doit être dans un <constraints>, d'où l'intérêt d'un éditeur XML avec validation !
 
					
				
		
02-22-2010 03:31 AM
<?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> 
					
				
				
			
		
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.