OCEツールキットのcontrol-contentコマンドを使用すると、コンテンツ・アイテムをOracle Content Managementサーバーのチャネルに追加できます。
control-content <action>コマンドには、コンテンツ・アイテムをOracle Content Managementチャネルに追加するためのaddというアクションがあります:
cec control-content add -c Channel1 -r Repo1 -s UAT
このコマンドは、リポジトリRepo1内のすべてのアイテムを登録済サーバーのUAT上のチャネルChannel1に追加します。
サーバーを-s <server>で指定することも、cec.propertiesファイルで指定されたサーバーを使用することもできます。
content-usageコマンドの有効なアクションは次のとおりです。
publishunpublishaddremovecontent-usageコマンドのオプションは次のとおりです。
--channel, -c Channel [必須]--repository, -r Repository [<action>がaddの場合必須]--server, -s 登録されたOracle Content Managementサーバー--help, -h ヘルプを表示します[boolean]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