I am trying to add the secondary properties (title,description) programmatically to a document in Alfresco using CMIS 1.1.Below is the code snippet of the same.
properties.put("cm:title", "test title");
properties.put("cm:description", "description of document");
The mentioned code results in successful upload of the document to the Alfresco site without any issues,but the title and description properties of the uploaded document were empty while checking in Alfresco UI.
Also I try setting the tags to a document as well.Tags were also empty while viewing the document in alfresco site.Below is the code snippet
document = parentFolder.createDocument(properties, contentStream, null);
AlfrescoDocument alfDoc = (AlfrescoDocument) document;
Map<String, Object> properties1 = new HashMap<String, Object>();
List<String> tags = new ArrayList<String>();
Kindly help me know what is wrong with the code.Thanks in advance.