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
コマンドの有効なアクションは次のとおりです。
publish
unpublish
add
remove
content-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