我正嘗試使用apache-chemistry在Alfresco中創建文檔的快捷方式或鏈接。使用下面的代碼,我想創建鏈接或快捷方式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);
現在的問題是,我能夠從上面的代碼創建鏈接,但每當我點擊鏈接它顯示我
該項目不能找到。您沒有權限查看該項目,該項目已被刪除或從未存在。
你想獲得一個'文件「或」文件夾「? –
就像一個建議,你可以激勵人們幫助你投票它只是一個暗示 –
thanx的迴應,我使用文件 – deen