Quantcast
Channel: Alfresco Forums - Alfresco API
Viewing all articles
Browse latest Browse all 252

How to set the title property on folders with CMIS ?

$
0
0

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);
...<java> 
The description is correctly set if I use<java>properties.put("cmis:description", "My folder description";<java> 
But now way for the title. Any help should be appreciated.bernard
5.0.b


Viewing all articles
Browse latest Browse all 252

Trending Articles