請使用 OCE 工具程式命令將分類從本機機器匯入 Oracle Content Management 伺服器,或從伺服器匯出至本機機器。
cec download-taxonomy <name>
命令會從 Oracle Content Management 匯出分類。它會從 Oracle Content Management 伺服器下載分類。
您可以在此命令中使用下列選項:
--status, -t [promoted | published] [required]
:指定分類狀態。--id, -i
:若其他分類有相同的名稱,請指定分類 ID。--server, -s
:指定已註冊的 Oracle Content Management 伺服器,或使用在 cec.properties
檔案中指定的伺服器。以下是一些 download-taxonomy
命令的範例:
cec download-taxonomy Taxonomy1 -t promoted cec download-taxonomy Taxonomy1 -i 6A6DC736572C468B90F2A1C17B7CE5E4 -t promoted cec download-taxonomy Taxonomy1 -t published -s UAT
cec upload-taxonomy <taxonomy>
命令會將分類匯入 Oracle Content Management。它會將分類上傳到 Oracle Content Management 伺服器。
您可以在此命令中使用下列選項:
--createnew, -c
:建立一個新分類。--name, -n
:指定新分類的名稱。--abbreviation, -a
:指定新分類的縮寫。--description, -d
:指定新分類的描述。--file, -f
:指示該分類是否來自檔案。--server, -s
:指定已註冊的 Oracle Content Management 伺服器,或使用在 cec.properties
檔案中指定的伺服器。--T2P
:檢查目標 Oracle Content Management 執行處理上是否有相同 ID 的資產或分類存在。若為是,則會將資產新增為新版本,並將分類作為草稿 (覆寫現有草稿)。否則,系統會建立相同 ID 的新資產或分類。--New
:一律在目標 Oracle Content Management 執行處理上建立新的資產或分類。--help, -h
:顯示命令的說明。以下是一些 upload-taxonomy 命令的範例:
cec upload-taxonomy Taxonomy1 Create a new taxonomy or a draft of an existing taxonomy on upload cec upload-taxonomy Taxonomy1 -s UAT Create a new taxonomy or a draft of an existing taxonomy on upload on the registered server UAT cec upload-taxonomy Taxonomy1 -c Create a new taxonomy on upload cec upload-taxonomy Taxonomy1 -c -n Taxonomy1_2 -a t12 -d Create a new taxonomy on upload with the given name, abbreviation "Taxonomy1 copy" and description cec upload-taxonomy Create a new taxonomy or a draft of an existing taxonomy in <file-name>.json -f and upload the JSON file
您可以使用 OCE 工具程式從測試環境移轉到生產環境 CLI 公用程式,從來源 Oracle Content Management 伺服器將資產、內容模型及其相依項一起自動匯入或匯出至目標 Oracle Content Management 伺服器。
管理者或內容管理員可以從測試環境移轉到生產環境中使用 OCE 工具程式命令匯入或匯出分類。有了管理者權限,您可以新增分類的草稿。有了內容管理員權限,您可以建立新的分類。
分類生命週期作業 (例如升級、指定給儲存區域及發布分類),可供從測試環境移轉到生產環境使用。您可以將資產、分類資訊及分類一起匯入至匯入檔,您也可以從匯出檔將資產、分類資訊和分類一起匯出。