匯入及匯出建議

使用 OCE 工具程式命令將建議從 Oracle Content Management 伺服器匯入本機機器,或從本機機器匯出至伺服器。

cec download-recommendation <name> 命令會從 Oracle Content Management 匯出建議。此命令會從 Oracle Content Management 伺服器下載建議。

您可以在此命令中使用下列選項:

  • --status, -t [promoted | published] [required]:指定建議狀態。
  • --id, -i:如果其他建議有相同名稱,則指定建議 ID。
  • --server, -s:指定已註冊的 Oracle Content Management 伺服器,或使用在 cec.properties 檔案中指定的伺服器。
  • --help, -h:顯示命令的說明。

以下是一些 download-recommendation 命令的範例:

cec download-recommendation Recommendation1 -t promoted

  cec download-recommendation Recommendation1 -i 6A6DE836572C468B90F2A1C17B7CE5E4 -t promoted

  cec download-recommendation recommendation -t published -s UAT

cec download-recommendation <name> 命令會將建議匯入 Oracle Content Management。此命令會將建議上傳到 Oracle Content Management 伺服器。

您可以在此命令中使用下列選項:

  • --createnew, -c:建立新建議。
  • --name, -n:指定新建議的名稱。
  • --abbreviation, -a:為新建議指定縮寫。
  • --description, -d:指定新建議的描述。
  • --file, -f:表示建議是否來自檔案。
  • --server, -s:指定已註冊的 Oracle Content Management 伺服器,或使用在 cec.properties 檔案中指定的伺服器。
  • --help, -h:顯示命令的說明。

以下是一些 upload-recommendation 命令的範例:

cec upload-recommendation Recommendation1
Create a new recommendation or a draft of an existing recommendation on upload  

cec upload-recommendation Recommendation1 -s UAT 
Create a new recommendation or a draft of an existing recommendation on upload on the registered server UAT

cec upload-recommendation Recommendation1 -c                                  
Create a new recommendation on upload

cec upload-recommendation Recommendation1 -c -n Recommendation 1_2 -a t12 -d          
Create a new recommendation on upload with the given name, abbreviation

"Recommendation1 copy" and description cec upload-recommendation          
Create a new recommendation or a draft of an existing recommendation in <file-name>.json -f and upload the JSON file