Bonjour tout le monde ;j'ai ajouté un 1er modèle...

cancel
Showing results for 
Search instead for 
Did you mean: 
sarra
Member II

Re: Bonjour tout le monde ;j'ai ajouté un 1er modèle...

bonjour tout le monde ;

j'ai ajouté deux modèles mais quand j'ai voulu créé un autre modèle en essayant comme test le modèle proposé dans ce lien : http://forum.alfresco-fr.org/viewtopic.php?id=543 il n'ya pas d'ajout de ce modèle dans la liste de type de contenu!!
bref voilà le fichier : web-client-config-custom.xml
<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="node-type" condition="sc:doc">
   <property-sheet>
      <show-property name="sc:Identifiant_Unique"  />
      <show-property name="sc:Nom_De_L_Affilie"  />
      <show-property name="sc:Prenom_De_L_Affilie"  />
      <show-property name="sc:Date_De_Naissance"  />
      <show-property name="sc:Numero_Extrait"  />
       <show-property name="sc:Annee_Extrait"  />
   
   </property-sheet>
</config>

<config evaluator="node-type" condition="sc:whitepaper">
   <property-sheet>
      <show-property name="sc:Numero_CIN" />
       <show-property name="sc:Date_De_Signature" />
     
   </property-sheet>
</config>


<config evaluator="aspect-name" condition="sc:webable">
      <property-sheet>
         <show-property name="sc:published" display-label-id="sc:published" />
         <show-property name="sc:isActive" display-label-id="isActive"  read-only="true"/>         

      </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 type="sc:doc" property="sc:Identifiant_Unique" />
         
         <meta-data type="sc:doc" property="sc:Nom_De_L_Affilie" />
         
         <meta-data type="sc:doc" property="sc:Prenom_De_L_Affilie" />
         
         <meta-data type="sc:doc" property="sc:Date_De_Naissance" />
         
         <meta-data type="sc:doc" property="sc:Numero_Extrait" />
         
         <meta-data type="sc:doc" property="sc:Annee_Extrait" />
         <meta-data type="sc:whitepaper" property="sc:Numero_CIN" />
         <meta-data type="sc:whitepaper" property="sc:Date_De_Signature" />
         
         </custom-properties>
      </advanced-search>
   </config>
</alfresco-config>
le fichier de modèle exampleModel.xml
<?xml version="1.0" encoding="UTF-8"?>

<!– Definition of new Model –>

<!– The important part here is the name - Note: the use of the my: namespace
     which is defined further on in the document –>
<model name="my:mynewmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <!– Optional meta-data about the model –>  
   <description>Example custom Model</description>
   <author></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 –>
   <!– NOTE: The following namespace my.new.model should be changed to reflect your own namespace –>
   <namespaces>
      <namespace uri="my.new.model" prefix="my"/>
   </namespaces>
  
   <types>
  
      <!– Definition of new Content Type: Standard Operating Procedure –>
      <type name="my:sop">
         <title>Standard Operating Procedure</title>
         <parent>cm:content</parent>
         <properties>
            <property name="my:publishedDate">
               <type>d:datetime</type>
            </property>
            <property name="my:authorisedBy">
               <type>d:text</type>
            </property>
         </properties>
         <associations>
            <association name="my:signOff">
               <source>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </source>
               <target>
                  <class>cm:content</class>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </target>
            </association>
            <child-association name="my:processSteps">
               <source>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </source>
               <target>
                  <class>cm:content</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
         </child-association>           
         </associations>
      </type>
     
    </types>
   
    <aspects>
     
      <!– Definition of new Content Aspect: Image Classification –>
      <aspect name="my:imageClassification">
         <title>Image Classfication</title>
         <properties>
            <property name="my:width">
               <type>d:int</type>
            </property>
            <property name="my:height">
               <type>d:int</type>
            </property>
            <property name="my:resolution">
               <type>d:int</type>
            </property>
         </properties>
      </aspect>
     
   </aspects>
  
</model>
l'autre fichier pour récupérer le modèle example-model-context.xml
<?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/exampleModel.xml</value>
            </list>
        </property>
    </bean>
         
</beans>
pour les deux modèles précédentes ce sont dans les fichiers suivants :
le 1 er fcihier pour le chargement de modèle dans la liste : someco-model-context.xml
<?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 models–>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/scModel.xml</value>
</list>
</property>
</bean>
</beans>
pour les 2 modèles le fichier est : scModel.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!–definition of new model–>
<model name="sc:somecomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
  <description>Someco Model</description>
  <author>Optaros</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 my.new.model should be changed to reflect your own namespace
  –>
- <namespaces>
  <namespace uri="http://www.someco.com/model/content/1.0" prefix="sc" />
  </namespaces>
<constraints>
  <constraint name="sc:idLength" type="LENGTH">
     <parameter name="minLength"><value>8</value></parameter>
     <parameter name="maxLength"><value>8</value></parameter>
  </constraint>
  <constraint name="sc:idLength1" type="LENGTH">
     <parameter name="minLength"><value>4</value></parameter>
     <parameter name="maxLength"><value>4</value></parameter>
  </constraint>

  <constraint name="sc:idLength2" type="LENGTH">
     <parameter name="minLength"><value>0</value></parameter>
     <parameter name="maxLength"><value>20</value></parameter>
  </constraint>

 
 
