1

我目前正在进行一个涉及 OpenText Content Server 10.5 SP1 更新 2015-03 的项目。

我试图找出是否可以使用 Java SOAP Web 服务或 REST 通过一次调用从系统类别卷中获取所有类别。

在 Web 服务方面,我发现了 DocumentManagement WSDL 公开的几个方法GetCategoryDefinitionGetCategoryDefinitions它们需要 categoryID 作为参数。

在 REST 方面,我设法获得了对类别的访问权限,但经过相当长的旅程:

  1. call tootcs/cs.exe?func=search.GetCategoryVolume给出后续调用的 URL 作为响应
  2. call tootcs/cs.exe?func=ll&ObjID=2005&objAction=XMLExport&scope=1给出系统类别卷的 ID 以及类别 ID
  3. call tootcs/cs.exe?func=ll&ObjID=21361&objAction=XMLExport&scope=1提供有关该类别的所需信息。

我希望有一个电话返回有关我需要的类别的所有信息。

有可能实现吗?

4

2 回答 2

2

这是可能的。

你需要做什么:

1.) 查找类别的所有 ID,您需要定义

2.) 打电话DocumentManagementWS.getCategoryDefinitions(IDs)

例子

在我的项目中,我们将所有类别存储在文件夹中,而不是存储在内容服务器的 CategoryVolume 中。

// INFO: variable dm is an instance of the documentManagement-Webservice

// 1.) read the folder of the Categories
Node categoryRoot = dm.getNodeByPath(configRoot.getID(), Arrays.asList("Categories"));

// 2.) find all Ids of the categories
List<Node> categories = dm.listNodes(categoryRoot.getID(), false);

if (categories != null) {
    for (Node category : categories) {
        if (category.getType().equals("Category")) {
            categoryIds.add(category.getID());
        }
    }
}

// 3.) Read all defintitions of the categories
List<AttributeGroupDefinition> categoryDefinitions = dm.getCategoryDefinitions(categoryIds);
于 2015-10-01T16:47:52.880 回答
1

也许不完全是面向程序的,但你知道处理程序“ cs.exe?func=attributes.dump”?这是您所要求的 UI 版本。

于 2015-12-18T20:44:53.960 回答