cancel
Showing results for 
Search instead for 
Did you mean: 

Cmis: get types and aspects dictionary

marcus81
Champ in-the-making
Champ in-the-making
Hi, I just start now with alfresco and CMIS API (OpenCMIS and extension).
I would get, with CMIS API, a list of types(base and custom) and a list of aspects (base and custom) associated with their defined properties.
Is it possible? via a query? For each aspect and type I need to know the type of each property (string, integer, date, …) and if it is required or not, a sort of system dictionary.
I use Alfresco 4.0d with Apache OpenCmis 0.8 and OpenCmis Extension 0.4.

Thank you very much.
3 REPLIES 3

marcus81
Champ in-the-making
Champ in-the-making
Anyone?
At least, I would like to know if I can do it or not. With Apache CMIS Workbench I can read the custom types defined on alfresco, but how do I get, via CMIS, the mandatory aspects related to these types and their properties?
Thanks.

raoul
Champ in-the-making
Champ in-the-making
Hello,

there is a types collection url defined on your repository. If you browse it, it will return a down method you can use to get what you need.

That's what Apache CMIS Workbench is using.

To get the whole model at once, just add depth=-1&includePropertyDefinitions=true to the down url.

andy
Champ on-the-rise
Champ on-the-rise
Hi

CMIS 1.0 does not support aspects. The alfresco extensions expose then via policies.
This will change with CMIS 1.1.

In CMIS 1.1 the data model does not include the concept of mandatory aspects for a type.

You can scan through all the types and aspects (via policies) and get their properties.

Andy