콘텐츠 항목을 채널에 추가

OCE Toolkit 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 도움말 표시 [부울]

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