Używając polecenia control-content z zestawu OCE Toolkit, można dodawać elementy zawartości do kanału w serwerze Oracle Content Management.
Polecenie control-content <czynność> zawiera czynność add dodającą elementy zawartości do kanału Oracle Content Management:
cec control-content add -c Channel1 -r Repo1 -s UAT
Polecenie to dodaje wszystkie elementy z repozytorium Repo1 do kanału Channel1 w zarejestrowanym serwerze "UAT".
Można określić serwer za pomocą opcji -s <serwer> lub użyć serwera określonego w pliku cec.properties.
W poleceniu content-usage można użyć następujących czynności:
publishunpublishaddremoveDostępne są następujące polecenia content-usage:
--channel, -c kanał [wymagane]--repository, -r repozytorium [wymagane, gdy <czynność> to add]--server, -s zarejestrowany serwer Oracle Content Management--help, -h wyświetlenie pomocy [wartość logiczna]Przykłady polecenia 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