使用 OCE 工具包命令,可以将分类从本地计算机导入到 Oracle Content Management 服务器,或者将分类从服务器导出到本地计算机。
cec download-taxonomy <name>
命令从 Oracle Content Management 导出分类。它从 Oracle Content Management 服务器下载分类。
您可以在此命令中使用以下选项:
--status, -t [promoted | published] [required]
:指定分类状态。--id, -i
:如果其他分类具有相同名称,则指定分类 ID。--server, -s
:指定注册的 Oracle Content Management 服务器,或者使用在 cec.properties
文件中指定的服务器。download-taxonomy
命令的一些示例如下:
cec download-taxonomy Taxonomy1 -t promoted cec download-taxonomy Taxonomy1 -i 6A6DC736572C468B90F2A1C17B7CE5E4 -t promoted cec download-taxonomy Taxonomy1 -t published -s UAT
cec upload-taxonomy <taxonomy>
命令将分类导入到 Oracle Content Management。它将分类上载到 Oracle Content Management 服务器。
您可以在此命令中使用以下选项:
--createnew, -c
:创建新分类。--name, -n
:指定新分类的名称。--abbreviation, -a
:指定新分类的缩写。--description, -d
:指定新分类的说明。--file, -f
:指示分类是否来自文件。--server, -s
:指定注册的 Oracle Content Management 服务器,或者使用在 cec.properties
文件中指定的服务器。--T2P
:检查目标 Oracle Content Management 实例上是否存在 ID 相同的资产或分类。如果为 true,资产将添加为新版本,分类将添加为草稿(覆盖现有草稿)。否则,将使用相同 ID 创建新资产或分类。--New
:始终在目标 Oracle Content Management 实例上创建新资产或分类。--help, -h
:显示命令的帮助。upload-taxonomy 命令的一些示例如下:
cec upload-taxonomy Taxonomy1 Create a new taxonomy or a draft of an existing taxonomy on upload cec upload-taxonomy Taxonomy1 -s UAT Create a new taxonomy or a draft of an existing taxonomy on upload on the registered server UAT cec upload-taxonomy Taxonomy1 -c Create a new taxonomy on upload cec upload-taxonomy Taxonomy1 -c -n Taxonomy1_2 -a t12 -d Create a new taxonomy on upload with the given name, abbreviation "Taxonomy1 copy" and description cec upload-taxonomy Create a new taxonomy or a draft of an existing taxonomy in <file-name>.json -f and upload the JSON file
可以使用 OCE 工具包测试到生产 CLI 实用程序,来自动将资产与内容模型及其相关项一起从源 Oracle Content Management 服务器导入或导出到目标 Oracle Content Management 服务器。
管理者或内容管理员可以在测试到生产环境中使用 OCE 工具包命令导入或导出分类。使用管理者权限,可以添加分类的草稿。使用内容管理员权限,可以创建新分类。
分类生命周期操作(例如提升分类、分配到资料档案库和发布分类)可用于测试到生产。可以将资产以及类别信息和分类一起导入到一个导入文件中,也可以从一个导出文件一起导出资产以及类别信息和分类。