我有一个存储库,通过 alfresco 网站,我可以在存储库中创建文件夹时设置名称、标题和描述。
但是,如果我尝试通过 opencmis java 创建相同的内容,我会收到错误消息“Property 'cmis:title' 对于这种类型或次要类型之一无效!”
这是我的代码:
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);
我也尝试过“cm:description”,但这也不起作用。
在 Alfresco 中创建新文件夹时如何设置标题和描述?