0

我使用 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:无法更新虚拟文件夹。无法打开文件夹。

4

2 回答 2

0

在系统审计信息中,您可以打开收集*、文件夹* 和系统* 跟踪以获取更多信息。

如果您尝试通过在 Web 浏览器中调用它来运行此服务,那会起作用吗?

于 2015-07-05T19:46:40.650 回答
0

很可能是由于为文件夹或用于进行更新的用户名传递了不正确的参数。

实际上,您可以使用 Chrome 调试器了解从 UI 进行更新时传递的确切参数。在该调试器中,转到 Network 选项卡并清除日志,然后从 UI 提交更新更改。选择最顶部的请求,底部窗格将显示已传递的参数。

于 2015-08-25T05:41:57.737 回答