将内容项添加到通道

可以使用 OCE 工具包 control-content 命令将内容项添加到 Oracle Content Management 服务器中的通道。

control-content <action> 命令具有操作 add,用于将内容项添加到 Oracle Content Management 通道:

cec control-content add -c Channel1 -r Repo1 -s UAT

此命令将资料档案库 Repo1 中的所有项添加到已注册服务器 UAT 上的通道 Channel1

可以使用 -s <server> 指定服务器,也可以使用 cec.properties 文件中指定的服务器。

content-usage 命令的有效操作如下:

  • publish
  • unpublish
  • add
  • remove

content-usage 命令的选项如下:

  • --channel, -c Channel [必需]
  • --repository, -r Repository [<action>add 时,此项为必需]
  • --server, -s 注册的 Oracle Content Management 服务器
  • --help, -h 显示帮助 [布尔值]

control-content 命令的示例如下:

cec control-content publish -c Channel1

Publish all items in channel Channel1 on the server specified in the cec.properties file

cec control-content publish -c Channel1 -s UAT

Publish all items in channel Channel1 on the registered server UAT

cec control-content unpublish -c Channel1 -s UAT

Unpublish all items in channel Channel1 on the registered server UAT

cec control-content add -c Channel1 -r Repo1 -s UAT 

Add all items in repository Repo1 to channel Channel1 on the registered server UAT.

cec control-content remove -c Channel1 -s UAT

 Remove all items in channel Channel1 on the registered server UAT