[Jetspeed-japan-trans] [52] Update translate

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 8月 6日 (水) 17:22:57 JST


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 @@
 ]]>
 </source>	
 			</subsection>
-			<subsection name='Persisting State: The Portlet Session'>
+			<subsection name='[Persisting State: The Portlet Session] 状態の持続:ポートレットセッション'>
+                        <div class="original">
 			<p>The Portlet API provides built-in support for persistence of Portlet state in the session.
 			The Portlet Session is similar to the <b>setTemp</b> 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:			
 			</p>
+                        </div>
+                        <p>
+                          ポートレット API は,セッションへのポートレットの状態の保存を標準でサポートしています.ポートレットセッションは,Turbine/Jetspeed 1 の <b>setTemp</b> メソッド,もしくはサーブレット API に備わっているセッションのサポートと同様のものです.セッションは,現在のユーザのセッションと関係した持続的な状態です.ポートレット API によってサポートされる 2 種類のセッションの状態があります.
+                        </p>
+                        <div class="original">
 			<ul>
 			<li>Application Session State: the session variable is shared by all portlets in a portlet application</li>
 			<li>Portlet Session State: the session variable is specific to the one portlet instance window</li>
 			</ul>
+                        </div>
+			<ul>
+			<li>アプリケーションセッション: ポートレットアプリケーション内の全てのポートレットが共有するセッション変数</li>
+			<li>ポートレットセッション: 一つのポートレットウィンドウ特有のセッション変数</li>
+			</ul>
+                        <div class="original">
 			<p>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:</p>
+                        </div>
+                        <p>
+                          Jetspeed 1 で Turbine RunData API を使って,どのようにセッション変数を取得し,設定するかを以下に示します.Jetspeed 1 でも Jetspeed 2 でも,セッションに格納するオブジェクトはシリアライズしなければいけないことに注意してください.
+                        </p>
+<div class="original">
 <source>
 <![CDATA[			
              rundata.getUser().setTemp(ACCOUNT_INFO, accountInfo);
@@ -1049,7 +1066,19 @@
              AccountInfo accountInfo = (AccountInfo)rundata.getUser().getTemp(ACCOUNT_INFO);
 ]]>
 </source>	
+</div>
+<source>
+<![CDATA[			
+             rundata.getUser().setTemp(ACCOUNT_INFO, accountInfo);
+             ...
+             AccountInfo accountInfo = (AccountInfo)rundata.getUser().getTemp(ACCOUNT_INFO);
+]]>
+</source>	
+                        <div class="original">
 			<p>In here is the equivalent in Jetspeed-2 using the Portlet API:</p>
+                        </div>
+                        <p>Jetspeed 2 で,ポートレット API を使って同等の事をする例を以下に示します.</p>
+<div class="original">
 <source>
 <![CDATA[	
         AccountInfo accountInfo = (AccountInfo)
@@ -1064,7 +1093,23 @@
 		-- or --
 		session.setAttribute(ACCOUNT_INFO, accountInfo, PortletSession.APPLICATION_SCOPE);		
 ]]>
-</source>				
+</source>		
+</div>		
+<source>
+<![CDATA[	
+        AccountInfo accountInfo = (AccountInfo)
+        	actionRequest.getPortletSession().getAttribute(ACCOUNT_INFO, PortletSession.PORTLET_SCOPE);
+        -- or --
+        AccountInfo accountInfo = (AccountInfo)        
+	        actionRequest.getPortletSession().getAttribute(ACCOUNT_INFO, PortletSession.APPLICATION_SCOPE);        
+		
+		-- the setters --
+		PortletSession session = actionRequest.getPortletSession();
+		session.setAttribute(ACCOUNT_INFO, accountInfo, PortletSession.PORTLET_SCOPE);
+		-- or --
+		session.setAttribute(ACCOUNT_INFO, accountInfo, PortletSession.APPLICATION_SCOPE);		
+]]>
+</source>		
 			</subsection>
 			<subsection name='Persisting State: User Preferences'>
 			<p>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.


Jetspeed-japan-trans メーリングリストの案内
Back to archive index