我使用jdeveloper創建了一個函數,用於使用RIDC服務更新UCM中的某個屬性COLLECTION,在這種情況下,我想更新xcoverURL,這是一個自定義屬性,在調用時我需要幾個參數此功能(參數包括:字符串collection_id,字符串集合名稱,字符串cover_id,字符串cover_url),這裏是我的代碼使用RIDC服務更新oracle UCM中的集合
public void updateAlbumCover(String collection_id, String collection_name, String cover_id, String cover_url){
String didFolder = null;
try {
DataBinder binder = this.idcClient.createBinder();
binder.putLocal("IdcService", "COLLECTION_UPDATE");
binder.putLocal("dCollectionId", collection_id);
binder.putLocal("dCollectionName", collection_name);
binder.putLocal("hasParentCollectionID", "true");
binder.putLocal("dParentCollectionID", ROOT_FOLDER);
binder.putLocal("dCollectionOwner", USERNAME);
binder.putLocal("dSecurityGroup", "public");
binder.putLocal("xCoverURL", cover_url);
binder.putLocal("xCoverId", cover_id);
ServiceResponse response;
response = this.idcClient.sendRequest(this.userContext, binder);
DataBinder dataBinderResp;
dataBinderResp = response.getResponseAsBinder();
didFolder = dataBinderResp.getLocal("dCollectionID").toString();
} catch (IdcClientException e) {
e.printStackTrace();
}
}
我有問題,當調用此函數,我總是得到錯誤
'oracle.stellent.ridc.protocol.ServiceExc eption:無法更新 虛擬文件夾。無法打開文件夾。'