svnno****@sourc*****
svnno****@sourc*****
2008年 6月 17日 (火) 16:23:38 JST
Revision: 45
http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=jetspeed-japan&view=rev&rev=45
Author: karma
Date: 2008-06-17 16:23:37 +0900 (Tue, 17 Jun 2008)
Log Message:
-----------
translate 1 section
Modified Paths:
--------------
jetspeed-2-trans/trunk/ja/xdocs/j1-migration.xml
-------------- next part --------------
Modified: jetspeed-2-trans/trunk/ja/xdocs/j1-migration.xml
===================================================================
--- jetspeed-2-trans/trunk/ja/xdocs/j1-migration.xml 2008-06-12 09:15:38 UTC (rev 44)
+++ jetspeed-2-trans/trunk/ja/xdocs/j1-migration.xml 2008-06-17 07:23:37 UTC (rev 45)
@@ -123,7 +123,8 @@
</tr>
</table>
</section>
- <section name="Portlet Applications">
+ <section name="[Portlet Applications] ポートレットアプリケーション">
+ <div class="original">
<p>One of the most important differences in writing Jetspeed-2/Portlet API portlets is that you must package your portlet code
separate from the Jetspeed portal. In Jetspeed-1, all the user code, the portlet business logic, is packaged in one big war file
mixed in with the Jetspeed-1 implementation. The Portlet API clearly abolishes this practice of mixing the portal implementation with
@@ -133,23 +134,50 @@
A portlet application is an extension of a web application. The portlet.xml holds the definitions of one or more portlets and is
analogous to the xreg files used in Jetspeed-1.
</p>
+ </div>
+ <p>Jetspeed 2 / ポートレット API を作成する際のもっとも重要な違いには,Jetspped ポータルからポートレットコードを分離しなければいけない,というものがあります.Jetspeed 1 では,全てのユーザーコード,ポートレットのビジネスロジックは Jetspeed 1 の実装と一緒に,一つの大きな war ファイルにパッケージされていました.ポートレット API は,このポータルの実装とポートレットが混ざりあっているのを,はっきりと廃止しました.Jetspeed 2 は,それ自身一つのウェブアプリケーションとしてパッケージされています.Jetspeed 2 のためのポートレットを開発する場合,あなたは自身のポートレットを開発し,それをパッケージングする必要があります.ポートレットのクラスと配備記述子は,ポートレットアプリケーションとして,一つの war ファイルの中に全てパッケージされていなければいけません.ポートレットアプリケーションは,配備記述子,portlet.xml と,一つまたはそれ以上のポートレットを含みます.ポートレットアプリケーションは,ウェブアプリケーションの拡張です.portlet.xml は,一つ以上のポートレットの定義を保持します.portlet.xml は,Jetspeed 1 で使われた xreg ファイルに似ています.
+ </p>
</section>
- <section name="Java Code">
+ <section name="[Java Code] Java コード">
+ <div class="original">
<p>In this section we demonstrate how to convert a Jetspeed-1 portlet to a JSR-168 Java Standard Portlet.
This involves the following steps:
</p>
+ </div>
+ <p>
+ この節では,どのように Jetspeed 1 ポートレットから JSR-168 Java 標準のポートレットへの変換を行うのかを,実際に示してみます.以下のようなステップが必要となります.
+ </p>
+ <div class="original">
<ul>
<li>Converting the Portlet Init Java Code</li>
<li>Converting the Portlet getContent Java Code</li>
<li>Converting a Turbine Action</li>
</ul>
+ </div>
+ <ul>
+ <li>ポートレットの初期化の Java コードの変換</li>
+ <li>ポートレットの getContent Java コードの変換</li>
+ <li>Turbine アクションの変換</li>
+ </ul>
+ <div class="original">
<p>
Jetspeed-1 portlet implementations are normally separated between two different Java source files.
</p>
+ </div>
+ <p>
+ Jetspeed 1 のポートレットの実装は,普通,2 つの異なる Java ソースファイルに分かれています.
+ </p>
+ <div class="original">
<ul>
<li>The Portlet Source Code</li>
<li>The Turbine Action Source Code</li>
</ul>
+ </div>
+ <ul>
+ <li>ポートレットのソースコード</li>
+ <li>Turbine のアクションソースコード</li>
+ </ul>
+ <div class="original">
<p>
The Portlet Source Code handles the <b>View</b> part of the MVC pattern. The <b>getContent</b> method
is the standard method in Jetspeed-1 to call to render the content of a portlet. The corresponding methods
@@ -158,9 +186,18 @@
should not perform any business logic or other manipulation on the <b>Model</b>. All model manipulation
should be left to the <b>action phase</b>
</p>
+ </div>
+ <p>
+ ポートレットのソースコードは,MVC パターンの <b>View</b> 部分を処理します.<b>getContent</b> メソッドは,ポートレットのコンテンツを描画するために呼ばれる,Jetspeed 1 の標準メソッドです.Jetspeed 2 とポートレット API において,これと一致するメソッドは <b>doView, doEdit, doHelp</b> です.ポートレット API の用語で,ポートレットの処理のこのフェーズは,<b>描画フェーズ (render phase)</b> として知られています.描画フェーズの間,ポートレットは,いかなるビジネスロジックや<b>モデル</b>の他の操作を行うべきではありません.全てのモデル操作は,<b>アクションフェーズ</b>に委ねるべきです.
+ </p>
+ <div class="original">
<p>The Turbine Action performs the <b>action phase</b> of the portlet processing. During the action phase of the Portlet API standard,
rendering of all other portlets is blocked until the action completes. This is also true in the Jetspeed-1/Turbine model.
</p>
+ </div>
+ <p>
+ Turbine アクションは,ポートレット処理の<b>アクションフェーズ</b>を実行します.ポートレット API 標準のアクションフェーズの間,他の全てのポートレットの描画は,アクションが終わるまで遮断されます.これは Jetspeed 1/Turbine モデルでも同様です.
+ </p>
<subsection name='Creating a new Portlet Class'>
<p>The best place to get started in migrated your portlet is to create a new JSR-168 standard portlet.
Simply create a new Java class inheriting from the GenericPortlet interface provided by the Portlet API.