cancel
Showing results for 
Search instead for 
Did you mean: 

Get properties list in definition order via OpenCMIS

h_deselys
Champ in-the-making
Champ in-the-making
Hello everybody,

We have set up some custom aspects in Alfresco Community 4.2.f and we communicate with this Alfresco instance through OpenCMIS (Java).

We'd like to know if it is possible to retrieve properties from these aspects on our document in the order they are defined in the xml definition file. We see that, in Alfresco Explorer, the order is respected from the XML but when we retrieve these same properties from OpenCMIS, the order is totally arbitrary.

Best regards.

Hervé.
2 REPLIES 2

kaynezhang
World-Class Innovator
World-Class Innovator
I'm afraid in OpenCMIS Object Services interface aspect properties order is not preserved as you defined in model definition file .
If you want to  preserve the order as model definition,you need to parse definition model and get property from Document object according to your property definition order.

h_deselys
Champ in-the-making
Champ in-the-making
Thank you for this answer.