</constraints>
 
- <types>
- <!–  enterprise wide generic document type
  –>

- <type name="sc:doc">
  <title>Extrait De Naissance </title>
  <parent>cm:content</parent>
   <properties>
        <property name="sc:Identifiant_Unique">
   <type>d:int</type>
<constraints>
      <constraint ref="sc:idLength"/> 
   </constraints>

          </property>
            <property name="sc:Nom_De_L_Affilie">
               <type>d:text</type>
          <constraints>
      <constraint ref="sc:idLength2"/> 
   </constraints>

          </property>
           <property name="sc:Prenom_De_L_Affilie">
               <type>d:text</type>
         <constraints>
      <constraint ref="sc:idLength2"/> 
   </constraints>
  
            </property>
          <property name="sc:Date_De_Naissance">
               <type>d:date</type>
            </property>
         
          <property name="sc:Numero_Extrait">
               <type>d:int</type>
            <constraints>
      <constraint ref="sc:idLength1"/>
   </constraints>
</property>
<property name="sc:Annee_Extrait">
<type>d:int</type>
  <constraints>
      <constraint ref="sc:idLength1"/>
   </constraints>
</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>
   </mandatory-aspects>–>
  </type>
 
- <type name="sc:whitepaper">
  <title>Carte d'Identite </title>
  <parent>sc:doc</parent>
   <properties>
            <property name="sc:Numero_CIN">
               <type>d:int</type>
            <constraints>
      <constraint ref="sc:idLength"/> 
   </constraints>

           
            </property>
            <property name="sc:Date_De_Signature">
               <type>d:date</type>
            </property>
         </properties>
 
 
 
  </type>
 
  </types>
- <aspects>
- <!–  Definition of new Content Aspect: Image Classification
  –>
- <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>
merci beaucoup et cordialement.
SARRA
sarra
Member II

Re: Bonjour tout le monde ;j'ai ajouté un 1er modèle...

SVP Pouvez vous me réponder car vraiment je l'ai besoin .
merci et cordialement.
SARRA
sarra
Member II

Re: Bonjour tout le monde ;j'ai ajouté un 1er modèle...

bonjour tout le monde ;

j'ai ajouté deux modèles mais quand j'ai voulu créé un autre modèle en essayant comme test le modèle proposé dans ce lien : http://forum.alfresco-fr.org/viewtopic.php?id=543 il n'ya pas d'ajout de ce modèle dans la liste de type de contenu!!
bref voilà le fichier : web-client-config-custom.xml
<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="node-type" condition="sc:doc">
   <property-sheet>
      <show-property name="sc:Identifiant_Unique"  />
      <show-property name="sc:Nom_De_L_Affilie"  />
      <show-property name="sc:Prenom_De_L_Affilie"  />
      <show-property name="sc:Date_De_Naissance"  />
      <show-property name="sc:Numero_Extrait"  />
       <show-property name="sc:Annee_Extrait"  />
   
   </property-sheet>
</config>

<config evaluator="node-type" condition="sc:whitepaper">
   <property-sheet>
      <show-property name="sc:Numero_CIN" />
       <show-property name="sc:Date_De_Signature" />
     
   </property-sheet>
</config>


<config evaluator="aspect-name" condition="sc:webable">
      <property-sheet>
         <show-property name="sc:published" display-label-id="sc:published" />
         <show-property name="sc:isActive" display-label-id="isActive"  read-only="true"/>         

      </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 type="sc:doc" property="sc:Identifiant_Unique" />
         
         <meta-data type="sc:doc" property="sc:Nom_De_L_Affilie" />
         
         <meta-data type="sc:doc" property="sc:Prenom_De_L_Affilie" />
         
         <meta-data type="sc:doc" property="sc:Date_De_Naissance" />
         
         <meta-data type="sc:doc" property="sc:Numero_Extrait" />
         
         <meta-data type="sc:doc" property="sc:Annee_Extrait" />
         <meta-data type="sc:whitepaper" property="sc:Numero_CIN" />
         <meta-data type="sc:whitepaper" property="sc:Date_De_Signature" />
         
         </custom-properties>
      </advanced-search>
   </config>
</alfresco-config>
le fichier de modèle exampleModel.xml
<?xml version="1.0" encoding="UTF-8"?>

<!– Definition of new Model –>

<!– The important part here is the name - Note: the use of the my: namespace
     which is defined further on in the document –>
