cancel
Showing results for 
Search instead for 
Did you mean: 

CMIS multiple streams when creating document

iblanco
Confirmed Champ
Confirmed Champ
I would like to be able to create a document in Alfresco using CMIS but with multiple contents uploaded at the same time, in the same transactional context, both or none. The main content stream would be a DWG file and the second stream would be a PDF rendition.

As stated in <a href="https://tools.oasis-open.org/issues/browse/CMIS-432">this feature request</a> it seems that CMIS does not yet allow multiple streams to be attached to a document. It does support renditions but AFAIK the CMIS rendition service is a "read only" service and when creating a content only a single Stream can be attached.

So I was wondering if it is possible at all assigning the second stream to a property of type "d:content". Does CMIS support it in any way ? And once assigned would it be possible to get the second stream back as a property ?

Once I have the content in a property I could probably transform it to be a rendition using a behaviour or a customized rendition engine.

Otherwise I'll have to zip both contents and upload them so that a behaviour unzips it in the transaction itself or something like that.


2 REPLIES 2

mrogers
Star Contributor
Star Contributor
The alfresco repository does support multiple properties of type d:content however its not well supported since a lot of interfaces assume there will only be a single content property with the name cm:content.

I doubt that CMIS will support a second stream.

nareshkonda
Champ in-the-making
Champ in-the-making

By Using CMIS we can Create Multiple Documents. But this Cannot be done in alfresco. The main content stream would be a DWG file and the second stream would be a PDF rendition. You can use data modeling technique for Creating multiple documents using CMIS.