Topic
  • 2 replies
  • Latest Post - ‏2012-06-01T16:14:12Z by SystemAdmin
SystemAdmin
SystemAdmin
76 Posts

Pinned topic Passing Values to a Multi-Valued Property

‏2012-06-01T03:59:17Z |
I am using CMIS Java API to manipulate CMIS objects on a IBM CMIS server. Does anyone know how to pass values to a multiple-valued property? I tried to set the values by
properties("AList","value1");
properties("AList","value2");
properties("AList","value3");
I got an IllegalArgumentException saying that Property is not a single value property

The custom property is defined as
-<propertyStringDefinition>
<id>AList</id>
........
<propertyType>string</propertyType>
<cardinality>multi</cardinality>
<updatability>readwrite</updatability>
<inherited>false</inherited>
<required>false</required>
<queryable>true</queryable>
<orderable>false</orderable>
<openChoice>false</openChoice>
<ns4:isHidden xmlns:ns4="http://www.ibm.com/xmlns/prod/ecm/cmis/p8extensions">false</ns4:isHidden>
<maxLength>5</maxLength>
</propertyStringDefinition>
Updated on 2012-06-01T16:14:12Z at 2012-06-01T16:14:12Z by SystemAdmin
  • jay.brown
    jay.brown
    41 Posts

    Re: Passing Values to a Multi-Valued Property

    ‏2012-06-01T15:51:56Z  
    I'm assuming you are talking about Apache Chemistry OpenCMIS here:
    When you set a list property in OpenCMIS the key value is a string just like single valued properties, however the value portion will be an ArrayList of the appropriate type.
  • SystemAdmin
    SystemAdmin
    76 Posts

    Re: Passing Values to a Multi-Valued Property

    ‏2012-06-01T16:14:12Z  
    • jay.brown
    • ‏2012-06-01T15:51:56Z
    I'm assuming you are talking about Apache Chemistry OpenCMIS here:
    When you set a list property in OpenCMIS the key value is a string just like single valued properties, however the value portion will be an ArrayList of the appropriate type.
    Jay, thanks for the response. The ArrayList works.

    Best Regards,
    Tom Tam