Hello,I' using the CMIS implementation of Alfresco 3.2 and have defined my own content model extension with some properties which shouldoccur multiple times:
<type name="ma:document">
<title>Dokument</title>
<parent>cm:folder</parent>
<properties>
<property name="ma:docPersonId">
<title>Personen-IDs</title>
<type>d:text</type>
<multiple>true</multiple>
</property>
<property name="ma:docOrganisationId">
<title>Einrichtungs-IDs</title>
<type>d:text</type>
<multiple>true</multiple>
</property>
<property name="ma:docClassificationId">
<title>Klassifikations-IDs</title>
<type>d:text</type>
<multiple>true</multiple>
</property>
</properties>
</type>
When I want to add multiple elements to these extensions with the following code
CmisPropertyString classificationProperty = new CmisPropertyString();
classificationProperty.setName(DOCUMENT_CLASSIFICATION_ID);
for (Classification classification : document.getClassifications()) {
classificationProperty.getValue().add(classification.getUuid());
}
I'm ending up in a ClassCastException:javax.xml.ws.soap.SOAPFaultException: Runtime error. Message: java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
I couldn't find a Jira task for this and I don't know if my code or assumptions are correct (according to the spec this should be working).Best wishesWerner Greßhoff