Você pode usar o comando control-content
do Kit de Ferramentas do OCE para adicionar itens de conteúdo a um canal em um servidor do Oracle Content Management.
O comando control-content <action>
tem uma ação, add
, para adicionar itens de conteúdo a um canal do Oracle Content Management:
cec control-content add -c Channel1 -r Repo1 -s UAT
Esse comando adiciona todos os itens do repositório Repo1
ao canal Channel1
no UAT do servidor registrado.
Você pode especificar o servidor com -s <server>
ou usar o servidor especificado no arquivo cec.properties
.
Estas são as ações válidas para o comando content-usage
:
publish
unpublish
add
remove
Estas são as opções do comando content-usage
:
--channel, -c Channel
[obrigatório]--repository, -r Repository
[obrigatório quando <action>
é add
]--server, -s
O servidor do Oracle Content Management registrado--help, -h
Mostra a ajuda [booliano]Estes são exemplos do comando 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