我正在尝试使用 apache-chemistry 在 Alfresco 中创建文档的快捷方式或链接。使用下面的代码我正在尝试创建链接或快捷方式
properties = new HashMap<String, Object>();
properties.put(PropertyIds.BASE_TYPE_ID, BaseTypeId.CMIS_ITEM.value());
// define a name and a description for the link
properties.put(PropertyIds.NAME, "Name_for_the.link");
properties.put("cmis:description", "test create link");
properties.put(PropertyIds.OBJECT_TYPE_ID, "I:app:filelink");
//define the destination node reference
properties.put("cm:destination", "workspace://SpacesStore/41f43936-31c1-432e-bb33-438c05bcb26c");
// choose a folder where the link is to be create
Folder destinationFolder = (Folder) session.getObjectByPath("/path/to/the/destination/folder");
session.createItem(properties, destinationFolder);
现在的问题是我可以从上面的代码创建链接,但是每当我点击链接时,它就会显示给我
找不到该项目。要么您没有查看该项目的权限,要么它已被删除,要么它从未存在过。