<model name="my:mynewmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <!– Optional meta-data about the model –>  
   <description>Example custom Model</description>
   <author></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 –>
   <!– NOTE: The following namespace my.new.model should be changed to reflect your own namespace –>
   <namespaces>
      <namespace uri="my.new.model" prefix="my"/>
   </namespaces>
  
   <types>
  
      <!– Definition of new Content Type: Standard Operating Procedure –>
      <type name="my:sop">
         <title>Standard Operating Procedure</title>
         <parent>cm:content</parent>
         <properties>
            <property name="my:publishedDate">
               <type>d:datetime</type>
            </property>
            <property name="my:authorisedBy">
               <type>d:text</type>
            </property>
         </properties>
         <associations>
            <association name="my:signOff">
               <source>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </source>
               <target>
                  <class>cm:content</class>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </target>
            </association>
            <child-association name="my:processSteps">
               <source>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </source>
               <target>
                  <class>cm:content</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
         </child-association>           
         </associations>
      </type>
     
    </types>
   
    <aspects>
     
      <!– Definition of new Content Aspect: Image Classification –>
      <aspect name="my:imageClassification">
         <title>Image Classfication</title>
         <properties>
            <property name="my:width">
               <type>d:int</type>
            </property>
            <property name="my:height">
               <type>d:int</type>
            </property>
            <property name="my:resolution">
               <type>d:int</type>
            </property>
         </properties>
      </aspect>
     
   </aspects>
  
</model>
l'autre fichier pour récupérer le modèle example-model-context.xml
<?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/exampleModel.xml</value>
            </list>
        </property>
    </bean>
         
</beans>
pour les deux modèles précédentes ce sont dans les fichiers suivants :
le 1 er fcihier pour le chargement de modèle dans la liste : someco-model-context.xml
<?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 models–>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/scModel.xml</value>
</list>
</property>
</bean>
</beans>
pour les 2 modèles le fichier est : scModel.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!–definition of new model–>
<model name="sc:somecomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
  <description>Someco Model</description>
  <author>Optaros</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 my.new.model should be changed to reflect your own namespace
  –>
- <namespaces>
  <namespace uri="http://www.someco.com/model/content/1.0" prefix="sc" />
  </namespaces>
<constraints>
  <constraint name="sc:idLength" type="LENGTH">
     <parameter name="minLength"><value>8</value></parameter>
     <parameter name="maxLength"><value>8</value></parameter>
  </constraint>
  <constraint name="sc:idLength1" type="LENGTH">
     <parameter name="minLength"><value>4</value></parameter>
     <parameter name="maxLength"><value>4</value></parameter>
  </constraint>

  <constraint name="sc:idLength2" type="LENGTH">
     <parameter name="minLength"><value>0</value></parameter>
     <parameter name="maxLength"><value>20</value></parameter>
  </constraint>

 
 
</constraints>
 
- <types>
- <!–  enterprise wide generic document type
  –>

- <type name="sc:doc">
  <title>Extrait De Naissance </title>
  <parent>cm:content</parent>
   <properties>
        <property name="sc:Identifiant_Unique">
   <type>d:int</type>
<constraints>
      <constraint ref="sc:idLength"/> 
   </constraints>

          </property>
            <property name="sc:Nom_De_L_Affilie">
               <type>d:text</type>
          <constraints>
      <constraint ref="sc:idLength2"/> 
   </constraints>

          </property>
           <property name="sc:Prenom_De_L_Affilie">
               <type>d:text</type>
         <constraints>
      <constraint ref="sc:idLength2"/> 
   </constraints>
  
            </property>
          <property name="sc:Date_De_Naissance">
               <type>d:date</type>
            </property>
         
          <property name="sc:Numero_Extrait">
               <type>d:int</type>
            <constraints>
      <constraint ref="sc:idLength1"/>
   </constraints>
</property>
<property name="sc:Annee_Extrait">
<type>d:int</type>
  <constraints>
      <constraint ref="sc:idLength1"/>
   </constraints>
</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>
   </mandatory-aspects>–>
  </type>
 
- <type name="sc:whitepaper">
  <title>Carte d'Identite </title>
  <parent>sc:doc</parent>
   <properties>
            <property name="sc:Numero_CIN">
               <type>d:int</type>
            <constraints>
      <constraint ref="sc:idLength"/> 
   </constraints>

           
            </property>
            <property name="sc:Date_De_Signature">
               <type>d:date</type>
            </property>
         </properties>
 
 
 
  </type>
 
  </types>
- <aspects>
- <!–  Definition of new Content Aspect: Image Classification
  –>
- <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>
merci beaucoup et cordialement.
SARRA
sarra
Member II

Re: Bonjour tout le monde ;j'ai ajouté un 1er modèle...

personne n'a pas de réponse même un petit guide.
sarra
Member II

Re: Bonjour tout le monde ;j'ai ajouté un 1er modèle...

Bonjour tout le monde ;

aucun commentaire sur mes fichiers ????

cordialement.
SARRA
michaelh
Active Member

Re: Bonjour tout le monde ;j'ai ajouté un 1er modèle...

Le problème c'est que vos fichiers sont relativement illisibles.

vous copiez-collez l'intégralité du contenu sans donner d'indications, et c'est à nous de trier ensuite ce qui est relatif à vos modifications et ce qui ne l'est pas. De plus Eric vous avait demandé de corriger l'indentation pour que ce soit lisible, et ça n'a pas été fait.

Bref, j'ai bien essayé de comprendre quelque chose, mais j'ai très vite abandonné, comme beaucoup de monde sans doute.