AnsweredAssumed Answered

No Constraints in PropertyList

Question asked by ddanninger on May 11, 2010
Latest reply on Jun 12, 2015 by ddelapasse
Hi,

i try to get a list of a custom Content model. It works so far, but if i want to know the Constraints of a Property its just blank. How comes? Did i do something wrong or is it a bug?

So if i get the JSON Result of the WebScript: "http://192.168.254.128:8080/alfresco/service/api/classes/cx_doc/property/cx_language"

It returns me :

{

    * name: "cx:language"
    * title: "Language"
    * defaultValues: ""
    * dataType: "d:text"
    * multiValued: true
    * mandatory: false
    * enforced: false
    * protected: false
    * indexed: true
    * indexedAtomically: true
    * constraints: [ ]
    * url: "/api/property/cx_language"

}

But i added some Constraints to the Custom Content Model see my Snippets:


…..
…..
…..
<constraint name="cx:languageList" type="LIST">
            <parameter name="allowedValues">
                <list>
                    <value>German</value>
                    <value>English</value>
                    <value>Russian</value>
          <value>Italian</value>
          <value>Turkish</value>
          <value>Czech</value>
          <value>Slovak</value>
          <value>Hungarian</value>
                    <value>Serb</value>
                    <value>Uzbek</value>
                    <value>Spanish</value>
                </list>
            </parameter>
        </constraint>

….
….
….

<property name="cx:language">
               <title>Language</title>
               <type>d:text</type>
               <multiple>true</multiple>
               <constraints>
                  <constraint ref="cx:languageList" />
               </constraints>
            </property>


Does anybody have an idea whats going on in here?

Best regards
Dominik


I use the Alfresco 3.3 Community Version on Debian Lenny

Outcomes