我使用 jdeveloper 创建了一个函数,用于使用 RIDC 服务更新 UCM 中的某些属性集合,在这种情况下,我想更新 xcoverURL 这是一个自定义属性,调用此函数时我需要几个参数(参数是:String collection_id,String collection_name,字符串cover_id,字符串cover_url),这是我的代码
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.ServiceException:无法更新虚拟文件夹。无法打开文件夹。