AnsweredAssumed Answered

How to set the title property on folders with CMIS ?

Question asked by bparis on Jul 28, 2016
Latest reply on Jul 31, 2016 by bparis
Hi there;
I use java APi to create folders in alfresco.
Folders are created in alfresco repository but I can't see the title neither the description on the created folders


            Folder destinationFolder = (Folder) session.getObjectByPath("/path/to/parent/folder");
            Map<String, Object>  properties = new HashMap<String, Object>();     
            properties.put(PropertyIds.BASE_TYPE_ID, BaseTypeId.CMIS_FOLDER.value());
            properties.put(PropertyIds.NAME, "folder name");
            properties.put(PropertyIds.OBJECT_TYPE_ID, "cmis:folder,P:cm:titled");           
            properties.put("cm:title", "My empty foldert");
            properties.put("cm:description", "My folder description";
           
            try {
                newFolder = destinationFolder.createFolder(properties);



The description is correctly set if I use
properties.put("cmis:description", "My folder description";


But now way for the title. Any help should be appreciated.
bernard

Outcomes