เพิ่มรายการเนื้อหาในช่องทาง

คุณสามารถใช้คำสั่งของชุดเครื่องมือ OCE control-content เพื่อเพิ่มรายการเนื้อหาในช่องทางในเซิร์ฟเวอร์ Oracle Content Management ได้

คำสั่ง control-content <action> มีการดำเนินการ add สำหรับเพิ่มรายการเนื้อหาในช่องทางของ Oracle Content Management ดังนี้

cec control-content add -c Channel1 -r Repo1 -s UAT

คำสั่งนี้จะเพิ่มรายการทั้งหมดในพื้นที่เก็บข้อมูล Repo1 ในช่องทาง Channel1 บน UAT ของเซิร์ฟเวอร์ที่รีจิสเตอร์

คุณสามารถระบุเซิร์ฟเวอร์ด้วย -s <server> หรือใช้เซิร์ฟเวอร์ที่ระบุในไฟล์ cec.properties

การดำเนินการที่ใช้ได้สำหรับคำสั่ง content-usage ประกอบด้วย

  • publish
  • unpublish
  • add
  • remove

ตัวเลือกสำหรับคำสั่ง content-usage ประกอบด้วย

  • --channel, -c Channel [required]
  • --repository, -r Repository [required when <action> is 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