From svnnotify @ sourceforge.jp Wed Aug 6 17:22:57 2008 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Wed, 06 Aug 2008 17:22:57 +0900 Subject: [Jetspeed-japan-trans] [52] Update translate Message-ID: <1218010977.417587.19056.nullmailer@users.sourceforge.jp> Revision: 52 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=jetspeed-japan&view=rev&rev=52 Author: karma Date: 2008-08-06 17:22:57 +0900 (Wed, 06 Aug 2008) Log Message: ----------- Update translate 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-07-31 12:21:30 UTC (rev 51) +++ jetspeed-2-trans/trunk/ja/xdocs/j1-migration.xml 2008-08-06 08:22:57 UTC (rev 52) @@ -1031,17 +1031,34 @@ ]]> - + +

The Portlet API provides built-in support for persistence of Portlet state in the session. The Portlet Session is similar to the setTemp methods in Turbine/Jetspeed-1, or the session support built into the Servlet API. The Session is for persisting state associated with the current user session. There are two kinds of session state supported by the Portlet API:

+
+

+ ポートレット API は,セッションへのポートレットの状態の保存を標準でサポートしています.ポートレットセッションは,Turbine/Jetspeed 1 の setTemp メソッド,もしくはサーブレット API に備わっているセッションのサポートと同様のものです.セッションは,現在のユーザのセッションと関係した持続的な状態です.ポートレット API によってサポートされる 2 種類のセッションの状態があります. +

+
  • Application Session State: the session variable is shared by all portlets in a portlet application
  • Portlet Session State: the session variable is specific to the one portlet instance window
+
+ +

Here is how we would get and set session information in Jetspeed-1, using the Turbine RunData API. Note that for both Jetspeed-1 and Jetspeed-2, the object put in the session must be serializable:

+
+

+ Jetspeed 1 で Turbine RunData API を使って,どのようにセッション変数を取得し,設定するかを以下に示します.Jetspeed 1 でも Jetspeed 2 でも,セッションに格納するオブジェクトはシリアライズしなければいけないことに注意してください. +

+
+
+ + + +

In here is the equivalent in Jetspeed-2 using the Portlet API:

+
+

Jetspeed 2 で,ポートレット API を使って同等の事をする例を以下に示します.

+
- + +
+ + +

The Portlet API provides a second persistence mechanism: User Preferences. User Preferences are fields of information stored on a per user/per portlet window basis. From svnnotify @ sourceforge.jp Thu Aug 7 16:58:04 2008 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Thu, 07 Aug 2008 16:58:04 +0900 Subject: [Jetspeed-japan-trans] [53] Update translate Message-ID: <1218095884.314552.3417.nullmailer@users.sourceforge.jp> Revision: 53 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=jetspeed-japan&view=rev&rev=53 Author: karma Date: 2008-08-07 16:58:04 +0900 (Thu, 07 Aug 2008) Log Message: ----------- Update translate 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-08-06 08:22:57 UTC (rev 52) +++ jetspeed-2-trans/trunk/ja/xdocs/j1-migration.xml 2008-08-07 07:58:04 UTC (rev 53) @@ -1031,7 +1031,7 @@ ]]> - +

The Portlet API provides built-in support for persistence of Portlet state in the session. The Portlet Session is similar to the setTemp methods in Turbine/Jetspeed-1, or the session support built into the Servlet API. @@ -1111,19 +1111,37 @@ ]]> - + +

The Portlet API provides a second persistence mechanism: User Preferences. User Preferences are fields of information stored on a per user/per portlet window basis. The equivalent in Jetspeed-1 is Portlet Instance data, which is stored in the Jetspeed-1 Portlet Registry as name/value pair parameter XML elements. Looking at the XREG file in Jetspeed-1, we have:

+
+

+ ポートレット API には,第 2 の状態保持メカニズムが準備されています.それはユーザ設定 (User Preferences) です.ユーザ設定は,ユーザ毎 / ポートレット毎に保存される情報欄です.Jetspeed 1 で同等のものは,ポートレットインスタンスデータです.これは,Jetspeed 1 ポートレットレジストリに,名前と値のペアでパラメータとして XML 要素として保存されます.Jetspeed 1 の XREG ファイルで,以下のようなものを見つけることが出来ます. +

+
]]> - + +
+ + +]]> + +

The Portlet API allows you to define default values for preferences in the portlet.xml deployment descriptor. The user-specific values are stored in the Jetspeed Preferences database. Here is an example of the default value for a preference as it would be defined in the deployment descriptor:

+
+

+ ポートレット API では,portlet.xml 配備記述子内で,設定のデフォルト値を定義できます.ユーザ固有の値は,Jetspeed 設定データベースに保存されます.以下に,配備記述子に定義される設定のデフォルト値の例を示します. +

+
@@ -1131,13 +1149,33 @@ Oakland ]]> - + +
+ + + weather_city + Oakland + +]]> + +

Jetspeed-1 provides the PortletInstance interface on every portlet for accessing preference-like information. Whereas the preference information is per-user and per-instance in Jetspeed-2, in Jetspeed-1 preference information accessed via the PortletInstance interface is only per-instance(per PortletWindow) specific. These values are stored in the PSML file associated with the PortletWindow. Please note that the values can still be user-specific when you are using the default mechanism for locating pages, which is by user. This means that in Jetspeed-1 preferences (or parameters) are made user-specific by the nature of how pages are retrieved. Since a page is located under a user home directory, then the preference is naturally per user.

+
+

+ Jetspeed 1 は,設定値情報にアクセスするために,ポートレットごとに PortletInstance インターフェースが準備されています.Jetspeed 2 では,設定情報はユーザごと,インスタンスごとであるのに対して,インターフェースの PortletInstance 経由でアクセスされる Jetspeed 1 の設定情報は,インスタンス (ポートレットウィンドウ) ごとに特有なだけとなります.これらの値は,ポートレットウィンドウに関連付けられた PSML ファイルに保存されます.ユーザがページを配置して,そのページに対してデフォルトのメカニズムを使ったとき,この値はユーザ特有であることに注意してください. +

+

With Jetspeed-1, here we can retrieve PortletInstance data:

+
+

+ Jetspeed 1 で,PortletInstance データを取得する方法を以下に示します. +

+
+
+ + + +

With the Portlet API in Jetspeed-2, we can use the Portlet Preferences in a more direct manner. Remember that the store() method must always be called after all modifications to the prefs during a request:

+
+

+ Jetspeed 2 のポートレット API では,ポートレット設定をもっと直接的な方法で使用できます. +

+
+
+ + +