【问题标题】:Update COLLECTION in oracle UCM using RIDC service使用 RIDC 服务更新 oracle UCM 中的 COLLECTION
【发布时间】:2015-08-25 13:41:57
【问题描述】:

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

【问题讨论】:

    标签: oracle-adf jdeveloper oracle-ucm


    【解决方案1】:

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

    如果您尝试通过在 Web 浏览器中调用该服务来运行该服务,是否可行?

    【讨论】:

      【解决方案2】:

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

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

      【讨论】:

        猜你喜欢
        • 2020-06-01
        • 2013-02-02
        • 2018-03-10
        • 1970-01-01
        • 2013-11-25
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-12-20
        相关资源
        最近更新 更多