Create new type through CMIS

cancel
Showing results for 
Search instead for 
Did you mean: 
Ledu
Member II

Create new type through CMIS

Hey folks,

Forgive me if this is a newbie question as i am quite new to the ECM field. Namely, last few weeks i have been researching and planning on how to use CMIS and Alfresco to create repository layer with custom front-end solution (this is why i can't use Share directly for this purpose). Everything looked great until i tried creating custom object type and it's properties through CMIS (following this guide: https://chemistry.apache.org/java/examples/example-create-type.html ) where i encountered the following error:

Connected to repository.  Supports CMIS version:1.1
org.apache.chemistry.opencmis.commons.exceptions.CmisNotSupportedException: Not supported!
	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:501)
	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:717)
	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.createType(RepositoryServiceImpl.java:252)
	at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.createType(RepositoryServiceImpl.java:199)
	at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createType(SessionImpl.java:957)

I was using CMIS 1.1 browser binding. Alfresco repository is running in docker with following image: alfresco/alfresco-content-repository-community:6.1.2-gaIn repository info i did see that set of createable property types is empty.

So i wanted to ask if this is not possible to be done at all through CMIS, and if not, does anyone have any advice on how to achieve this through some other means, as not having custom types and appropriate properties leaves the system pretty empty without any custom metadata.

Thank you very much for taking the time to read this!

1 Reply
angelborroy
Alfresco Employee

Re: Create new type through CMIS

Alfresco CMIS does not support type creation.

You should use the internal tool...

https://docs.alfresco.com/community/tasks/admintools-custom-type-create.html

... or the XML based approach implementation

https://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html

Hyland Developer Evangelist