新增內容項目至通道

您可以使用 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 通道 [必要]
  • --repository, -r 儲存區域 [<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