I have a repository, and through the alfresco website, I can set the name, title, and description when I create a folder in a repository.
However, if I try to create the same via opencmis java, I get the error "Property 'cmis:title' is not valid for this type or one of the secondary types!"
Here is my code:
Map<String, String> newFolderProps = new HashMap<String, String>();
newFolderProps.put(PropertyIds.NAME, "this is my new folder");
newFolderProps.put("cmis:description", "this is my description"); //this doesn't work.
newFolderProps.put("cmis:title", "this is my title"); //this doesn't work.
//I also tried this too:
newFolderProps.put(PropertyIds.DESCRIPTION, "this is my description"); //this doesn't work either.
newFolderProps.put(PropertyIds.OBJECT_TYPE_ID, "cmis:folder"); //this works!
Folder newFolderObject=rootfolder.createFolder(newFolderProps);
I also tried "cm:description" but that doesn't work either.
How do I set the title and description when creating a new folder in Alfresco?