如何使用内容管理互操作性服务api在露天制作sub_folder,我能够在露天创建文件夹,但我想在这个文件夹中创建子文件夹但是,不知道如何做到这一点,所以请帮助我。 .thankyou提前
这是我创建文件夹的方法:
public void folder(){
//here creating sub folder inside cmis parentfolder
Map<String, Object> folderProperties = new HashMap<String, Object>();
folderProperties.put(PropertyIds.OBJECT_TYPE_ID, "cmis:folder");
folderProperties.put(PropertyIds.NAME, "fotball_8");
CmisObject newFolder1 =lSession.getObjectByPath(rootFolder.getPath()+ "/" + "fotball_9");
Folder newFolder = rootFolder.createFolder(folderProperties);
LOGGER.info("Your folder is created:"+folderProperties);
//now checking that Folder is created or not
ItemIterable<CmisObject> children = rootFolder.getChildren();
LOGGER.info("Now finding the following objects in the root folder:-");
for (CmisObject o : children) {
LOGGER.info(o.getName());
}
答案 0 :(得分:1)
更改为以下代码。
CmisObject newFolder1 =lSession.getObjectByPath(rootFolder.getPath()+ "/" + "fotball_9");
Folder newFolder = newFolder1.createFolder(folderProperties);
您正在使用rootFolder调用create folder,现在需要使用newFolder1
调用它