機械翻訳について

カスタム・コンポーネントの開発

cecコマンドライン・ユーティリティを使用して、新しいコンポーネントを作成し、コンポーネントをローカルに開発し、コンポーネントをOracle Content Managementにエクスポートします。

コンポーネントの作成

カスタム・コンポーネントをローカルで作成および開発するには、次のコマンドを使用します:

cec create-component <component-name> -f <source>

sourceには、次のいずれかの値を選択します:

  • JET-CCA-Demo-Card
  • local

  • local-iframe

  • Sample-Facebook-Share

  • Sample-News-API

  • Sample-Stocks-Embedded

  • Sample-To-Do

  • Sample-Text-With-Image

  • Sample-Weather-Embedded

  • Sample-Folder-List

  • Sample-File-List

  • Sample-Documents-Manager

  • Sample-Process-Start-Form

  • Sample-Process-Task-List

  • Sample-Process-Task-Details

  • SimpleHTML

例:

cec create-component MyLocalComponent1 -f local

コンポーネントはgitリポジトリのcec-components/src/main/componentsの下に作成されます。

src/main/componentsディレクトリには、Sample-To-Doコンポーネントが設定されています。 作成したコンポーネントはすべてこのディレクトリに格納されます。

コンポーネントのコピー

Developer Cloud Serviceのコンポーネントは、cec copy-componentコマンドを使用してコピーできます:

cec copy-component <source> [<destination>]

このコマンドは、<source>という名前の既存のコンポーネントを<destination>にコピーします。

Oracle Content Managementへのコンポーネントのエクスポートまたはデプロイ

コンポーネントがローカル・サーバーで開発およびテストされたら、次のコマンドを使用してコンポーネントをエクスポートできます。 これで、コンポーネントのzipファイルが作成されます。 このコンポーネントzipをOracle Content Managementに手動でインポートできます。

cec export-component <component name>

または、次のコマンドを使用して、Developer Cloud ServiceからOracle Content Managementにコンポーネントを直接デプロイできます。

cec deploy <component name>

cec deployAllコマンドは、src/main/components内のすべてのコンポーネントをデプロイします。

Developer Cloud Serviceへのコンポーネントのインポート

Oracle Content ManagementサーバーからコンポーネントZIPファイルが作成されている場合は、そのファイルをDeveloper Cloud Serviceにインポートしてさらに開発できます。 次のコマンドを使用します。

cec import-component <location of the component zip file>

重要:

コンポーネントのソース・コードはsrc/main/componentsにあります。 src/main/components以外のファイルは、Oracle Content Managementローカル・サーバーの機能に必要なため、変更しないでください。