 
					
				
		
12-09-2009 06:15 AM
<?xml version="1.0" encoding="UTF-8"?>
<!– Note: This model is pre-configured to load at startup of the Repository.  So, all contrat –>
<!–       types and aspects added here will automatically be registered –>
<model name="se:seModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
   <!– Optional meta-data about the model –>   
   <description>se Model</description>
   <author></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 contrat.model should be changed to reflect your own 
   namespace –> 
   
   <namespaces> 
               <namespace uri="se.model" prefix="se"/> 
   </namespaces>
   <aspects>
           <!– Definition of new Content Aspect: Individu Details –>
       <aspect name="se:Details">
         <title>TITRE SE</title>
               <properties>
                  <property name="se:Sites">
                       <title>Sites</title>
                       <type>d:text</type>
                       <constraints>
                                 <constraint type="LIST">
                                    <parameter name="allowedValues">
                                        <list>
                                           <value>A</value>
                                           <value>B</value>
                                        </list>
                              </parameter>
                          </constraint>
                    </constraints>      
                  </property>                              
         </properties>
         <associations> 
         <association name="se:Enfants">
             <source> 
                <role>cm:referencedBy</role> 
                     <mandatory>false</mandatory> 
                     <many>true</many> 
                </source> 
                <target> 
               <class>cm:content</class> 
               <role>se:Enfants</role> 
               <mandatory>false</mandatory> 
               <many>true</many> 
            </target> 
         </association>
      </associations> 
    </aspect>
    </aspects>
</model>var listeSites = document.properties["se:Sites"];var listeEnfants = document.properties["se:Enfants"];12-09-2009 08:34 AM
document.assocs["se:Enfants"] 
					
				
		
12-09-2009 09:18 AM
document.copy(cheminFinal);document.move(cheminFinal);12-09-2009 09:54 AM
 
					
				
		
12-09-2009 10:38 AM
12-09-2009 11:33 AM
createAssociation(ScriptNode target, string assocType)
Creates a new target association to the specified node with the given association type QName.
 
					
				
		
12-09-2009 11:37 AM
12-09-2009 12:27 PM
 
					
				
		
12-10-2009 02:47 AM
 
					
				
		
12-10-2009 04:53 AM
<child-association name="se:Enfants">
             <source> 
                <role>cm:referencedBy</role> 
                     <mandatory>false</mandatory> 
                     <many>true</many> 
                </source> 
                <target> 
               <class>cm:content</class> 
               <role>se:Enfants</role> 
               <mandatory>false</mandatory> 
               <many>true</many> 
            </target> 
         </child-association>var fichier = companyhome.childByNamePath("Soc/Backup/Edit.txt");  
     document.createAssociation(fichier, "se:Enfants"); 
					
				
				
			
		
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.