cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Properties and CMIS

shiv
Champ on-the-rise
Champ on-the-rise
Hi

Im using CMIS in java  to create a content in alfresco repository and im successful in doing so.
The next thing im trying out is to set some custom properties to the content while creating a document, Can any one help me out on this what steps i need to carry out to achieve this. Can u please guide me to some documents, examples and tutorials.

Currently im using Open CMIS to upload the content without setting custom properties.
1 REPLY 1

aweber1nj
Champ in-the-making
Champ in-the-making
Set them just like any other properties.

Create a map (typically <String, Object> ), add properties by name – including their namespace – with their values to the map.

Finally, use cmisobject.updateProperties( ) to add/update the properties on the object.

Or, when you create the object initially, just add them to the initial createDocument or createFolder method call.

Maybe I'm not understanding the question, because if you're creating objects, you probably know this already.

-AJ