Cmis: get types and aspects dictionary

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2013 05:54 PM
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.
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.
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2013 06:37 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2013 11:53 AM
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.
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2013 04:09 PM
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
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
