From svnnotify @ sourceforge.jp Tue May 1 07:01:35 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 1 May 2007 07:01:35 +0900 Subject: [pal-cvs 2353] [87] used PagerCondition of s2dao. Message-ID: <20070430220135.DC15F2AC07F@users.sourceforge.jp> Revision: 87 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=87 Author: shinsuke Date: 2007-05-01 07:01:35 +0900 (Tue, 01 May 2007) Log Message: ----------- used PagerCondition of s2dao. removed Pager interface. Modified Paths: -------------- libraries/common-utils/trunk/.classpath libraries/common-utils/trunk/pom.xml libraries/common-utils/trunk/src/main/java/jp/sf/pal/common/pager/DefaultPager.java libraries/common-utils/trunk/src/main/java/jp/sf/pal/common/util/PagerUtil.java Removed Paths: ------------- libraries/common-utils/trunk/src/main/java/jp/sf/pal/common/pager/Pager.java -------------- next part -------------- Modified: libraries/common-utils/trunk/.classpath =================================================================== --- libraries/common-utils/trunk/.classpath 2007-04-26 09:03:38 UTC (rev 86) +++ libraries/common-utils/trunk/.classpath 2007-04-30 22:01:35 UTC (rev 87) @@ -4,8 +4,8 @@ + - @@ -14,8 +14,9 @@ + + - - + \ No newline at end of file Modified: libraries/common-utils/trunk/pom.xml =================================================================== --- libraries/common-utils/trunk/pom.xml 2007-04-26 09:03:38 UTC (rev 86) +++ libraries/common-utils/trunk/pom.xml 2007-04-30 22:01:35 UTC (rev 87) @@ -88,6 +88,11 @@ Maven2 Repository on marevol.com http://www.marevol.com/maven2 + + maven.seasar.org + The Seasar Foundation Maven2 Repository + http://maven.seasar.org/maven2 + @@ -148,5 +153,11 @@ 1.0.6 provided + + org.seasar.dao + s2-dao + 1.0.42 + provided + Modified: libraries/common-utils/trunk/src/main/java/jp/sf/pal/common/pager/DefaultPager.java =================================================================== --- libraries/common-utils/trunk/src/main/java/jp/sf/pal/common/pager/DefaultPager.java 2007-04-26 09:03:38 UTC (rev 86) +++ libraries/common-utils/trunk/src/main/java/jp/sf/pal/common/pager/DefaultPager.java 2007-04-30 22:01:35 UTC (rev 87) @@ -16,7 +16,9 @@ */ package jp.sf.pal.common.pager; -public class DefaultPager implements Pager { +import org.seasar.dao.pager.PagerCondition; + +public class DefaultPager implements PagerCondition { public static int DEFAULT_PAGER_LIMIT_SIZE = 25; private int offset; Deleted: libraries/common-utils/trunk/src/main/java/jp/sf/pal/common/pager/Pager.java =================================================================== --- libraries/common-utils/trunk/src/main/java/jp/sf/pal/common/pager/Pager.java 2007-04-26 09:03:38 UTC (rev 86) +++ libraries/common-utils/trunk/src/main/java/jp/sf/pal/common/pager/Pager.java 2007-04-30 22:01:35 UTC (rev 87) @@ -1,54 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package jp.sf.pal.common.pager; - -public interface Pager { - - /** - * @return the limit - */ - public abstract int getLimit(); - - /** - * @param limit - * the limit to set - */ - public abstract void setLimit(int limit); - - /** - * @return the count - */ - public abstract int getCount(); - - /** - * @param count - * the count to set - */ - public abstract void setCount(int count); - - /** - * @return the offset - */ - public abstract int getOffset(); - - /** - * @param offset - * the offset to set - */ - public abstract void setOffset(int offset); - -} \ No newline at end of file Modified: libraries/common-utils/trunk/src/main/java/jp/sf/pal/common/util/PagerUtil.java =================================================================== --- libraries/common-utils/trunk/src/main/java/jp/sf/pal/common/util/PagerUtil.java 2007-04-26 09:03:38 UTC (rev 86) +++ libraries/common-utils/trunk/src/main/java/jp/sf/pal/common/util/PagerUtil.java 2007-04-30 22:01:35 UTC (rev 87) @@ -22,8 +22,9 @@ import jp.sf.pal.common.web.PagerPage; import jp.sf.pal.common.web.TwoPagerPage; -import jp.sf.pal.common.pager.Pager; +import org.seasar.dao.pager.PagerCondition; + public class PagerUtil { /** * @return the facesContext @@ -32,7 +33,7 @@ return FacesContext.getCurrentInstance(); } - public static void updatePageNumber(Pager pager, String prevKey, + public static void updatePageNumber(PagerCondition pager, String prevKey, String nextKey) { Map requestMap = getFacesContext().getExternalContext() .getRequestParameterMap(); @@ -52,7 +53,7 @@ } } - public static void updatePagerPage(PagerPage page, Pager pager) { + public static void updatePagerPage(PagerPage page, PagerCondition pager) { // update page page.setCount(new Integer(pager.getCount())); page.setMaxPageNumber(new Integer((pager.getCount() - 1) @@ -74,8 +75,8 @@ } } - public static void updatePagerPage(TwoPagerPage page, Pager pager1, - Pager pager2) { + public static void updatePagerPage(TwoPagerPage page, PagerCondition pager1, + PagerCondition pager2) { // update page page.setCount1(new Integer(pager1.getCount())); page.setMaxPageNumber1(new Integer((pager1.getCount() - 1) From svnnotify @ sourceforge.jp Thu May 3 07:24:44 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Thu, 3 May 2007 07:24:44 +0900 Subject: [pal-cvs 2354] [88] added javamail. Message-ID: <20070502222444.971442AC00F@users.sourceforge.jp> Revision: 88 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=88 Author: shinsuke Date: 2007-05-03 07:24:44 +0900 (Thu, 03 May 2007) Log Message: ----------- added javamail. Modified Paths: -------------- pal-wcm/trunk/pom.xml -------------- next part -------------- Modified: pal-wcm/trunk/pom.xml =================================================================== --- pal-wcm/trunk/pom.xml 2007-04-30 22:01:35 UTC (rev 87) +++ pal-wcm/trunk/pom.xml 2007-05-02 22:24:44 UTC (rev 88) @@ -175,6 +175,11 @@ 1.2.13 jar + + javax.mail + mail + 1.4 + org.apache.portals.jetspeed-2 From svnnotify @ sourceforge.jp Thu May 3 07:25:43 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Thu, 3 May 2007 07:25:43 +0900 Subject: [pal-cvs 2355] [89] updated license template. Message-ID: <20070502222543.536972AC00F@users.sourceforge.jp> Revision: 89 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=89 Author: shinsuke Date: 2007-05-03 07:25:43 +0900 (Thu, 03 May 2007) Log Message: ----------- updated license template. Modified Paths: -------------- pal-wcm/trunk/.settings/org.eclipse.jdt.ui.prefs -------------- next part -------------- Modified: pal-wcm/trunk/.settings/org.eclipse.jdt.ui.prefs =================================================================== --- pal-wcm/trunk/.settings/org.eclipse.jdt.ui.prefs 2007-05-02 22:24:44 UTC (rev 88) +++ pal-wcm/trunk/.settings/org.eclipse.jdt.ui.prefs 2007-05-02 22:25:43 UTC (rev 89) @@ -1,13 +1,13 @@ -#Thu Jun 08 20:38:39 JST 2006 -eclipse.preferences.version=1 -formatter_settings_version=8 -internal.default.compliance=user -org.eclipse.jdt.ui.exception.name=e -org.eclipse.jdt.ui.gettersetter.use.is=true -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=java;javax;org;com; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.keywordthis=false -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.overrideannotation=true -org.eclipse.jdt.ui.text.custom_code_templates=\r\n +#Tue Apr 24 08:24:16 JST 2007 +eclipse.preferences.version=1 +formatter_settings_version=8 +internal.default.compliance=user +org.eclipse.jdt.ui.exception.name=e +org.eclipse.jdt.ui.gettersetter.use.is=true +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=java;javax;org;com; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.keywordthis=false +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.overrideannotation=true +org.eclipse.jdt.ui.text.custom_code_templates= From svnnotify @ sourceforge.jp Sat May 5 07:24:52 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sat, 5 May 2007 07:24:52 +0900 Subject: [pal-cvs 2356] [90] rename to register.psml Message-ID: <20070504222452.527422AC027@users.sourceforge.jp> Revision: 90 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=90 Author: shinsuke Date: 2007-05-05 07:24:51 +0900 (Sat, 05 May 2007) Log Message: ----------- rename to register.psml Modified Paths: -------------- pal-portal/trunk/portal/resources/psml/default/_role/site/folder.metadata Added Paths: ----------- pal-portal/trunk/portal/resources/psml/default/_role/site/register.psml Removed Paths: ------------- pal-portal/trunk/portal/resources/psml/default/_role/site/login.psml -------------- next part -------------- Modified: pal-portal/trunk/portal/resources/psml/default/_role/site/folder.metadata =================================================================== --- pal-portal/trunk/portal/resources/psml/default/_role/site/folder.metadata 2007-05-02 22:25:43 UTC (rev 89) +++ pal-portal/trunk/portal/resources/psml/default/_role/site/folder.metadata 2007-05-04 22:24:51 UTC (rev 90) @@ -11,7 +11,7 @@ products downloads aboutus - login.psml + register.psml Folders Deleted: pal-portal/trunk/portal/resources/psml/default/_role/site/login.psml =================================================================== --- pal-portal/trunk/portal/resources/psml/default/_role/site/login.psml 2007-05-02 22:25:43 UTC (rev 89) +++ pal-portal/trunk/portal/resources/psml/default/_role/site/login.psml 2007-05-04 22:24:51 UTC (rev 90) @@ -1,18 +0,0 @@ - - Copied: pal-portal/trunk/portal/resources/psml/default/_role/site/register.psml (from rev 79, pal-portal/trunk/portal/resources/psml/default/_role/site/login.psml) From svnnotify @ sourceforge.jp Sat May 5 07:26:02 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sat, 5 May 2007 07:26:02 +0900 Subject: [pal-cvs 2357] [91] removed sso-admin. psml and added psml security and permission policy pages. Message-ID: <20070504222602.232142AC027@users.sourceforge.jp> Revision: 91 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=91 Author: shinsuke Date: 2007-05-05 07:26:01 +0900 (Sat, 05 May 2007) Log Message: ----------- removed sso-admin.psml and added psml security and permission policy pages. Modified Paths: -------------- pal-portal/trunk/portal/resources/psml/default/_user/admin/_mediatype/html/portalmanagement/folder.metadata Added Paths: ----------- pal-portal/trunk/portal/resources/psml/default/_user/admin/_mediatype/html/portalmanagement/permissionpolicy.psml pal-portal/trunk/portal/resources/psml/default/_user/admin/_mediatype/html/portalmanagement/psmlsecurity.psml Removed Paths: ------------- pal-portal/trunk/portal/resources/psml/default/_user/admin/_mediatype/html/portalmanagement/sso-admin.psml -------------- next part -------------- Modified: pal-portal/trunk/portal/resources/psml/default/_user/admin/_mediatype/html/portalmanagement/folder.metadata =================================================================== --- pal-portal/trunk/portal/resources/psml/default/_user/admin/_mediatype/html/portalmanagement/folder.metadata 2007-05-04 22:24:51 UTC (rev 90) +++ pal-portal/trunk/portal/resources/psml/default/_user/admin/_mediatype/html/portalmanagement/folder.metadata 2007-05-04 22:26:01 UTC (rev 91) @@ -1,17 +1,22 @@ - - Portal Admin - pal-admin.psml - pam.psml - site.psml - - - Folders - - /*/ - - - - admin - + +]]> + +]]> +

これらの定義のセパレータのテキストは、内部的に変換されることに注意してください。

+ + +
+

+<options> 要素は、メニュー内に単一または複数の選択肢を定義します。この単純な要素の文字列は、ページ、もしくはフォルダ、もしくはリンクのメニューの選択肢を作るドキュメントのパスを指定します。複数の選択肢のパスを、パスおよび (もしくは) 正規表現パターンをカンマで区切ったリストとして指定することも可能です。相対パスは、現在のページからの相対パスとして解釈されます。「~」や「@」といった特別なパターンを、現在のページを参照するために使うことができます。この要素は、メニュー要素とたくさんの属性を共有します。 +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
属性説明
depth選択肢のフォルダからのドキュメントの深さを指定します (0 以下の深さは無限大を表します)。メニューの選択肢は、サイトへのそれぞれの可視ページまたはリンクを表示するように作成されます。フォルダは、この設定によって階層化したメニューに変換されます。
pathsルートフォルダから指定された選択肢への順序付きのパスの選択肢を含むかどうかを指定する真偽値。この設定は「履歴」もしくは「パンくずリスト」メニューを生成するのに使います。
regexp選択肢の値としてワイルドカードや正規表現が使われるかどうかを指定する真偽属性。ファイルシステムのコマンドラインの正規表現をサポートします。
profile選択肢の値を評価する際に使われるプロファイルロケータの名前を指定します。この属性は、選択肢と階層化したメニューのためのデフォルトのプロファイルの値も設定します。「*」の指定は、全てのプロファイルロケータの名前を受け入れます。これは、親メニューが選択したプロファイル名を上書きするのに使うことができます。
orderマッチする選択肢の順序を判断するための、カンマで区切られたマッチするパターンの正規表現のリスト、もしくは正規表現のドキュメントパスの値。この属性は、どの選択肢の要素に対してもデフォルトの選択肢の値として適用されます。しかし、複数の選択肢の子供へのマッチを再度順序づけることはありません。もし指定されない場合、複数の選択肢は、含まれるフォルダドキュメントの順番で返される順序に含まれます。この属性にマッチしない選択肢のパスは、順序づけられたものの後に追加されます。
skinメニューの選択肢のレイアウトのヒントを定義するデコレータ(省略可)。このヒントは、現時点では PALポータル のデコレータでは使われていません。
+

例:

+ + ... + /some-top-page.psml,/custom/some-other-page.psml,/*.link + ... + +
+ +
+

+<separator> 要素は、メニュー に含めるセパレータを定義します。セパレータは、選択肢 もしくは階層化したメニューが、メニューの定義内のこの要素以下に現れた場合のみ含まれます。セパレータのテキストは、この要素内のテキスト、もしくはテキストメニュー定義の要素内で指定することが可能です。セパレータ要素に記述可能な属性は 1 つしかありません。 +

+ + + + + + + + + +
属性説明
skinメニューセパレータのレイアウトのヒントを定義する省略可能なデコレータ。このヒントは、現時点では PALポータル のデコレータでは使われていません。
+

+<separator> 要素は、たくさんの他のメニュー定義の PSML 要素を含みます。 +

+ + + + + + + + + + + + + + + + + +
要素説明
title?メニュー用のデフォルトのロケール非依存なタイトルを指定する単純な要素。セパレータのタイトルは、その長い記述とみなされます。そして、もしセパレータのテキストが利用可能である場合、デコレータによってはロールオーバー用のテキストとして使う場合があります。
text?メニュー用のデフォルトのロケール非依存なテキストを指定する単純な要素。セパレータのテキストは必須で、この属性によって指定されようと、セパレータ要素内のテキストとして指定されようと、レイアウトデコレータがメニュー内に挿入するためのテキストとなります。
metadata*ロケール特有の追加のタイトルとセパレータテキスト(省略可)。
+

例:

+ + ... + ------------- + ... + + -- Top 10 Pages -- + Haut Pages + Top 10 pages as voted by the PALポータル users! + + ... +
+]]> + + +
+

+<include> 要素は、選択肢 または、他のメニューの階層化した メニュー を含みます。含めるメニューの名前は、このエレメントのテキスト値として指定します。この要素に含めることのできる有効な属性は 1 つしかありません。 +

+ + + + + + + + + +
属性説明
nest指定したメニューが、階層化するためのものかどうかを制御する真偽値。もしこの属性に 'true' が指定された場合、含めるメニューはサブメニューとして階層化されます。そうでないのなら、全ての選択肢と指定したメニューの階層化したメニューは、このメニュー内にインラインで挿入されます。
+

例:

+ + ... + navigations + ... + +]]> +
+ +
+

+<exclude> 要素は、選択肢 もしくは、他のメニューの階層化した メニュー を除外します。このオプションは主に、このメニューから、ポータルページ内の、他のメニューに既に表示されているメニューの選択肢を消去するために使われます。一致する選択肢またはメニューがメニュー定義内のこの要素より上に表示されている場合は、除外されます。除外するメニューの名前は、この単純な要素のテキスト値として指定します。 +

+

例:

+ + ... + pages + ... + +]]> +
+ +
+

+ページレイアウトデコレータは、ページが PALポータル パイプラインで描画されるとき、ポータルサイトコンポーネントからメニューを要求します。デコレータは、メニューが PSML で定義されることを期待します。カスタムメニューがポータルに表示される前に、デコレータは、カスタムメニューの描画を変更する必要があります。以下に、Velocity レイアウトデコレータの header.vm ファイルから抜き出した例を示します。 +

+ +#includeTabsNavigation($pagesStandardMenu $LEFT_TO_RIGHT) + +#end +... +]]> +

+このコードは、ポータルページ内の標準的なページのタブメニューを描画します。ポータルサイトコンポーネントは Velocity のコンテキスト変数 $site として表れます。空のメニュー定義のための判断は、空のメニューがページコンテンツ内に描画されないことを保証するために設計されています。最後に、デコレータマクロが、メニューコンテンツを展開するために実行されます。一般に、再帰的なマクロの起動で階層化したメニューを描画することをサポートするために、このアプローチを取ります。この場合、デコレータはページオプションだけを期待します。以下に、ページのタブメニューを描画するのに使われるマクロ実装を示します。 +

+ + + #foreach($element in $_menu.elements.iterator()) + #if($element.elementType == "option") + #set($tabTitle = $element.getTitle($preferedLocale)) + #set($tabName = $element.getShortTitle($preferedLocale)) + #if($_orientation == $LEFT_TO_RIGHT) + #if($element.isSelected($site)) +   + ${tabName} +   + #else + #set($tabUrl = $jetspeed.getAbsoluteUrl($element.url)) +   + ${tabName} +   + #end + #end + #end + #end + + +#end +]]> +

+このマクロは、ポータルサイトコンポーネントによって提供される、処理されたページメニューの選択肢全てに渡って反復されます。これは、表示されるタブそれぞれを作るための HTML 要素のテーブルデータを描画します。メニュー全体は、単一の行の HTML テーブルとして描画されます。 +

+

+ポータルサイトコンポーネントオブジェクトがレイアウトデコーレータに表示する、宣言型のメニューは、PALポータル API の文書に記述されます。以下に、このインタフェースを作るためのプライマリのインタフェースのリストを以下に挙げます。 +

+更に情報が欲しい場合は、これらのインタフェースの javadoc とサンプルの Velocity デコレータを参照してください。 +

+

+PALポータル は、タブや階層化したサブメニューを持つナビゲーションペインや、閲覧履歴のパンくずリストリンクや、階層化したプルダウンメニューの DHTML JSCookMenu を描画する宣言型のメニュー要素を含んだ、多くのサンプルのデコレータを提供しています。 +

+
+ +
+

+PALポータル のポータルサイトコンポーネントには、 2 つの密接に関係した役割があります。 +

    +
  1. ユーザからのポータルのリクエスト URL を、サイト内の PSML ページ もしくは フォルダ 要素にマップします。そして、
  2. +
  3. サイトでユーザが利用可能なものを反映した、サイトのナビゲーションメニューと、メニューの選択肢を構築します。
  4. +
+一見、これらの機能は、PSML サイト定義 を検索し、走査するだけの、比較的シンプルなものであるように見えます。しかし、一度 プロファイラ の集約とセキュリティ制約 のフィルタリングの複雑さが採り入れられると、マッピングはもはや単純ではなくなります。 +

+

+メニューの選択肢は、PSML サイトのポータルサイトコンポーネントがマッチさせるビューと一致していることに注意することが重要です。メニュー要素の指定するドキュメントのパスは、PSML フォルダやページを指し示すために使われる物理パスではありません。代わりに、ポータルリクエストを反映するパスは、メニューの選択肢として含める PSML 要素を選択するのに使われます。このように、プロファイリングとセキュリティは、あたかも実行中のリクエスト URL を逆にマップするかのように、メニューの選択肢の集団に自動的に含まれます。 +

+
+ + + Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-menus-declarative-psml.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-pipeline.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-pipeline.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-pipeline.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,42 @@ + + + + + PALポータル パイプライン + PALポータル パイプラインの文書 + + + + + + + + +
+ +

以下にあるように、PALポータル ポータルエンジンの主要なコンポーネントの 1 つにリクエストパイプラインがあります。 +

+ +
+ PALポータル では、リクエストはパイプラインとして組み立てられる Valve の集合を通して処理されます。詳しくは PALポータル パイプラインについての情報を参照してください。 + ここを参照. +

+
+ + +
+ Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-pipeline.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-portal-assembly.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-portal-assembly.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-portal-assembly.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,33 @@ + + + + + PALポータル ホームページ + PALポータル へようこそ + + + + + + + + +
+ +
+ +
Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-portal-assembly.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-portal-design.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-portal-design.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-portal-design.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,149 @@ + + + + + Guide to Portal Design + Documentation for Designers working with PALポータル Portal Design + + + + + + + + +
+ +

+Java ポートレット API (JSR-168) は、ポートレットプログラミングの Java 標準インターフェースを定義しています。Java ポートレット API 仕様により、ポートレットとポータルの間の相互の接続が可能になります。これは Java ポートレットを開発するための標準仕様です。しかし、Java ポートレット API は、レイアウトや、ポートレットの集約や、ページのマークアップについての標準は定義していません。このドキュメントの「ポータルデザイン」以下の部分は以下をカバーします。 +

+

+
+
+ +

+ポートレットページ内の 1 つ以上のポートレットをレンダリングするということは、主にテンプレートを使って動的なコンテンツとしてポートレットを集約する処理を行うということです。PALポータル は、ページレイアウトを Velocity テンプレートを使って作ります。PALポータル の構造は、デコレータやレイアウト用に JSP テンプレートを使うことが可能な構造をしていますが、これまで開発者は、テンプレートを書くためのツールとして Velocity を選択しています。PALポータル には、二種類のテンプレートが存在しています。それはレイアウトテンプレートとデコレータテンプレートです。ページをレンダリングする処理は、レイアウトテンプレートと、ページデコレータテンプレートと、PSML の定義と、 1 つ以上のポートレットデコレータのテンプレートを集約して結合します。リリース 2.0 では、テンプレートはファイルシステムに保存することが可能です。将来のリリースでは、テンプレートはバージョン管理のために CMS バックエンドに保存されるでしょう。 +

+ + +

+レイアウトテンプレートは、PALポータル に特化した配備可能なポートレットアプリケーションとしてまとめられています。レイアウトテンプレートは、ポータルページの全体的な集約をコントロールします。レイアウトテンプレートは、集約のためのコンポーネントモデルを提供し、ポートレットを組み合わせます。PALポータル は一列、または二列、または三列のレイアウトを含むいくつかのレイアウトコンポーネントを同梱しています。デフォルトの PALポータル システムで可能な全てのレイアウトについては レイアウトのガイド を参照してください。もちろん、自身でレイアウトを定義することも可能です。 +

+
+ + +

+デコレータテンプレートは、PALポータル に特化した配備可能なアーカイブとしてまとめられています。レイアウトテンプレートは、ポータルページの全体的な集約をコントロールします。レイアウトテンプレートは、集約のためのコンポーネントモデルを提供し、ポートレットを組み合わせます。PALポータル は一列、または二列、または三列のレイアウトを含むいくつかのレイアウトコンポーネントを同梱しています。デフォルトの PALポータル システムで可能な全てのレイアウトについては デコレータのガイド を参照してください。もちろん、自身でレイアウトを定義することも可能です。 +

+
+
+
+ +

+テンプレートは、PALポータル テンプレート (と PALポータル デコレータ) のロケータコンポーネントにより検索されます。これらのコンポーネントは、正規化された名前と値のペアによる URL スキームを使ってテンプレートを検索します。しかし、Velocity のようなテンプレートエンジンは、ドキュメントルートからの相対パスで表現されるテンプレートへのパスを使って動作する必要があります。PALポータル パワーツール は、正規化されたパスと相対パスの間の変換を容易にしてくれます。通常、Spring の設定では全てのデコレータのテンプレートルートは次のように定義されます。 + +そして、全ての (ポートレットアプリケーション毎の) レイアウトのルートは次のように定義されます。 + +正規化されたパスは名前と値のペアを用いて定義されます。例えば + +のようにです。 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名前説明
typelayout | portlet | genericテンプレートロケータのタイプ。layout, portlet (デコレータ) または generic (デコレータ) のいずれかの値のうちのどれかです。レイアウトはページレイアウトかデコレータのいずれかのためのものになりえます。generic タイプデコレータは、ポートレットデコレーションまたはページデコレーションのいずれかになりえます。
media-typehtml | wml | dhtml | ...検索されるマークアップメディアタイプ。有効なメディアタイプ (html, dhtml, wml...) である必要があります。
name有効なデコレータもしくはレイアウトの名前デコレータもしくはレイアウトの名前。普通はデコレータもしくはレイアウトのテンプレートや画像やスタイルシートが保存されているサブディレクトリと一致します。
languageISO-639 標準として有効な二文字の言語の省略形ISO-639 (http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt) は言語の省略形の標準を定義します。 + 代表的な省略形として英語に対する en、フランス語に対する fr、ドイツ語に対する de 等があります。
countryISO-3166 標準として有効な二文字の国名の省略形ISO-3166 (http://userpage.chemie.fu-berlin.de/diverse/doc/ISO_3166.html) は国コードの省略形の標準を定義します。 + 代表的な省略形としてアメリカ合衆国に対する US やフランスに対する FR 等があります。
+

+
+ +
+ + + + + + + + + + + + + + +
+ 用語 + + 定義 +
+ レイアウト(Layout) + +フラグメントのグループが関係するものでまとめられて、最終的にポータルへのリクエストに対する集約されたコンテンツにまとめられる際の形状を定義します。レイアウトはページの集約されたコンテンツを生成するテンプレートにアルゴリズムを適用するためのポートレットにより決められます。標準的なアルゴリズムには二列、三列、入れ子構造があります。 +
+ TODO: ここで省かれているもの: + + フラグメント、デコレーション、ページ、ページデコレータ、ポートレットデコレータ、 + アプリケーションの関係、正規化テンプレートパス、絶対 URL +
+
+ +
+ Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-portal-design.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-portlet-bridges.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-portlet-bridges.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-portlet-bridges.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,79 @@ + + + + + PALポータル ポートレットブリッジ + Apache ポータルのポートレットブリッジに関する文書 + + + + + + + + +
+ +

+PALポータル は、Struts 用のポートレットブリッジを提供しています。Apache ポータル Struts ポートレットブリッジサブプロジェクトの文書をご覧ください。 +

+ +

+PALポータル には、複数の Struts ポートレットのデモアプリケーションが含まれています。 +

+

+
+
+ +

+PALポータル は、JSF 用のポートレットブリッジを提供しています。Apache ポータル JSF ポートレットブリッジ サブプロジェクトの文書をご覧ください。 +

+ +

+PALポータル には、JSF 実装である MyFaces に基づく JSF ポートレットデモが複数含まれています。 +

+

+ +

+JSF ポートレットブリッジサブプロジェクト内のブリッジに関する文書をご覧ください。 +

+
+ +
+ +

+PALポータル は、Perl アプリケーション用のポートレットブリッジを提供しています。Apache ポータル Perl ポートレットブリッジサブプロジェクトの文書をご覧ください。 +

+
+ +
+ +

+PALポータル は、PHP アプリケーション用のポートレットブリッジを提供しています。Apache ポータル PHP ポートレットブリッジサブプロジェクトの文書をご覧ください。 +

+
+ + +
+ Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-portlet-bridges.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-profiler.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-profiler.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-profiler.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,181 @@ + + + + + プロファイラ + PALポータル のプロファイラに関する文書 + + + + + + + + +
+ +

+PALポータル のプロファイラは、ポータルのリソースの場所に関するルールベースのエンジンです。PALポータル のバージョン 2.0 では、プロファイラは以下のような種類のポータルリソースの場所を決定します。 +

    +
  • PSML ページ
  • +
  • フォルダ
  • +
  • メニュー
  • +
+リクエストがポータルで受信されたとき、プロファイラは、実行時パラメータや状態 (リクエストパラメータ、HTTP ヘッダ、セッションの属性など) の正規化された値に基づき、リクエストをリソースと結びつけます。プロファイラはプロファイラバルブ内の PALポータル のリクエスト処理パイプラインの中で呼び出されます。このバルブは、リクエストコンテキストが、既にポータルのリクエストやレスポンス、機能、言語、ユーザ情報と関連づけられている必要があります。実行時のパラメータは、プロファイラがポータルのリソースを位置を決定するのに使われる判断規準を作ります。 +

+ +

+プロファイラはサイトマネージャとページマネージャコンポーネントと協調して動作します。プロファイラは実行時情報を入力として受け取り、その情報を一般化・・・(原文が文の途中で終わっています。原文作者によると、ここで力尽きた、とのことです)。 +

+
+
+ +

+プロファイリングルールは、特定のリソースの場所を解決するリクエストを評価するときに使われる判断規準のリストを定義します。プロファイリングルールはプロファイラが使用します。これは、既知のポートレットリクエストデータ用の、細分化した判断規準によるポータルリソースの位置を決定するためです。ルールは与えられた順序に適用される判断規準の順序つきのリストから構成されます。このルールの順序に従って、プロファイリングエンジンは、最少のリソースの判断規準とみなせるまで、少ない記述の設定によるアルゴリズムで、それぞれのルールの判断規準を適用します。全ての条件が適用されつくした場合、ルールは失敗となりフォールバックリソースが要求されます。 +

+ + +

+ルール規準はプロファイルのプロパティの場所を示すためのテンプレートです。デフォルトの実装では、リソースを特定する URL、Mimeタイプ、言語の設定に基づく案で定義されたプロファイリングポリシを持っています。もっと複雑な実装を行うには、Cookie や IP アドレスの範囲や統計的なリソースの利用解析やサーブレットや EJB 内部のビジネスのルールのような、リソースとマッピングされる他の入力が必要となるでしょう。 +

+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
リゾルバ説明
requestリクエストパラメータ名とのマッチングによる解決
sessionセッションの属性名とのマッチングによる解決
request.session最初にリクエストの属性名とのマッチングを行ってから、セッションの属性名とのマッチングを行って解決する
hard.codedハードコードされた値による解決
group.role.userフォールバックコントローラ: 現在のユーザグループ、次にロール、次にユーザの所有するフォルダ以下のリソースを探す
user現在のユーザのディレクトリ内のリソースとマッチさせる
group
role
mediatypeリクエストコンテキスト内のメディアタイプとマッチさせる
country
user.agent
language
rolesロールのフォールバック
path
page
path.session
user.attribute
navigation現在のナビゲーションパスを変える
+ +

+
+ + +
+
+ +

+プロファイルロケータはポータルリソースの位置を決めるのに使われます。ポータルリソースとはページやドキュメントやフラグメントのようなもののことです。ロケータには位置が決められた実際のリソースについて記述されたプロパティが含まれます。ロケータは普通はユーザや他の対象のプロファイルに関係するプロパティに基づいているので、プロファイルロケータとして参照されます。 +

+ +

+

+
+
+
+

+

+
+ + +
+ Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-profiler.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-properties.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-properties.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-properties.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,418 @@ + + + + + PALポータル バイナリからの導入ガイド + あなた自身のポータルをビルドする準備をする方法 + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
プロパティ説明デフォルト値
+ org.apache.jetspeed.portal.home + + (j2:portal.conf.project ゴールで) Maven プラグインがあなたのカスタムポータル用 Maven プロジェクトを(再)構築したり更新したりするフォルダ。この場所はあなたがカスタムポータルの開発を今後全て行う場所になります。 +
+ 例: /home/myportal/ +
+ デフォルト値なし +
+ org.apache.jetspeed.portal.groupId + + あなたのポータルプロジェクトのグループの (Maven の) 短い名前。 +
+ この値は Maven リポジトリフォルダ内で (ポータル war ファイルのような) プロジェクトの成果物を保管しておく場所の名前として使われます。 +
+ 例: myprojects +
+ デフォルト値なし +
+ org.apache.jetspeed.portal.artifactId + + あなたのポータルプロジェクトの (Maven での) 省略名。 +
+ この値はポータル war ファイルや (ポータル) ウェブアプリケーションのコンテキスト名に使われます。 +
+ 例: myportal +
+ デフォルト値なし +
+ org.apache.jetspeed.portal.name + + あなたのポータルプロジェクトの (Maven での) フルネーム。 +
+ この値は JaveDoc のタイトルを生成するのに Maven が使います。 +
+ 例: + My Test Portal +
+ デフォルト値なし +
+ org.apache.jetspeed.portal.currentVersion + + あなたのポータルプロジェクトの現在のバージョン。 +
+ この値はプロジェクトの成果物の名前として最後に Maven に付け加えられます。 +
+ 例:1.0 +
+ デフォルト値なし +
+
+ + +

+ このあとに述べるプロパティは全て ${org.apache.jetspeed.portal.home} のサブフォルダを定義します。 +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
プロパティ説明デフォルト値
+ org.apache.jetspeed.portal.conf.dir + + Maven プラグインが Tomcat のアプリケーションのコンテキスト記述子のようなアプリケーションサーバ固有の設定ファイルを生成しコピーするフォルダ。 +
+ このフォルダとフォルダ内のコンテンツは + j2:portal.conf.tomcat + プラグインゴールによって作成されたり更新されたりします。 +
+ target/portal-conf +
+ org.apache.jetspeed.portal.sql.dir + + Maven プラグインがポータルやデータベースサーバの sql DDL と DML スクリプトを生成しコピーするフォルダ。 +
+ このフォルダとフォルダ内のコンテンツは常に + j2:portal.conf.sql + プラグインゴールによって (再) 生成されます。 +
+ target/portal-sql +
+ org.apache.jetspeed.portal.db.dir + + Maven プラグインがビルドインの HSQLDB データベースを作成するフォルダ。 +
+ このフォルダとフォルダ内のコンテンツは + j2:start.production.server + もしくは + j2:start.test.server + プラグインゴールによって生成されたり更新されたりします。 +
+ target/portal-db +
+ org.apache.jetspeed.portal.webapp.dir + + Maven プラグインが標準の PALポータル のウェブアプリケーションのリソースをコピーするフォルダ。 +
+ このフォルダとフォルダ内のコンテンツは + j2:portal.copy.webapp + プラグインゴールによって生成されたり更新されたりします。 +
+ target/${org.apache.jetspeed.portal.artifactId} +
+ org.apache.jetspeed.portal.target.dir + + Maven プラグインがランタイムのポータルの設定ファイルを生成したりコピーしたりするフォルダ。 +
+ これらの設定ファイルはポータルや OJB のビルド/プラグインプロパティから生成された値を含みます。 +
+ このフォルダとフォルダ内のコンテンツは + j2:portal.conf.jetspeed + もしくは + j2:portal.conf.ojb + プラグインゴールによって生成されたり更新されたりします。 +
+ target/${org.apache.jetspeed.portal.artifactId} +
+
+ + +

+ + 注意: Maven プラグインは現時点では Tomcat 5.0.x または 5.5.x のみをサポートします。 + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
プロパティ説明デフォルト値
+ org.apache.jetspeed.server.home + + Tomcat をインストールしたルートフォルダ。 +
+ 例: + ${CATALINA_HOME}/ +
+ デフォルト値なし +
+ org.apache.jetspeed.server.shared + + インストールした Tomcat の共有の jar の置場。 +
+ 例: ${org.apache.jetspeed.server.home}/shared/lib/ +
+ デフォルト値なし +
+ org.apache.jetspeed.deploy.war.dir + + インストールした Tomcat のウェブアプリケーションの場所。 +
+ 例: ${org.apache.jetspeed.server.home}/webapps/ +
+ デフォルト値なし +
+ org.apache.jetspeed.services.autodeployment.user + + manager ロールに属する Tomcat のユーザ。 +
+ 後で説明するように、ポータル内から Tomcat Manager アプリケーションへアクセスするのに使います。 +
+ デフォルト値なし +
+ org.apache.jetspeed.services.autodeployment.password + + 前述の Tomcat ユーザのパスワード。 +
+ 後で説明するように、ポータル内から Tomcat Manager アプリケーションへアクセスするのに使います。 +
+ デフォルト値 +
+ org.apache.jetspeed.catalina.version.major + + 使用する Tomcat のメジャーバージョン。5 もしくは 5.5 が使えます。 +
+ 例: 5.5 +
+ デフォルト値なし +
+
+ + +

+ PALポータル と PALポータル の Maven プラグインはデフォルトでは提供される HSQLDB のデータベースを使用します。 +

+ +

+ もし異なるデータベースを使用するのであれば、以下のプロパティを上書きする必要があります。 +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
プロパティ説明デフォルト値
+ org.apache.jetspeed.production.database.default.name + + あなたが使用するデータベースの種類。Torque が生成する SQL スクリプトのために使用します。 +
+ 現時点でサポートするデータベースは以下の通りです。(Torque の対象のデータベース名も示します) +
    +
  • hsql (hypersonic)
  • +
  • oracle (oracle)
  • +
  • mysql (mysql)
  • +
  • postgres (postresql)
  • +
  • mssql (mssql)
  • +
+
hsql
+ org.apache.jetspeed.production.database.url + JDBC の接続 urljdbc:hsqldb:hsql://127.0.0.1:9001
+ org.apache.jetspeed.production.database.user + データベースに接続するためのユーザ名。sa
+ org.apache.jetspeed.production.database.password + データベースに接続するためのユーザのパスワード。 + +
+ org.apache.jetspeed.production.database.driver + JDBC ドライバのクラス名org.hsqldb.jdbcDriver
+ org.apache.jetspeed.production.jdbc.drivers.path + + データベース接続に必要な JDBC ドライバクラスや jar への Java クラスパス形式のパス。 +
+ 例: /lib/ojdbc14.jar;/lib/nls_charset12.jar +
+ +
+
+ + +

少なくとも前述の必須のプロパティは + ${USER_HOME}/build.properties + で定義してあることを確認してください。HSQLDB を使った最低限のカスタムポータルの設定は以下のようになります。 + + + + + 注意: もしデフォルトの PALポータル ポータルをソースから直接ビルドするのであれば、必須のポータルの設定プロパティのうち、 + org.apache.jetspeed.portal.home + だけが必要になります。 + +

+
+
+ +
Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-properties.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-psml.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-psml.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-psml.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,767 @@ + + + + + PSML + Documentation for Designers working with PSML + + + + + + + + + +
+ + +

+PSML は Portal Structure Markup Language の頭文字を取った物です。PSML は PALポータル 内のコンテンツの構造化と抽象化を行うために作成されます。PSML はポータルページ上でポートレットがどのように集約され、レイアウトされ、装飾されるかを定義します。ページレイアウトは、Java ポートレット標準 API の守備範囲ではないことに注意してください。ですので、PSML は PALポータル 特有の実装です。そして、PALポータル の PSML は Apache Portals Jetspeed version 1.x の PSML とも違うことに注意してください。このドキュメントは PSML リソースの要素のリファレンスガイドとして使えます。 +

+

+PSML ファイルは、ページ、フォルダ、リンクや大域的なセキュリティ制限と関係する他のポータルサイトの情報も保持します。これらの主要な PSML の要素のそれぞれは、ファイルシステム上のディレクトリ構造内に配置された別々のドキュメント内に保存されます。一般的に、このディレクトリは PALポータル ウェブアプリケーション内の /WEB-INF/pages にあるリソースとしてアクセスされます。 +

+ +

+以下にポータルサイトの ページ 用の PSML ファイル (*.psml) の例を示します。 +

+ + + + + Welcome to PALポータル + Ma Premiere Page de PSML + ¡Bienvenido a PALポータル! + Köszönti a PALポータル! + + + + + + + + + + + + + + + + + + + + + + + + + + public-view + + +]]> + +

+以下に、ポータルサイトの フォルダ (folder.metadata) 用の定義を行う PSML ファイルの例を示します。 +

+ + + + + Root Folder + Répertoire racine + Carpeta raiz + + + Jetspeed2.link + Jetspeed2Wiki.link + apache_portals.link + apache.link + + + + + Top Pages + Page haut + Páginas más populares + + /Administrative + + Profiled Pages + Páginas del Perfil + + /p[0-9][0-9][0-9].psml + + Non Java Pages + Ejemplos sin java + + /non-java + + + + + public-view + + +]]> + +

+以下に、ポータルサイトの リンク (*.link) 用の PSML ファイルの例を示します。 +

+ + + + + PALポータル Home Page + http://portals.apache.org/jetspeed-2/ + PALポータル + +]]> + +

+以下に、ポータルサイトの ページのセキュリティ (page.security) 用の PSML ファイルの例を示します。 +

+ + + + + + + + admin + view, edit + + + admin + + + + + * + view + + + + + * + view, edit + + + +]]> +
+
+ +

+<page> 要素は、ポータルサイトのページに関連する他の PSML 要素を保持するための単純な入れ物です。この要素は、親であるフォルダを構成する適切なファイルシステムディレクトリ内に、'.psml' という拡張子を持つファイルとして存在します。 2 つの有効な属性がページエレメントの属性として存在します。 +

+ + + + + + + + + + + + + + +
属性説明
hiddenページがポータルサイトのサイトメニューまたは他のナビゲーション用の要素に表れるかどうかを指示するための真偽値の属性。
version一般的な目的のバージョントラッキングのための属性。PALポータル では現在使われていません。
+ +

+<page> 要素は多くの他の PSML 要素を含みます。 +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
要素説明
title?デフォルトのページタイトルを表すテキストを含む単純な要素。ページのタイトルは、その長い説明とみなされます。もしメニューテキスト用の短いタイトルが利用可能であれば、一部のデコレータでロールオーバー (訳注:マウスポインタがHTML文書の中の要素の上にくると、その要素が変化する仕組みのこと) 用のテキストとして使われます。もし指定されていなければ、PALポータル は page 要素を含むファイルのファイル名からタイトルを決めようと試みます。
short-title?ページのデフォルトの短いタイトルのテキストを含む単純で省略可能な要素。短いタイトルは、もし利用可能であれば、一部のデコレータ内のメニューテキストとして使われます。もし指定されない場合は title のテキストが使われます。
defaultsページとそのフラグメントのための装飾を指定します。defaults はページ毎に必要です。
fragmentフラグメントの階層構造のルート。全てのページにルートのフラグメントが必要です。
metadata*省略可能の指定である、ページ用のロケール特有のタイトルと短いタイトル。
menu*省略可能の指定である、ページ用の追加または上書きされた継承したメニュー定義の指定。
security-constraints?省略可能の定義である、ページ用のインラインのセキュリティ制限の定義。もし指定されなければ、ページは親フォルダ内の有効なセキュリティ制限を継承します。
+ +

例: イントロで示した例を参照してください。

+
+ +
+ +

+ページ内の <defaults> 要素は、デフォルトのレイアウトデコレータと、デフォルトのポートレットデコレータを定義します。デフォルトのレイアウトデコレータは、デコレータ属性を持たない全てのレイアウトフラグメントに対して適用されます。デフォルトのポートレットデコレータは、デコレータ属性を持たない全てのポートレットフラグメントに対して適用されます。defaults 要素には 3 つの有効な属性があります。 +

+ + + + + + + + + + + + + + + + + + +
AttributeDescription
layout-decoratorページをレンダリングするときに使うレイアウトデコレータの名前。この属性は必須です。
portlet-decoratorページフラグメントをレンダリングするときに使うデフォルトのポートレットデコレータの名前。この属性は省略可能ですが、ほとんどいつも設定します。
skinページやフラグメントの表示を制御するためにデコレータ内で参照される一般的な目的のデコレータ属性。現時点では PALポータル では使用していません。
+ +

例:

+ + + ... + + ... + +]]> +
+ +
+ +

+ページ のレイアウト <fragment> 要素は階層構造のコンテナです。これは ポートレットフラグメントと、階層化されたレイアウトフラグメントを保持するのに使われます。ページのルートのフラグメントは、ページに 1 つしかポートレットがないときでも、レイアウトフラグメントでなければなりません。レイアウトフラグメントは親となるレイアウトフラグメントのレイアウトに従属します。なので "row" と "column" の レイアウトプロパティをサポートします。加えて、レイアウトフラグメントは 'sizes' レイアウトプロパティもサポートします。これは、複数列のレイアウトの列の割合をコントロールするのに使われます。この要素には 3 つの必須の属性があります。 +

+ + + + + + + + + + + + + + + + + + +
属性説明
id必須である id は、フラグメントを特定するのに使います。そして、サイト内で定義される全てのフラグメントに渡ってユニークでなければなりません。この値は PALポータル に対して透過的でなく、一意性を保証するためのどのような仕様にも従うことが可能です。フラグメントは PALポータル で内部的にキャッシュされる可能性があるので、既存のページに対する任意の編集が、PALポータル が行う変更を保証するために新しい id を必要とするかも知れません。
typeこの必須の属性はレイアウトフラグメント全てで 'layout' と指定しなければなりません。
name必須であるポートレット名は、フラグメントレイアウトを実装するのに使われます。ポートレット名は一般的に、portlet.xml ファイルで指定された 'portlet-app-id:portlet-id' の形を取ります。以下が PALポータル でサポートされるレイアウトポートレットの名前です。 +
    +
  • jetspeed-layouts::FrameLayoutPortlet
  • +
  • jetspeed-layouts::VelocityOneColumn
  • +
  • jetspeed-layouts::VelocityOneColumnNoActions
  • +
  • jetspeed-layouts::VelocityThreeColumns
  • +
  • jetspeed-layouts::VelocityThreeColumnsNoActions
  • +
  • jetspeed-layouts::VelocityThreeColumnsTable
  • +
  • jetspeed-layouts::VelocityTwoColumns
  • +
  • jetspeed-layouts::VelocityTwoColumns2575
  • +
  • jetspeed-layouts::VelocityTwoColumns2575NoActions
  • +
  • jetspeed-layouts::VelocityTwoColumnsNoActions
  • +
  • jetspeed-layouts::VelocityTwoColumnsSmallLeft
  • +
  • jetspeed-layouts::VelocityTwoColumnsSmallLeftNoActions
  • +
  • jetspeed-layouts::VelocityTwoColumnsTable
  • +
+
+ +

+レイアウト <fragment> 要素はたくさんの他の PSML 要素を含みます。 +

+ + + + + + + + + + + + + + + + + + +
要素説明
fragment*指定された fragment 要素は、レイアウトフラグメントによってレイアウトされるポートレットフラグメント、または階層化されたレイアウトフラグメントのどちらにも成り得ます。全ての子フラグメントにはこのレイアウトの位置を指定するための property 要素が必須です。レイアウトフラグメント内に指定されるフラグメントがない場合は結果としてコンテンツは生成されません。
property*レイアウトフラグメントは省略可能で 'sizes' プロパティを持つことが可能です。これは複数列の形状の明細を指定するのに使うことが可能です。階層化されたレイアウトフラグメントは、親レイアウト内の位置を特定するために 'row' または 'column' またはその両方のプロパティも持つかもしれません。
security-constraints?フラグメントとそのフラグメントの子フラグメントに対して、省略可能なインラインのセキュリティ制限を定義します。ページ、リンクの制約と違って、'view' パーミッションのみが制限されます。もし指定されなければ、フラグメントは ページ 内で有効なセキュリティ制限を継承します。
+ +

例:

+ + + ... + + + + + + + + + + + + + + + + + + ... + +
+ +
+ +

ポートレットの <fragment> 要素は、ページのポートレットを識別するために使われます。ポートレットフラグメントは、親レイアウトフラグメントのレイアウトの影響を受けます。なので、レイアウトで定められている 'row' と 'column' のレイアウトプロパティ をサポートします。この要素に対しては多数の有効な属性が存在します。 +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
属性説明
id必須である id は、フラグメントを特定するのに使います。そして、サイト内で定義される全てのフラグメントに渡って、ユニークでなければなりません。この値は PALポータル に対して透過的でなく、一意性を保証するためのどのような仕様にも従うことが可能です。フラグメントは PALポータル で内部的にキャッシュされる可能性があるので、既存のページに対する任意の編集が、PALポータル が行う変更を保証するために新しい id を必要とするかも知れません。
typeこの必須の属性は全てのポートレットフラグメントで 'portlet' と指定しなければなりません。
name必須であるポートレット名は、フラグメントコンテンツを流し込むのに使われます。ポートレット名は一般的に portlet.xml ファイルで指定された 'portlet-app-id:portlet-id' の形を取ります。
skinフラグメントの表示のコントロールのための、ポートレットデコレータ内で参照する可能性のある一般的な目的のデコレータ属性。現時点では PALポータル では使っていません。
decoratorデフォルトのポートレットデコレータ名は、フラグメントのレンダリングに使われます。この属性は省略可能です。しかし、この属性が指定されない場合は、ページの defaults がデフォルトのポートレットデコレータを指定します。
stateフラグメントポートレットの初期状態; 現時点ではこの属性に対しては、唯一 'hidden' が有効な値です。
+ +

+ポートレットの <fragment> 要素は他の PSML 要素を含みます。 +

+ + + + + + + + + + + + + + + + + + + + + + +
要素説明
property*親フラグメントは、親レイアウト内の位置を特定するために、'row' または 'column' またはその両方のプロパティを持てます。
title?フラグメントポートレットのタイトルを含む、省略可能で単純なテキストの要素。portlet.xml でセットされたタイトルを上書きします。
preference*フラグメントポートレットにたいして、設定される初期のユーザプリファレンスを指定します。portlet.xml 内で指定された、どのようなポートレットプリファレンスも上書きされます。
security-constraints?フラグメントに対するインラインのセキュリティ制限を省略可能で定義します。ページ、フォルダの制約と違って、'view' パーミッションだけを制限できます。もし指定されない場合は、そのフラグメントは page 内で有効なセキュリティ制限を継承します。
+ +

例:

+ + + ... + + + + ... + +]]> +
+ +
+ +

フラグメントの <property> 要素はフラグメントのプロパティの名前を指定するのに使われます。これらのプロパティは一般にレイアウトポートレットのパラメータとページ内のポートレットの位置を指定するために使われます。プロパティ要素は 3 つの属性をサポートします。

+ + + + + + + + + + + + + + + + + + +
属性説明
layout (廃止予定) プロパティが紐付いているフラグメントポートレットの識別名。この属性は互換性のために用意されています。レイアウトとポートレットフラグメントの厳密な階層構造は、どのような単一のフラグメントとそのプロパティも、 1 つのレイアウトポートレットの影響下にある可能性があることを意味します。
nameフラグメントプロパティの名前。PALポータル のレイアウトポートレットは 'row'、'column'、'sizes' プロパティをサポートします。
valueフラグメントプロパティの値。'row' と 'column' プロパティはゼロベースの指標値を受け取ります。'sizes' プロパティは HTML frameset タグの 'rows' と 'cols' 属性の書式 (例えば '25%,75%' 等) を受け取ります。
+ +

例:

+ + + ... + + + ... + +]]> + + + ... + + ... + +]]> +
+ +
+ +

+ポートレットフラグメント の <preference> 要素は、ポートレットプリファレンスを定義します。これは、ポートレットアプリケーションの portlet.xml 内に、ポートレットの定義を何度も行う必要なく、ページ上のポートレットインスタンス用に、デフォルトのポートレットプリファレンスの設定を、簡単に行う手段を提供します。 +

+ +

+プリファレンスの優先度: ユーザ定義 > フラグメント定義 > portlet.xml での定義 +

+ +

+<preference> 要素の属性は以下のようなものです。 +

+ + + + + + + + + + + + + + +
属性説明
nameプリファレンスの名前。
readOnlyユーザがこのプリファレンス値を変えることができるかどうかを示す真偽値。
+ +

<preference> 要素は以下の要素を含みます。

+ + + + + + + + + + +
要素説明
value+指定したプリファレンスと関係する値を含む単純なテキスト要素。
+ +

例:

+ + + ... + + http://www.google.com + + ... + +]]> +
+ +
+ +

+<folder> 要素は、ポータルサイトのフォルダと関連する他の PSML 要素を保持する単純な入れ物です。この要素は、関連するファイルシステムディレクトリ内の folder.metadata ファイルとして存在します。フォルダの要素には 2 つの有効な属性が存在します。 +

+ + + + + + + + + + + + + + +
属性説明
hiddenフォルダが、ポータルサイトのメニューや他のナビゲーション用の要素に、表示されるかどうかを示す真偽値の属性。
version一般的な用途のバージョントラッキングの属性。現時点では PALポータル では使われていません。
+ +

<folder> 要素は多くの他の PSML 要素を含みます。

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
要素説明
title?デフォルトのフォルダのタイトルを含む単純な要素。フォルダのタイトルは、自身の長い説明とみなされます。もし短いタイトル名が利用可能であれば、一部のデコレータでロールオーバー用のテキストとして使われます。もし指定されていなければ、PALポータル はフォルダ要素を含むファイル名からタイトルを決めようと試みます。
short-title?フォルダのデフォルトの短いタイトルのテキストを含む省略可能な単純要素。もし短いタイトルが利用可能であれば、一部のデコレータでメニューテキストとして使われます。もし指定されない場合は、title のテキストが使われます。
default-page?フォルダのデフォルトページまたはサブフォルダのテキストを含む単純で省略可能な要素。デフォルトページは、フォルダが直接ポータルから参照されるときに使われます。このフォルダ内のどのような ページやフォルダを (親フォルダとして使われる「..」も含む) 指定することも可能です。もしデフォルトページが設定されない場合は、「default-page.psml」が使われます。もし 「default-page.psml」が存在しない場合は、フォルダ内の最初のページがデフォルトになります。
document-order*ページ、サブフォルダ、リンク といった構成要素のソートの順番を定義するのに使われる、構成要素のテキスト名を含む単純で省略可能な要素。名前にマッチする構成要素は、その要素が定義された順番に配置されます。他の構成要素は名前でソートされます。そして、メニューや他のリストでは、一致した構成要素の後に表示されます。正規表現による一致はサポートしません。
metadata*省略可能の指定である、ロケール固有のフォルダのタイトルや短いタイトル。
menu*省略可能の指定である、追加の、または継承したものを上書きするフォルダのメニュー定義。
security-constraints?省略可能の定義である、フォルダ用のインラインのセキュリティ制限の定義。もし指定されなければ、フォルダは親フォルダ内の有効なセキュリティ制限を継承します。
+ +

例: 序文の例を参照してください。

+
+ +
+ +

+<link> 要素は、ポータルサイトの外部のコンテンツを参照するのに使われるポータルリンクに関連づけられている、他の PSML 要素を保持するシンプルな入れ物です。この要素は、親フォルダと関連づけられている、適切なファイルシステムのディレクトリ内に存在する「.link」という拡張子のファイルとして存在します。この要素には 2 つの有効な属性があります。 +

+ + + + + + + + + + + + + + +
属性説明
target省略可能の指定である、外部コンテンツを開くための対象となるフレームの名前。もし指定されなければ、リンクされたコンテンツはブラウザで開いているポータルと置き換わります。
version一般的な用途のバージョントラッキングの属性。現時点では PALポータル では使われていません。
+ +

+<link> 要素は多数の他の PSML 要素を含みます。 +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
要素説明
title?デフォルトのリンクタイトル用のテキストを含むシンプルな要素。リンクのタイトルは、その長い説明とみなされます。もしメニューテキスト用の短いタイトルが利用可能であれば、一部のデコレータでロールオーバー用のテキストとして使われます。もし指定されていなければ、PALポータル は link 要素を含むファイルのファイル名からタイトルを決めようと試みます。
short-title?リンクのデフォルトの短いタイトルのテキストを含む単純で省略可能な要素。もし短いタイトルが利用可能であれば、一部のデコレータでメニューテキストとして使われます。
urlコンテンツの URL のための必須の要素。この要素のテキストは、指定されたブラウザの対象フレームをナビゲートするのに使われます。
metadata*省略可能の指定である、ロケール固有のリンクのタイトルや短いタイトル。
security-constraints?省略可能の指定である、リンクのためのセキュリティ制限。もし指定されなければ、リンクは親フォルダ内の有効なセキュリティ制限を継承します。
+ +

例: 序文の例を参照してください。

+
+ +
+ +

+<page-security> 要素はグローバルなセキュリティ制限と、その定義を宣言するために使われる、他の PSML 要素を保持するためのシンプルな入れ物です。この要素は page.security ファイルとして存在し、常に PSML ファイルのシステムディレクトリのルートディレクトリに存在します。page-security 要素の有効な属性は 1 つだけ存在します。 +

+ + + + + + + + + + +
属性説明
version一般的な用途のバージョントラッキングの属性。現時点では PALポータル では使われていません。
+ +

+<page-security> 要素は PSML 要素に関連する 2 つのセキュリティ制限を含みます。 +

+ + + + + + + + + + + + + + +
要素説明
security-constraints-def*省略可能の定義である、セキュリティ制限のコレクションの名前。これらのセキュリティ制限はページフラグメントフォルダリンク内で、そして再利用とセキュリティのメンテナンスを容易にするために、この要素内で参照されます。
global-security-constraints-ref*サイト内の全てのセキュリティ制限を適用するための、省略可能の定義であるセキュリティ制限参照。それぞれのシンプルな要素のテキストは、このエレメント内のここで指定された名前のセキュリティ制限の定義を参照します。
+ +

例: 序文の例を参照してください。

+
+ +
+ +

+ページ, フォルダ, リンク の <metadata> 要素はロケール特有のタイトルと短いタイトルのテキストを定義するのに使われます。これらの要素は何度でも、含まれる PSML 要素内で表れるかもしれません。しかし、複数の値が 1 つのロケールにたいして指定してはいけません。PSML XML 文書は、普通は広範囲のキャラクタセットをサポートするために、UTF-8 エンコーディングで宣言されます。 +

+ + + + + + + + + + + + + + +
属性説明
nameメタデータテキストの名前。この名前は、ロケール特有のタイトルテキストを指定するための、'title' と 'short-title' のどちらかを指定してください。
xml:langメタデータテキストのためのロケール言語または言語/国セレクタ。標準の Java ロケール名が期待されます (ISO-639 と ISO-3166)。有効な値として 'en' や 'en_US' を含みます。
+ +

例:

+ + + ... + Ma Premiere Page de PSML + ¡Bienvenido a PALポータル! + Köszönti a PALポータル! + ... + +]]> +
+ +
+ +

+pagesfragmentsfolderslinkspage security 要素内で現れる <security-constraints>、<security-constraints-def>、<global-security-constraints-ref> 要素については宣言型セキュリティ制限に関するドキュメントに別途記述されています。 +

+ +

+宣言型セキュリティ制限のガイド +

+
+ +
+ +

+ページフォルダ 要素内で現れる <menu> 要素は宣言型メニューのガイドに別途記述されています。 +

+ +

+宣言型メニューのガイド +

+ +
+ + +
+ Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-psml.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-security-declarative-psml.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-security-declarative-psml.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-security-declarative-psml.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,337 @@ + + + + + Guide to Declarative Security through PSML + Guide to Declarative Security through PSML + + + + + + + + + +
+ +

+

+

+ +

+セキュリティ制約は、ページとフォルダに適用されます。セキュリティ制約は、ページとフォルダに対するアクセスを許可したり拒否したりします。制約は、以下の 4 つの場所の 1 つまたは全てで定義されます。 +

    +
  • 1. グローバル: PSML ツリーのルートに存在する page.security ファイル内の宣言として。
  • +
  • 2. フォルダ: 各ディレクトリにオプショナルに存在する folder.metadata ファイル内で。
  • +
  • 3. ページ: 特定のページへのアクセスを制限するために PSML ファイル内で。
  • +
  • 4. フラグメント: ページ内の特定のフラグメントに対するアクセスを制限するために PSML ファイルの中で。
  • +
+

+ + +

+許可は、ページまたはフォルダへのアクセスに対するパーミッション、承認、権限の授与、プリンシパルのリストのどれかに関係します。セキュリティ制約を与えるということは、 1 つ以上のパーミッションと組み合せた、 1 つ以上のセキュリティプリンシパルのリストの関連付けを行うということです。制約を与えると、関連づけられたパーミッションのリストの通りになるようページまたはフォルダへのアクセスが許可されます。 +

+
+ + +

+否認のセキュリティ制約は、 1 つ以上のセキュリティプリンシパルと共に宣言されます。制約の否認は、与えられたプリンシパルのリストの通りになるよう、ページやフォルダに対するアクセスを禁止します。制約の否認は、制約の承認の前にリストアップされる必要があることに注意してください。 +

+
+ + +

+ページとフォルダのリソース制約が適用されるとき、制約は 宣言型 または 参照型 の制約のどちらかである可能性があります。宣言型の制約は、特定のページまたはフォルダのリソースが、適切に使われるために宣言されます。参照型の制約は、中央集権的なセキュリティ制約リソースである page.security ファイル内で宣言された制約を参照します。サイト毎かサブサイト毎に、任意のページやフォルダ内で参照される制約を宣言するために、page.security が 1 つあります。 +

+
+
+
+ +

+セキュリティ制約は、PSML ファイル内、もしくはフォルダのメタデータファイル内、もしくはグローバルなセキュリティの宣言中にある XML 要素です。セキュリティ制限には name という属性が 1 つ存在します。セキュリティ制約は、以下の要素を持ちます。 +

+ +
    +
  • roles - カンマで区切られた 1 つ以上のロールプリンシパルのリスト、もしくは全てのロールを表す *
  • +
  • groups - カンマで区切られた 1 つ以上のグループプリンシパルのリスト、もしくは全てのグループを表す *
  • +
  • users - カンマで区切られた 1 つ以上のユーザプリンシパル、もしくは全てのユーザを表す *
  • +
  • owner - 単一のユーザプリンシパル
  • +
  • permissions - カンマで区切られた 1 つ以上のパーミッション (view, edit, help) のリスト
  • +
+ +

+最初の 4 つの要素 (roles, groups, users, owner) は全て、承認されるもしくは拒否されるパーミッションを持つプリンシパルを定義します。 +

+ + +

+パーミッションは、セキュリティ制限によって許可が与えられるポータルのモードです。パーミッションは許可を行うだけで、否認はしません。 +view パーミッションは、オペレーティングシステムにおける read パーミッションと同様のものです。 +edit パーミッションは、オペレーティングシステムにおける write パーミッションと同様のものです。 +help パーミッションは、他のポータルで info パーミッションとなっているものと同様のものです。 +

+
+ + + +

+制約は、与えられたリソースへのパーミッションのセットを、 1 つ以上のロールプリンシパルに与えることができます。ロールは、承認されたロールプリンシパル (つまりそのユーザがメンバーであるということ) のユーザリストから得られます。もし承認されたユーザが、リストされたロールのどれかのメンバーであるのなら、リソースに対するパーミッションが与えられます。 +

+ + + adminstrator, manager + view, edit + +]]> + +

+制約は、ロールプリンシパルのリソース全体に対するアクセスを拒否することも可能です。もし承認されたユーザが、リストされたロールのどれかのメンバーであるのなら、リソースに対する全てのアクセスが拒否されます。 +

+ + + adminstrator, manager + +]]> +
+ + +

+制約は、与えられたリソースへのパーミッションのセットを、 1 つ以上のグループプリンシパルに与えることができます。 +グループは、承認されたグループプリンシパル (つまりユーザがメンバーであるグループ) のユーザのリストから得られます。 +もし承認されたユーザが、リストされたグループのどれかのメンバーであるのなら、リソースに対するパーミッションが与えられます。 + + accounting, development + view + +]]> +制約は、グループプリンシパルのリソース全体に対するアクセスを拒否することもできます。もし承認されたユーザが、リストされたグループのいずれかのメンバーであるのなら、リソースに対する全てのアクセスが拒否されます。 + + accounting, development + +]]> +

+
+ + +

+制約は、与えられたリソースへのパーミッションのセットを、 1 つ以上のユーザプリンシパルに与えることができます。現在のユーザは、リソースに対するパーミッションを与えるためにカンマで区切られたリスト中にリストされる、プリンシパルの 1 つでなければなりません。 + + joey, deedee, johnny + view, edit, help + +]]> +制約は、ユーザプリンシパルの全てのリソースに対するアクセスを拒否することも可能です。もし承認されたユーザがリスト内にあれば、全てのアクセスは拒否されます。 + + fred + +]]> +

+
+ + +

+ 1 つ以上の種類のプリンシパルの集合に対してパーミッションを与えたり、拒否したりできることに注意してください。例えば、ここではロール (manager, developer) とグループ (QA と Research) と特定のユーザ (dilbert) に対して、view と edit のパーミッションを与えています。もし承認されたユーザが、ここにリストされたロール、ユーザ、グループのどれかのメンバーであるのなら、このリソースに対するパーミッションが与えられます。 +

+ + + hacker, coder, guru + unix, linux, freebsd + betty, fred, barney, wilma + view, edit + +]]> + +

+制約は、プリンシパルの組み合せが、全てのリソースに対するアクセスを拒否することも可能です。もし承認されたユーザが、リストされたグループやロールやユーザのメンバーであれば、リソースに対する全てのアクセスは拒否されます。 +

+ + + hacker, coder, guru + unix, linux, freebsd + betty, fred, barney, wilma + +]]> +
+ + +

+全てを意味する * (アスタリスク) は、ロール、グループ、ユーザ、パーミッションの全てに適用可能です。 + + * + * + +]]> +

+
+ + +

+ TODO +

+
+
+
+ +

+宣言型の制約は、サイトのルートにある page.security ファイル内で宣言されます。宣言型の制約は、security-constraints-ref タグを使って、ページやフォルダ内で参照されます。グローバルな制約も宣言型の制約です。これらは、ルート PSML リポジトリ内の page.security ファイル内で定義され、見付かります。グローバルな制約との違いは、page.security ファイルのスコープ内 (すなわちサイト) の全てのフォルダとページに、暗黙のうちに適用されることです。PALポータル をインストールすると、 1 つしか page.security ファイルは存在できないことに注意してください。 +

+ + + + admin + view, edit + + + admin +]]> + + +

+セキュリティ制約の宣言には、PALポータル のデフォルトの配備で作成されるものがあります。 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
制約名与えられる対象パーミッショングローバルかどうか
adminroles: adminview, edityes
managerroles: managerviewno
usersroles: user, managerviewno
public-viewusers: *viewno
public-editusers: *view, editno
+

+
+
+
+ +

+フォルダのセキュリティ制約は、サイト内の各フォルダにオプショナルで存在する folder.metadata ファイル内の security-constraints リスト 内に記述されます。folder.metadata ファイルがない場合、もしくはそのファイル内にセキュリティ制約の記述がない場合は、フォルダは、サイトかサブサイトのルートフォルダまでディレクトリをたどって、親フォルダの制約を継承することに注意してください。以下に 2 つの例を示します。 1 つ目は参照型の制約であり、 2 つ目は宣言型の制約です。 + + public-view + + engineering + view + + +]]> +

+ +

+全てのセキュリティ制約は、security-constraints 内に記述しなければなりません。 +

+
+
+ +

+ページのセキュリティ制約は、PSML ファイル内の security-constraints list に記述されます。これはオプショナルです。このファイルにセキュリティ制約の記述がない場合は、フォルダは、自身が存在するフォルダの制約を継承することに注意してください。ページのセキュリティ制約は、宣言型のセキュリティ制約と参照型のセキュリティ制約から作成されます。以下に、 2 つの例を示します。 1 つ目は参照型の制約、 2 つ目は宣言型の制約です。 +

+ + + global-view + + accounting + view, edit + + +]]> + +

+全てのセキュリティ制約は、security-constraints 内に記述しなければなりません。 +

+
+
+ +

+ページのセキュリティ制約と同様に、フラグメントのセキュリティ制約は、PSML ファイル内の security-constraints リスト に記述されます。この記述は省略可能です。期待通り、セキュリティの制約のリストがない場合は、フラグメントは、自身が属するページの制約を継承します。view パーミッションだけがフラグメントの制約に対してチェックされることに注意してください。他のパーミッションは含まれるページに対してのみテストされます。 +

+
+
+ +

+宣言型のセキュリティ制約は、デフォルトでページマネージャコンポーネントの Spring の設定で有効になります。以下に、page-manager.xml という Spring の部品設定ファイルのデフォルトのページマネージャ bean の設定を示します。 +

+ + + + + + + + false + + true + +]]> + +

+この例の 6 番目 (index="5") の真偽値のコンストラクタ引数が、"制約セキュリティ" モデルを有効にするかどうかの指定を行うものです。もし、宣言型のセキュリティ制約が有効でないのなら、全てのインライン、参照型、グローバルのセキュリティ制約は無視されます。 +

+
+ + +
Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-security-declarative-psml.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-security.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-security.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-security.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,71 @@ + + + + + セキュリティのガイド + セキュリティ設定の概略 + + + + + + + + +
+ +

+ PALポータル のセキュリティアーキテクチャの概略は + + この文書 + + にあります。 +

+ + +

+ PALポータル は複数の認証メカニズムが関係するセキュリティ SPI モデルを利用した + + LoginModule の実装 + + を提供しています。 +

+ +

+ PALポータル の認証の設定は ポータルアプリケーションを構築するためのディレクトリ にある security-spi-atn.xml ファイルによって管理されます。PALポータル は +

+ に対する認証をサポートします。 +

+
+ + +

+ PALポータル は リレーショナルデータベースがバックエンドとなる JAAS ポリシー実装 を提供します。 +

+ +

+ その上 PALポータル の承認の実装は SPI モデルに依存しています。そして、security-spi-atz.xml で設定を行います。 + 設定の詳細は この文書 を参照してください。 +

+
+
+ +
Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-security.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-simple-portlet.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-simple-portlet.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-simple-portlet.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,144 @@ + + + + + PALポータル で動かす簡単なポートレットのガイド + 簡単なポートレットを作るための文書 + + + + + + + + +
+ +

+ このガイドは、とても簡単なポートレットを作成するためのチュートリアルです。ポートレットの開発者は以下のような順序で開発を行います。 +

+ + +

+ simplest/WEB-INF/classes ディレクトリに Simplest.java というファイルを以下のように作成してください。 + +public class Simplest extends javax.portlet.GenericPortlet +{ + public void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) + throws javax.portlet.PortletException, java.io.IOException + { + response.setContentType("text/html"); + response.getWriter().println("A very simple portlet."); + } +} + +

+ +

+ 以下のようにコマンドを入力してクラスをコンパイルしてください。 + +javac -cp ~/.maven/repository/org.apache.portals.jetspeed-2/jars/portlet-api-1.0.jar Simplest.java + +

+
+ + +

+ simplest/WEB-INF ディレクトリに portlet.xml ファイルを作成してください。 + + + + Simplest + Simple Display Name + Simplest + + text/html + VIEW + + en + + Simple Title + The world's simplest portlet + + +]]> + +

+
+ + +

+ simplest/WEB-INF ディレクトリに web.xml ファイルを作成してください。 + + + + Simplest + The world's simplest portlet +]]> + +

+
+ + +

+ あなたの PALポータル ポータルディレクトリ以下の src/webapp/WEB-INF/pages ディレクトリに simplest.psml ファイルを作成してください。portlet-app id と portlet-name はポートレットフラグメントを特定するために結合されます。あなたのポータルをリビルドしてください。 + + + The simplest portlet in the world + La plus simple portlet du monde + + + + + + + + + + public-view + +]]> + +

+
+ + +

+ simplest ディレクトリで、以下のようなコマンドを実行して、以上のファイルを war ファイルにまとめてください。 + +jar cvf ../simplest.war . + +

+
+ + +

+ war ファイルを $CATALINA_HOME/webapps/jetspeed/WEB-INF/deploy にコピーしてください。PALポータル は webapp を配備します。ブラウザで + http://localhost:8080/jetspeed/portal/simplest.psml にアクセスしてください。 +

+
+
+ +
Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-simple-portlet.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-site.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-site.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-site.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,38 @@ + + + + + サイト + PALポータル サイトを作成するデザイナ用の資料 + + + + + + + + +
+ +

+TODO: サイトに関するコンポーネントについて述べる。たとえば、ページ、フォルダ、フラグメント、デコレータ、レイアウト、フォルダメタデータ、リンク、PSML、ドキュメントセット +

+
+ + +
+ Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-site.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-sso.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-sso.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-sso.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,47 @@ + + + + + PALポータル のシングルサインオン + PALポータル の SSO (シングルサインオン) のドキュメント + + + + + + + + +
+ +

+PALポータル には URL やアプリケーション単位でサイトを保護するための資格を保存しておけるシングルサインオンコンポーネントがあります。 +

+ +

+SSO は以下の 3 つのコンポーネントを含む機能です。 +

+

+
+ + +
+ Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-sso.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-user-attributes.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-user-attributes.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-user-attributes.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,149 @@ + + + + + ユーザ属性定義のガイド + PLT.17 ユーザ情報に関する設定 + + + + + + + + +
+ +

+ ポートレット仕様はどのようにしてポートレットアプリケーションがユーザ属性を使用できるのかについて定義をしています。属性は portlet.xml で以下のように定義されます (PLT.17.1 参照)。

+ + + + User Given Name + user.name.given + + + User Last Name + user.name.family + + + User eMail + user.home-info.online.email + + ... +]]> + +

+ このように属性が定義されると、ポートレットは PortletRequest インタフェース (PLT.17.2 参照) で定義された USER_INFO 定数を使って PortletRequest から変更できない Map としてログインしているユーザの現在値にアクセスすることが可能になります。 +

+ + +Map userInfo = (Map)request.getAttribute(PortletRequest.USER_INFO); +String givenName = (userInfo!=null) ? (String)userInfo.get("user.name.given") : ""; +String lastName = (userInfo!=null) ? (String)userInfo.get("user.name.family") : ""; +String email = (userInfo!=null) ? (String)userInfo.get("user.home-info.online.email") : ""; + +

+ ポートレット仕様で定義されないのは、ポータルが定義されたユーザ属性をユーザの具体的な属性にどのようにマッピングするかということです。 +

+
+
+ +

+ PALポータル は具体的なユーザ属性を定義したり、そのユーザ属性へのアクセスを定義したりするためにとても柔軟な方法を提供しています。

+ +

+ 具体的なユーザ属性は PALポータル が情報を格納しておくためのデータベースバックエンドとしている User Preferences を使って格納されます (これは PALポータル の殆んどのコンポーネントと同じような方法でカスタマイズできます)。ユーザ属性の実装は PALポータル の java.util.prefs.Preferences の実装を利用しています。
+ 具体的なユーザ属性は User preferences 内の特定のノード下に格納されます。そして任意の名前の属性を自由に含むことができます。
+ これらの具体的なユーザ属性は portlet.xml 内で以下のような 2 つの方法で定義されたユーザ属性にマップされます。 +

    +
  1. + 属性名との完全一致の使用 +
  2. +
  3. + jetspeed-portlet.xml 内で定義されるカスタムマッピングの使用 +
  4. +
+

+ + +

+ もし対象とするポータルとして PALポータル を利用して新しいポートレットアプリケーションを書いたのなら、ポータル内で具体的なユーザ属性と一致する User Attributes を定義することは簡単でしょう。
+ しかし、もし既に存在するポートレットアプリケーションを PALポータル 上に配備したいのなら、ポートレットアプリケーションに必要な属性名と PALポータル の User Preferences に格納される具体的な属性名の間のミスマッチがあるかもしれません。 +

+ +

+ + 注意: ポートレット仕様は Appendix PLT.D. で推奨される属性名のセットを定義しています。
+ これらの属性名を使ったポートレットアプリケーションと具体的なユーザ属性をこれらの名前を使って格納しているポータルは以下で述べるようなカスタムの属性のマッピングを使う必要は一切ありません。
+ PALポータル は具体的なユーザ属性を全く自由に定義することができますが、可能な限りこれらのあらかじめ定義された属性を使うことが推奨されます。

+ +

+ jetspeed-portlet.xml に jetspeed 特有の設定やカスタマイズを記述することができます。
+ このドキュメントの配備は必須ではありません。しかし、もしポートレットアプリケーションの war ファイル内の WEB-INF フォルダにこのドキュメントが見付かれば、処理が行われます。
+ PALポータル 特有の設定は "http://portals.apache.org/jetspeed" 名前空間を使って定義しなければなりません。 +

+ +

+ ユーザ属性のマッピングはカスタムのユーザ属性名を定義する "name" エレメントと、その属性名にマップされる具体的な属性名を定義する"name-link" エレメントを含む "user-attribute-ref" エレメントによって定義されます。 +

+ + + + user-name-given + user.name.given + + + user-name-family + user.name.family + + ... +]]> + +

+ 先の例のようなカスタムのマッピングを使って、ポートレットは次のようにユーザ属性にアクセスできます。

+ + +Map userInfo = (Map)request.getAttribute(PortletRequest.USER_INFO); +String givenName = (userInfo!=null) ? (String)userInfo.get("user-name-given") : ""; +String lastName = (userInfo!=null) ? (String)userInfo.get("user-name-family") : ""; +String email = (userInfo!=null) ? (String)userInfo.get("user.home-info.online.email") : ""; + +

+ カスタムのマッピングが定義されていない (ログオンしているユーザのために定義されている具体的な属性が提供されている) email 属性も完全一致でのアクセスが可能であることに注意してください。 +

+
+
+
+ +

+ PALポータル にはユーザ管理を含むいくつかの管理ポートレットがあります。
+ ユーザ管理ポートレットを使って、非常に簡単にユーザに対する具体的な属性を定義したり修正したりできます。 +

+ + +

+ デフォルトの PALポータル で配備され、スタートページに表示される、ユーザ情報テスト (User Info Test) デモポートレットは前述の例のユーザ属性定義を使い、ログオンユーザの値を表示しています。(これらの値はサーブレット内の HttpServletRequest と PortletRequest の両方からアクセス可能であることを示しています) +

+ +
+ +
Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/guide-user-attributes.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/images/create-patch.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/images/create-patch.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/images/j2-overview.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/images/j2-overview.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/images/jetspeedservlet-c.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/images/jetspeedservlet-c.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/index.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/index.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/index.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,98 @@ + + + + + 資料ガイド 目次 + Jetspped 2の資料ガイド 目次 + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/guides/index.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/how-to-help.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/how-to-help.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/how-to-help.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,82 @@ + + + + + 協力する方法 + 協力する方法 + + + + + + + + +
+ + +

+ 多くのオープンソースプロジェクトと同様に、PALポータル に協力するための多くの方法があります。 +

    +
  • ユーザメーリングリスト を購読して、コミュニティからの質問に答える。 + オープンソースでは、盛んなコミュニティがプロジェクトを成功させます。基本的な質問を尋ねることを恥ずかしがらないでください。皆、そこから始まります。
  • +
  • 遭遇したバグや問題を PALポータル バグトラックシステム に報告してください。 + バグを報告する前に、ユーザメーリングリスト または 開発用メーリングリスト でも問題について、議論して確認してください。 +
  • +
  • 問題に遭遇したときに、それを修正したくなるかもしれません。これは、コミュニティを活気づけるので、奨励しています。 + 修正した場合は、報告した問題に パッチを提出 してください。
  • +
+

+
+ + +

+ 協力したい理由はいろいろありますが、それらのいくつかの強調すべき点は、 +

    +
  • ほかの人たちがそれらの問題を解決するのに協力すれば、問題に陥ったときにその人たちがおそらく協力してくれるでしょう。
  • +
  • パッチの提供することで、機能に関する優先順位に影響を与えることができ、あなたが作成した変更を統合することができます。
  • +
  • 問題を報告することで、PALポータル がより大きなプロジェクトになり、全体的なその品質も改善する手助けとなります。
  • +
  • あなたのプロジェクトにおいても助けとなるベストプラクティスを共有および学ぶことができるとともに、すばらしい人たちと知り合いになれるでしょう。
  • +
+ 私たちは、コミュニティの一部として、あなたが参加されるのを楽しみにしています。 +

+
+ + +

+ Apache でのプロジェクトは、実力主義 の元で運営されています。 + コミッタになるためには、まず、あなたが参加していることを示していく必要があります。それをする一番良い方法は、パッチを提出して、コミュニティに参加し、関心のあることを明らかにしていくことです。 + それは、協力と貢献していくために、時間と意欲が必要になります。 + これは、はじめは、少し気後れするかもしれませんが、コミュニティは、関心や参加する人たちをいつも助けてくれるでしょう。 +

+
+ + +

+ ここにいくつかの有用なその他の資料のリンクを示します。 +

+

+
+
+ +
+ Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/how-to-help.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/breadcrumbs.jpg =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/breadcrumbs.jpg ___________________________________________________________________ Name: svn:mime-type + image/jpeg Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/collapsed.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/collapsed.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/definingUserAttributes.jpg =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/definingUserAttributes.jpg ___________________________________________________________________ Name: svn:mime-type + image/jpeg Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/expanded.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/expanded.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/external.png =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/external.png ___________________________________________________________________ Name: svn:mime-type + image/png Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/folder-open.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/folder-open.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/h3.jpg =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/h3.jpg ___________________________________________________________________ Name: svn:mime-type + image/jpeg Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/h5.jpg =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/h5.jpg ___________________________________________________________________ Name: svn:mime-type + image/jpeg Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/hide_original.png =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/hide_original.png ___________________________________________________________________ Name: svn:mime-type + image/png Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/layouts/layouts-overview.png =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/layouts/layouts-overview.png ___________________________________________________________________ Name: svn:mime-type + image/png Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/newwindow.png =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/newwindow.png ___________________________________________________________________ Name: svn:mime-type + image/png Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/pal-logo.png =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/pal-logo.png ___________________________________________________________________ Name: svn:mime-type + image/png Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/pal_banner.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/pal_banner.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/pdf.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/pdf.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/portlets/gems.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/portlets/gems.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/sflogo.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/sflogo.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/sflogo.png =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/sflogo.png ___________________________________________________________________ Name: svn:mime-type + image/png Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/supporters/derby.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/supporters/derby.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/supporters/directory.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/supporters/directory.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/supporters/lucene.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/supporters/lucene.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/supporters/ojb.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/supporters/ojb.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/supporters/pluto.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/supporters/pluto.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/supporters/springframework.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/supporters/springframework.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/users/bluesunrise.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/users/bluesunrise.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/users/convergys.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/users/convergys.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/users/groundwork.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/users/groundwork.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/users/iwise.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/users/iwise.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/users/jahia.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/users/jahia.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/users/rosa.jpg =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/users/rosa.jpg ___________________________________________________________________ Name: svn:mime-type + image/jpeg Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/users/ugs.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/users/ugs.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/usingUserAttributes.jpg =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/images/usingUserAttributes.jpg ___________________________________________________________________ Name: svn:mime-type + image/jpeg Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/index.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/index.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/index.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,74 @@ + + + + + PALポータル 設定ガイド + PALポータル 設定ガイド + + + + + +
+

+ このドキュメントは、PALポータルの設定を担当するユーザーを対象にしています。 +

+
+
+

+ このドキュメントでは、PALポータルの詳細な設定方法を示しているため、PALポータルの基礎的な知識が必要になります。 +

+
+
+

+ ダウンロード、専門的サービス、サポート、その他の開発者情報については、次にアクセスしてください。 +

+

+
+
+

+ 本製品に関する技術的質問で、ドキュメント内に解決策が得られない場合は、次にアクセスしてください。 +

+

+
+
+

+ Portal Application Laboratoryプロジェクトでは、このドキュメントに記載されているサードパーティーの Web サイトの有効性については責任を持ちません。 + Portal Application Laboratoryプロジェクトはそのようなサイトやリソースを通じて、利用可能なコンテンツ、広告、製品、サービス、その他のドキュメントなどについて、保証、責任、義務を負いません。 + Portal Application Laboratoryプロジェクトはそのようなサイトやリソースと通じて、利用可能なコンテンツ、広告、製品、サービス、その他のドキュメントなどを、使用または信用したり、それに関連して発生または申し立てられた、一切の損傷や損害に対しては責任または義務を負いません。 +

+
+
+

+ Portal Application Laboratoryプロジェクトは、このドキュメントの改善に努めており、読者からのコメントおよび提案などを歓迎しています。 +

+

+
+
+

+ このドキュメントは、Jetspeed 日本語版プロジェクトにより提供されている Apache Portals Jetspeed 2のサイトの翻訳を元に作成されています。ドキュメントを作成した Jetspeed チームおよびドキュメントを日本語に翻訳された Jetspeed日本語版チームに感謝いたします。 +

+
+ +
Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/index.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/j1-users.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/j1-users.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/j1-users.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,231 @@ + + + + + Apache Portals Jetspeed version 1.x ユーザに関して + Apache Portals Jetspeed version 1.x ユーザに関して + + + + + + + + +
+ +

PALポータル は新規のプロジェクトで、新たに書き直され、Apache Portals Jetspeed version 1.x への依存性はありません。 + PALポータル は業界標準に基づき、大規模な企業ポータルアプリケーション用にデザインされています。 + 一番の違いは、PALポータル コンポーネント指向アーキテクチャです。すべては、Spring で組み合わされます。 + コンポーネントは、Turbine のサービスを標準化されたコンポーネントモデルに置き換えています。 + Apache Portals Jetspeed version 1.x では完全にかけていた、新しいポートレットアプリケーションの配備は、 + ポートレット API 仕様に実装されました。プロパティによる Turbine のファイルベース設定は、 + 管理されたコンポーネントに置き換えられています。 + PALポータル では、Apache Portals Jetspeed version 1.x アーキテクチャに結びついたレガシーなプロジェクトから完全に切り離されました。 +

+
+
+ +
    +
  • 1. Java ポートレット API 標準に完全準拠
  • +
  • 2. ポータルからポートレットアプリケーションの分離
  • +
  • 3. ポートレットアプリケーションおよびポータルレイアウトの動的な配備モデル
  • +
  • 4. Spring コンポーネントベースのアーキテクチャ
  • +
  • 5. マルチスレッド化されたポートレット集約エンジン
  • +
  • 6. 拡張可能なアーキテクチャ
  • +
  • 7. パイプラインベースのリクエスト処理
  • +
  • 8. JAAS セキュリティ
  • +
  • 9. Struts, JSF, PHP, Perl, Velocity のブリッジを統合
  • +
  • 19. CMS ベースのサイトナビゲーション
  • +
+
+
+ +

ほとんどありません。

+ +

+ 実際に、PALポータル は Apache Portals Jetspeed version 1.x のどんなコードも再利用していません。 + いくつかの概念は、PALポータル でもそのままですが、新しいデザインと実装をしています。 + 以下の表は、Apache Portals Jetspeed version 1.x から PALポータル で継続されているいくつかの概念です。 + その概念は継続されていますが、その中のいくつかは、完全に異なるので注意してください。 +

+ +
    +
  • 1. PSML - ポートレット構造化マークアップ言語 (Portlet Structured Markup Language) + ページ上でポートレットのレイアウトを定義します。 + その目的は同じですが、XML フォーマットは変更されています。 + 移行は可能で、移行ツールが必要になります。 + 現在、PSML はページタイプのリソースとしての PALポータル ナビゲーションサイトに適合しています。 + 現在、PSML 移行ツールはありません。しかし、XSLT 変換で行うのが良い選択かもしれません。 +
  • +
  • 2. ポータル全体のセキュリティポリシーと制約 - PALポータル は 2 種類のセキュリティ機構を持ちます。 + JAAS ベースのセキュリティポリシーと、Apache Portals Jetspeed version 1.x のような宣言的セキュリティ制限です。 + Apache Portals Jetspeed version 1.x の制約は PSML に対して制限するものでしたが、PALポータル の宣言的セキュリティ制約は、 + それに加えてフォルダやリンクに対しても適用されます。
  • +
  • 3. ポートレット - ポートレットは新しいポートレット API に従わなければなりません。 + 移行ツールは現在ありません。 + Apache Portals Jetspeed version 1.x ポートレット API は PALポータル では利用できません。 +
  • +
  • 4. Turbine サービス (Fulcrum) はなくなりました。PALポータル は Spring コンポーネントベースです。
  • +
  • 5. レジストリ - Apache Portals Jetspeed version 1.x レジストリは PALポータル で廃止されました。 + すべてのポートレットは PALポータル のレジストリデータベース内に保存されます。 + 移行ツールは現在ありません。 + ご利用のポートレットは、JSR 168 ポートレットへ変換して、すべてのポートレットを 1 つのポートレットアプリケーションにパッケージングして、 + 標準の WAR ファイルとして配備することをおすすめします。 + そのほかのレジストリは、すべて廃止しています。
  • +
  • 6. JSP および Velocity テンプレート - テンプレートはいくつかの拡張として再利用できます。 + RunData またはその他の Turbine や PALポータル ツール、タグなどへの参照は、 + 変換する必要があります。 +
  • +
  • 7. 制御とコントローラ - これらの概念は変更され、デコレータおよびレイアウトと現在呼ばれています。 + 制御とコントローラの Turbine モジュールの概念は、サポートされていません。 + レイアウトとデコレータはポートレットとして実装されています。 + つまり、簡単なマークアップになっています。レイアウトとテンプレートは、 + 配備可能な単位としてポータルへ配備することができます。
  • +
  • 8. PALポータル の設定と PALポータル コンポーネントアセンブリはプロパティーファイルを置き換えます。 + コンポーネント (サービス) は、プロパティファイルで定義されるのではなく、組み立てられます。 + Apache Portals Jetspeed version 1.x の多くの機能は、Apache Portals Jetspeed version 1.x の静的なプロパティファイルで読み込みのみ可のプロパティとして表現されています。 + PALポータル コンポーネントは、JMX を用いて、構成することができます。 +
  • +
+
+
+ +

+ Apache Portals Jetspeed version 1.x は Turbine の MVC-2 フレームワークと強く結びつき、この結びつきが、PALポータル API の多くの箇所に及んでいます。 + PALポータル では、MVC-2 コントローラとしての Turbine に依存しません。 + それに代わり、関連するパターンを分離して、1 つのことを実行し、かつ、それをうまく動かすことに集中します。 + つまり、ポータルの実装をすることです。一方、Apache Portals Jetspeed version 1.x は MVC コントローラ、ポータルエンジン、ポートレットコンテナ、などすべてがサーブレットに強く結びついた1カ所に結びついています。 + PALポータル は、そのアーキテクチャの中で、これらの関連することを明確に分けています。 + ポータルエンジンは、PALポータル です。それは、ページ集約用の MVC で、作業を振り分けるサーブレットアーキテクチャの特性を利用し、ポートレットの実際の描画をポートレットアプリケーションに委譲します。 + これらのポートレットアプリケーションでもやはり、Struts ポートレットアプリケーション、JSF ポートレットアプリケーション、または、Turbine ポートレットアプリケーションフレームワークのような、独自の MVC フレームワークを持っています。 +

+
+
+ +

+ ポートレット API ポートレットからもっとも顕著に欠けているものは、RunData クラスです。 + Apache Portals Jetspeed version 1.x API は、偏在的に RunData クラスを使用して、サーブレットリクエストとサーブレットレスポンスの両方へのラッパーとして働いています。 + Turbine への他の依存関係は、ポートレットアクション、ポートレット集約エンジン (ECS)、サービスアーキテクチャ、設定および Turbine モジュールが含まれます。 + これらの依存関係は、新しいバージョンではありません。 +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Apache Portals Jetspeed version 1.xPALポータル
Run Dataポートレット API: ポートレットリクエストおよびポートレットレスポンス
ポートレット集約エンジン (ECS)PALポータル マルチスレッドポートレットコンテナエンジン
Turbine サービスアーキテクチャPALポータル コンポーネント
プロパティ設定ファイルSpring の設定、JMX
Turbine モジュール (アクション)ポートレット API のアクション
+
+
+ +

PALポータル ポータルは、ポートレットコンテナを実装していません。 + Pluto は、ポータル内で実行するポートレット用の JSR 168 インターフェース規約を実装しています。 + Pluto コンテナは、ポータル用のポートレットとのすべての通信を処理します。 +

+
+
+ +

集約エンジンおよび Apache Portals Jetspeed version 1.x ポートレット API は、廃止された Jakarta パッケージの ECS (Element Construction Set) と結びついています。 + ECS は、Java コードを用いて HTML を生成し、HTML をサーブレット出力ストリームへ送り出す前に、一時的な Java オブジェクト内にコンテンツを保存します。 + この Java オブジェクトの無駄な使用は、メモリ上の断片化、短期間でのガーベッジコレクション、大容量サイトでのページングを引き起こします。 + サーブレット API は、ポートレットコンテンツ出力ストリーム用のコンテンツストリームを提供します。 + PALポータル は、コンテンツ描画用のストリームベースのサーブレットに類似している、ポートレット API のストリームおよび読み込み部分の上にその集約エンジンを構成しています。 +

+
+
+ +

ポートレット API は、ポートレットのライフサイクル、アクションのイベント処理手順、および、コンテナがどのようにポートレットからコンテンツをキャッシュできるかを定義しています。 + ポートレットのライフサイクルは、Apache Portals Jetspeed version 1.x では明確に定義されていませんでした。 + ポートレット API ではポートレットの1つのインスタンスだけがコンテナ内のメモリに存在することを明記してあります。 + ポートレットの状態は、現在のユーザセッションに関するサーブレットの状態に直接関連しています。 + これは明確であるかもしれませんが、ポートレットの状態とライフサイクルは Apache Portals Jetspeed version 1.x では明確に定義されていませんでした。 +

+
+
+ +

バージョン 1 では、アクションは Turbine に結びついていて、適切にポートレットのクラスには統合されていませんでした。 + 実際に、アクションは、ポートレットから分けられたオブジェクトでした。ポートレット API では、アクションはポートレット上のメソッドです。 + アクションイベント処理と順序は、仕様で明確に定義されています。

+
+
+ +

Apache Portals Jetspeed version 1.x は、一般的なポートレットアプリケーションとしてのポートレットの配備や、それらをサポートするファイルに関する標準的な方法がありませんでした。 + アプリケーションをインポートするために、開発者は、PALポータル ウェブアプリケーション形式に合うように、レジストリファイル、クラスや JAR ファイル、PSML やテンプレートなどをパッケージ化しなければなりません。 +

+ +

PALポータル では、ポートレット API が PALポータル にポータルアプリケーションを配備するために、標準の配備記述子を定義しています。 + ポータルアプリケーションは、ポータルへ配備されます。 + ウェブアプリケーション (WAR) 配備モデルでパッケージ化されたサーブレットに似て、ポータルはポートレットアプリケーション配備モデルでパッケージ化されたポートレットをサポートします。 + ポータルアプリケーションアーカイブは、追加のポートレット配備記述子ファイルを含め、サーブレット仕様で定義された WAR 形式と同じフォーマットに従います。 + PALポータル の明確な利点は、標準形式でポートレットアプリケーションをサーバへ動的配備が可能なことです。 +

+
+
+ +

ポータルテンプレート、画像、スキン、コントローラ、制御などの Apache Portals Jetspeed version 1.x のリソースは、配備モデルのない 1 つの PALポータル ウェブアプリケーションに統合されました。 + たとえば、標準のスキンや上部のバナーを上書きするには、リソースファイルをポータルディレクトリ上にコピーして、適切なファイルを新しいリソースとして更新し、サーバを再起動する必要があります。 + これは、プロパティやファイルを統合するプロセスなどの、Apache Portals Jetspeed version 1.x を実際の本稼働ポータルに仕上げるプロセスに有効です。 + 実際に Apache Portals Jetspeed version 1.x では、今、Apache Portals Jetspeed version 1.x ポータル本体から本稼働ポータルを分けて管理するために Maven プラグイン持っています。 + この手のツールの必要性は、困難なポータルメンテナンス処理が必要とされる、ポータルリソース用の有用な配備モデルを Apache Portals Jetspeed version 1.x が持っていないという事実を取り繕うことから来ます。 +

+ +

PALポータル 本稼働用ポータルについては、ポータルリソースは PALポータル 固有のアーカイブフォーマットでパッケージ化します。 + つまり、ポータルリソース (上部のバナー、スキン、画像、スタイルシート) は、実行時に動的にポータルを調整するためにすべて配備することができます。 +

+
+
+ +

JSR168 はポートレットの仕様で、ポートレットとポータル間の相互運用性を実現します。 + この仕様は、ポートレットの集約、パーソナライズ、表示およびセキュリティの標準に関する API 群を定義しています。 + JSR168 のゴールは、以下のことです。

+ +
    +
  • 共通のポータル隠喩の定義
  • +
  • 標準のポートレット Java API の定義
  • +
  • 相互運用性と移植性の確認
  • +
  • 複数のマークアップサポートが可能
  • +
  • ほかの技術のと互換性の確認
  • +
+ +

PALポータル ポータルサーバは JSR 168 標準をサポートします。 + これは、真のポートレット移植性を導入するための、重要な第一歩です。

+
+ +
+ Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/j1-users.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/j2-maven-plugin.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/j2-maven-plugin.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/j2-maven-plugin.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,507 @@ + + + + + PALポータル Maven プラグイン + PALポータル Maven プラグインの仕様に関する資料 + + + + + + + + + +
+ +

+ Maven への機能の追加は、Maven プラグイン機構を通して、行われます。Maven は多数のプラグインとともに配布され、カスタムプラグインを記述するための拡張可能なフレームワークを提供しています。 + カスタム Maven プラグインの詳細については、Maven のウェブサイトの + プラグインの記述 (Writing a Plugin) で見つけることができます。 +

+ +

+ PALポータル は、PALポータル ベースのポータルアプリケーションを構築するために必要な、多くで共通の構築ゴールをまとめた、カスタム Maven プラグインを開発しました。 + これは、次の多くの利点があります。 +

+ +
    +
  • + 共通の構築ゴールのより良い再利用性。新たなポータルアプリケーションを作成する開発者は共通の構築操作に関する PALポータル Maven プラグインを活用することができます。 +
  • +
  • + すばやくポータルアプリケーションを始める機能。j2:portal.genapp を用いて、 + 新しいポータルアプリケーションを作成できます。新しいアプリケーションの開発者は、quickStart、ポートレットの配備など、共通ののビルド操作用 PALポータル Maven プラグインのゴールを再利用できます。 +
  • +
  • + Maven 2 (M2) への将来的な移行の準備。M2 を利用して、カスタムゴールはプラグイン内にカプセル化され、maven.xml は廃止されます。 + PALポータル Maven プラグインへの多くの PALポータル 構築ゴールを集中することで、M2 への移行は非常に簡単になります。 +
  • +
+
+
+ + + + + + + + + + + + + + + +
ゴール説明
j2:portal.genapp + カスタムポータルアプリケーションの生成または更新。 + このゴールの基本利用方法に関して、導入 + ドキュメントを確認してください。 +
+
j2:portal.genapp.minimal + j2:portal.genapp と同様に動作します。しかし、WEB-INF/pages から 以下のディレクトリとファイルだけをコピーします。 +
    +
  • /WEB-INF/pages/Administrative/** (all contents)
  • +
  • /WEB-INF/pages/page.security
  • +
+
+
+ + +

+ 上の j2:portal.genapp ゴールは、実際には、以下のようなポータルアプリケーションを個々に更新や設定するために使用することができるいくつかのゴールに関するラッパーでしかありません。 +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ゴール説明
j2:portal.copy.webapp + プラグインから ${org.apache.jetspeed.portal.webapp.dir} フォルダへ (静的な) PALポータル ポータルウェブリソースをコピーします。 +
+
+ このゴールの再実行は、前回のリソースを削除しませんが、既存のリソースは上書きされます。 +
+
+ PALポータル ポータルの新しいバージョンへアップグレードする必要がある場合は、まず、これらのリソースを削除しなければなりません。 + デフォルトでは、対象フォルダが Maven デフォルトの対象フォルダ内で構成され、clear ゴールの実行でそれが実行されます。 +
j2:portal.copy.webapp.minimal + j2:portal.copy.webapp と同様。しかし、WEB-INF/pages から以下のディレクトリとファイルをコピーするだけです。 +
    +
  • /WEB-INF/pages/Administrative/** (すべてのコンテンツ)
  • +
  • /WEB-INF/pages/page.security
  • +
+
j2:portal.conf.project + 新規に Maven プロジェクトを作成、または、${org.apache.jetspeed.portal.home.dir} フォルダ内の既存のポータルプロジェクト設定を更新します。 +
+ 次の 5 つの Maven プロジェクトファイルの階層が作成されます。 +
    +
  • project-info.xml
  • +
  • core-build.xml は project-info.xml を extend します
  • +
  • jetspeed-components.xml は core-build.xml を extend します
  • +
  • full-portal.xml は jetspeed-components.xml を extend します
  • +
  • project.xml は full-portal.xml を extend します
  • +
+ 上のファイルで、始めと最後のもの (project-info.xml と project.xml) は、追加的なプロジェクト情報や設定を提供するために修正されるかもしれません。そして、それらはこのゴールによって再度更新されません。他の 3 つのファイルだけは、このゴールによって書き換えられます。 + PALポータル の最新バージョンにアップグレードする必要がある場合は、独自にカスタマイズしたものを保存しておきます。 +
+
+ 追加的に、ポータルをさらにカスタマイズするために独自の maven.xmlを追加したり、project.properties または build.properties を追加できます。 + このゴールを再度実行するときには、これらを保存しておきます。 +
j2:portal.conf.sql + ${org.apache.jetspeed.portal.sql.dir} 以下に、設定されたデータベース用にポータル SQL スキーマ DDL を生成します。 + 静的に定義された共通および選択されたデータベース固有の SQL の DML および DDL (生成された DDL が優先可能なら) も同様にコピーします。 +
+
+ このゴールが実行されると、SQL 対象フォルダの内容は、はじめに削除されます。 +
j2:portal.conf.ojb + 現在選択されている、本稼働用のデータベース向けのフィルタがされている OJB 設定を、${org.apache.jetspeed.portal.target.dir} へコピーします。 +
+
+ 標準では、上記の対象フォルダは標準の Maven WAR 対象フォルダ以下に構成されます。 + Maven clear ゴールは、このフィルタされた OJB 設定を削除します。 +
j2:portal.conf.ldap + ${org.apache.jetspeed.portal.target.dir} フォルダへ LDAP 設定をコピーします。 +
j2:portal.conf.jetspeed + ${org.apache.jetspeed.portal.target.dir} フォルダへフィルタされた jetspeed.properties ポータル設定をコピーします。 +
+
+ デフォルトで、上記の対象フォルダは標準の Maven の WAR 対象フォルダ以下に構成されます。 + Maven clear ゴールは、このフィルタされた jetspeed.properties ファイルも削除します。 +
j2:portal.conf.tomcat + ${org.apache.jetspeed.portal.conf.dir} フォルダへの現在のデータベース接続設定を含めた、フィルタされた Tomcat コンテキスト記述子をコピーします。 +
+
+ ${org.apache.jetspeed.catalina.major.version} 設定に基づき、Tomcat 5.0.x または 5.5.x タイプのテンプレートコンテキスト記述子が使用されます。 +
+
+ フィルタされた Tomcat コンテキスト記述子は、j2:portal.deploy ゴールによって、Tomcat サーバへコピーされます。 +
+
+ Tomcat のメジャーバージョンおよびデータベース接続設定を変更したい場合、ポータルを (再) 配備する前に再度、このゴールを実行する必要があります。 +
+
+ デフォルトでは、上記の対象フォルダは、標準の Maven 対象フォルダ以下に構成されます。 + Maven clear ゴールは、このフィルタされたコンテキスト記述子ファイルを削除します。 +
+
+
+
+ + +

+ あらかじめ定義されたポートレットアプリケーションの組を、ポータルアプリケーションと同時に配備し、必要に応じてポータル用のデータベースを生成するために、いくつかのゴールを使用することが可能です。 +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ゴール説明
j2:doStart + ポータルアプリケーションを配備して、設定された Tomcat サーバ (共有ライブラリ、ポータルアプリケーションのコンテキストなど) 用の、必要な依存関係を設定するための汎用的なゴールです。 +
+
+ このゴールは、設定するために deployType プラグインプロパティが必要です。デフォルト値は + "j2:fullDeploy" です (以下参照)。 +
+
+ recreateDB プラグインプロパティが設定されている場合、j2:db.recreate ゴールが呼び出されます。 +
+ すべての既存の PALポータル 標準およびデモポートレットアプリケーションは、j2:remove.wars ゴールを通して、削除されます。 +
+ 共有の依存関係は、j2:copy.shared.deps を用いて、Tomcat サーバへコピーされます。 +
+ そして、最後に、設定された deployType プラグインプロパティの値は、指定された配備ゴールを実行するために使用されます。 +
j2:quickStart + deployType="j2:fullDeploy" および recreateDB=true を用いて、j2:doStart を呼び出します。 +
j2:nodbQuickStart + deployType="j2:nodbfullDeploy" および recreateDB=false を用いて、j2:doStart を呼び出します。 +
j2:basicStart + deployType="j2:basicDeploy" および recreateDB=true を用いて、j2:doStart を呼び出します。 +
j2:nodbBasicStart + deployType="j2:nodbBasicDeploy" および recreateDB=false を用いて、j2:doStart を呼び出します。 +
j2:minStart + deployType="j2:minDeploy" および recreateDB=true を用いて、j2:doStart を呼び出します。 +
j2:nodbMinStart + deployType="j2:nodbMinDeploy" および recreateDB=false を用いて、j2:doStart を呼び出します。 +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ゴール説明
j2:remove.wars + Tomcat サーバから、ポータル、すべての標準およびデモポートレットアプリケーション (以下の j2:fullDeploy を参照) と (存在すれば) それらのコンテンツ記述子を削除します。 +
j2:catalina.base.shared + 共通のポートレットコンテナ用に必要なすべての基本 JAR ファイルをコピーします。 +
j2:catalina.shared共通コンテナ用に必要なすべての JAR ファイルをコピーします。
j2:copy.shared.deps + j2:catalina.base.shared および j2:catalina.shared を呼び出すラッパーゴール。 +
j2:portal.deploy + Tomcat サーバへポータルアプリケーションおよびそれに依存するものだけを配備します。 +
+
+ はじめに、j2:remove.wars ゴールで現在のインストールされたポータルを削除します。 +
+ 次に、ローカル Maven リポジトリからアプリケーションサーバへ構築されたポータル WAR をコピーして展開します。 +
+ そして、ポータル用に Tomcat コンテンツ記述子をコピーします。(j2:portal.conf.tomcat ゴールも参照してください) +
+ 最後に、j2:copy.shared.deps ゴールで共有される依存するものをインストールします。 +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ゴール説明
j2:deploy + ${maven.war.final.name} プロパティによって特定されたポートレットアプリケーションを配備するための標準ゴール。 +
+
+ ローカルの Maven リポジトリの PALポータル グループ内で、ポートレットアプリケーションを検索します。 + リポジトリ内でポートレットを検索するときに、このゴールは、プラグイン内で設定された PALポータル のバージョン番号で与えられたポートレットアプリケーションを検索します。 + ${maven.war.final.name}-${jetspeed.version}.war の書式に従ったリポジトリ内で検索されたファイル名で、${maven.war.final.name}.war として配備されます。 +
j2:pam.layoutdeployPALポータル ローカルレイアウトポートレットアプリケーションを配備します。
j2:pam.admindeployPALポータル 管理ポートレットアプリケーションを配備します。
j2:pam.tsdeployPluto テストスイートポートレットアプリケーションを配備します。
j2:pam.strutsdeployStruts メールリーダーデモポートレットアプリケーションを配備します。
j2:pam.jpetstoredeployiBatis Jpetstore ベースのデモポートレットアプリケーションを配備します。
j2:pam.jsfdeployPALポータル で汎用的な JSF ポートレットブリッジを使用した JSF デモポートレットアプリケーションを配備します。
j2:pam.jsfmyfacesdeployMyFaces に含まれる JSF ポートレットブリッジを使用した JSF デモポートレットアプリケーションを配備します。
j2:pam.phpdeployPALポータル PHP ブリッジデモポートレットアプリケーションを配備します。
j2:pam.perldeployPALポータル Perl ブリッジデモポートレットアプリケーションを配備します。
j2:pam.rssdeployRSS フィードデモポートレットアプリケーションを配備します。
j2:nodbMinDeploy + j2:portal.deploy ゴールを使用したポータルを配備し、j2:pam.layoutdeployj2:pam.admindeploy を使用して、レイアウトポートレットと管理ポートレットだけを配備します。 +
j2:minDeploy + j2:nodbMinDeploy と同様な機能に加えて、j2:db.entities ゴールを使用して、ポータルデータベースを作成します。 +
j2:nodbfullDeploy + j2:nodbMinDeploy と同様な機能ですが、追加で、他のすべてのデモポートレットアプリケーション (上のすべてのリストを参照) を配備します。 +
j2:fullDeploy + j2:nodbFullDeploy と同様な機能に加えて、j2:db.entities ゴールを使用して、ポータルデータベー>スを作成します。 +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ゴール説明
j2:start.production.serverポータルによって使用される標準の HSQLDB 本稼働用データベースを起動します。
j2:start.test.server + PALポータル のビルド中にテスト用で使用するために、標準の HSQLDB テスト用データベースを起動します。 +
j2:db.create.test + テスト用データベースのテーブルを作成します。もし、標準の HSQLDB を利用する場合、j2:start.test.server ゴール内で先に起動されていなければなりません。 +
+ 既存のポータルのテーブルは始めに削除されます。初めて実行する場合は、「table does not exist」エラーメッセージが表示されますが、それらは無視することができます。 +
j2:db.create.production + 本稼働用のデータベースのテーブルを作成します。もし、標準の HSQLDB を利用する場合、j2:start.production.server ゴール内で先に起動されていなければなりません。 +
+ 既存のポータルのテーブルは始めに削除されます。初めて実行する場合は、「table does not exist」エラーメッセージが表示されますが、それらは無視することができます。 +
j2:db.recreate + j2:db.create.production ゴールを利用して、本稼働用データベースを再作成しますが、まず、j2:portal.conf.sql 使用して、SQL スクリプトを (再) 生成します。 +
j2:db.drop.testテスト用データベースのポータルに関するテーブルを削除します。
j2:db.drop.production本稼働用データベースのポータルに関するテーブルを削除します。
j2:db.entities + PALポータル で構成された標準の PSML 構成用のユーザ情報を投入します。 +
+
+
+ + + + + + + + + + +
ゴール説明
j2:start.ldap.server標準の Apache Directory Server を起動し、標準の + apacheds-server.xml 設定を読み込みます。
+
+
+ +

+ 特定の PALポータル コンポーネントを再配備するための一般的なゴール群です。 +

+ + + + + + + + + + + + + + + + + + + + + + +
ゴール説明
j2:jar.deploy + ローカル Maven リポジトリから配備ディレクトリへ PALポータル コアコンポーネントを配備します。 +
j2:jar.deploy.shared + ローカル Maven リポジトリから Tomcat の共有ライブラリディレクトリへ PALポータル コアコンポーネントを配備します。 +
j2:deployDecorations + WEB-INF/decorations ディレクトリから配備されたポータルへすべてのデコレーションを配備します。 +
j2:deployTemplates + WEB-INF/templates ディレクトリから配備されたポータルへすべてのテンプレートを配備します。 +
+
+ +
+ Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/j2-maven-plugin.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/navigation.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/navigation.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/navigation.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/navigation.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/portlets-community.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/portlets-community.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/portlets-community.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,53 @@ + + + + + ポートレットコミュニティ + ポートレットコミュニティ + + + + + + + + +
+ + + + + + + + + + +
プロジェクト説明
Gems は、JSR-168 のポートレット群を提供します。利用可能はポートレット配下の通りです。 +
    +
  • Eメールポートレット
  • +
  • カレンダポートレット
  • +
  • ブログポートレット
  • +
  • RSS フィードポートレット
  • +
  • 電卓ポートレット
  • +
  • 画像表示ポートレット
  • +
  • ホロスコープポートレット
  • +
+
+ +
+ Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/portlets-community.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/quality-testing.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/quality-testing.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/quality-testing.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,66 @@ + + + + + PALポータル 品質テスト + PALポータル 品質テストの結果 + + + + + + + + +
+ +

+SpikeSource は、Linux プラットフォーム群 (SuSE, Fedora, Redhat...) 上で PALポータル のナイトリービルドを実行しています。 +そのビルドでは、全体の PALポータル ビルド及びすべてのユニットテストを実行しています。 +加えて、コードカバレージテストも実行されます。 +これらのテストの結果は、SpikeSource のウェブサイトで参照可能です。 +

+ + +

PALポータル は、深夜にビルドされています。ユニットテストおよびコードカバレージ結果は以下にあります。

+ +

+PALポータル のナイトリービルドの結果 +

+
+ + +

PALポータル は、深夜にビルドされています。REST フォーマットでのユニットテストおよびコードカバレージ結果は以下にあります。

+ +

+PALポータル のナイトリービルドの結果 - REST +

+
+ + +

PALポータル およびその他のオープンソースビルドの結果は以下にあります。

+ +オープンソースのビルド結果 +
+ +
+ + +
+ + + Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/quality-testing.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/release-notes.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/release-notes.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/release-notes.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,132 @@ + + + + + PALポータル リリースノート + PALポータル リリースノート + + + + + + + + +
+ +

+ 以下のリストは、最終リリースで扱われた問題の要点をまとめています。機能に関する全リストについては、 + 機能リスト を参照してください。 +

+ +
    +
  • [JS2-9] - Caching of portal parameters o.a.j.engine.servlet.ServletRequestImpl.getParameterMap() prevents subsequent RequestDispatcher invokation query string parameter merging
  • +
  • [JS2-181] - Build Fails - enum is a keyword in java 1.5 (5.0)
  • +
  • [JS2-193] - After changing the locale using the LocaleSelector the portlet titles eventually disappers
  • +
  • [JS2-203] - Non-compliance to Portlet Specification PLT.16.3.3 cxxx and cxxxi (getContextPath)
  • +
  • [JS2-227] - FK Constraint Error deleting Users on SSO Site to Principals
  • +
  • [JS2-252] - Fragments retain their previous content in certain cases
  • +
  • [JS2-261] - (re)Deployed portlet application wars not always (re)deployed
  • +
  • [JS2-263] - ClassCastException raised when change portlet location on the fly
  • +
  • [JS2-267] - No link to download
  • +
  • [JS2-312] - Security Credential Login Information Cached, Can't reset Admin user with restarting server
  • +
  • [JS2-314] - initMavenPlugin does not remove older version of the PALポータル
  • +
  • [JS2-315] - Premature access to portal can break access to portlets.
  • +
  • [JS2-320] - build.properties Variable Interpolation (Commons Configuration) not working in AbstractTestHelper
  • +
  • [JS2-321] - Customizer not correctly positoning portlets
  • +
  • [JS2-331] - Decorator Velocity Template/Macro Cache Permanent
  • +
  • [JS2-337] - Error displayed when (successfully) creating user
  • +
  • [JS2-338] - In certain cases j2:portal.genapp overwrites the existing project's project.xml
  • +
  • [JS2-342] - Page clone implementation potentially incomplete
  • +
  • [JS2-343] - JSCookMenu decorator menu incomplete
  • +
  • [JS2-347] - a portal cannot mix different layout decorations w/o problems
  • +
  • [JS2-364] - Check for deploying Portlet Apps with same name as portal
  • +
  • [JS2-374] - Decorators lost after login or logout
  • +
  • [JS2-381] - url rewriting breaks CSS
  • +
  • [JS2-393] - Site documentation generation broken
  • +
  • [JS2-400] - Layouts broken
  • +
  • [JS2-404] - Hsql db 1.7.1 does not support addBatch
  • +
  • [JS2-434] - Role and Group admin detail portlets are missing browser navigation ui
  • +
+
+ +
    +
  • [JS2-26] - Exposing J2 Services to Portlets
  • +
  • [JS2-58] - PALポータル Maven plugin
  • +
  • [JS2-69] - Finallizing Portal Navigation using the Profiler
  • +
  • [JS2-138] - Create a NekoHTML based parser rewriter implementation
  • +
  • [JS2-158] - Navigation menu with pulldown submenus using dhtml
  • +
  • [JS2-173] - hook in SSO to login / logout life cycle
  • +
  • [JS2-247] - Portlet Selector
  • +
  • [JS2-283] - Basic Ajax Service Implementation
  • +
  • [JS2-307] - New User Creation Events and Configuration
  • +
  • [JS2-363] - Document Resources: Profiler mapping critiera to associated pages
  • +
  • [JS2-383] - Configuring portlet in PSML
  • +
  • [JS2-387] - Layout Pipeline
  • +
  • [JS2-395] - DB Page Manager
  • +
+
+ + +
    +
  • [JS2-151] - Security enhancements for password validation and enable/disable principals
  • +
  • [JS2-169] - Replace Large demo.war for deplo y
  • +
  • [JS2-182] - Refactor layout portlets to run outside of the J2 webapp.
  • +
  • [JS2-183] - Improve the usability of the PALポータルPowerTool
  • +
  • [JS2-188] - Implement the LDAP
  • +
  • [JS2-190] - Changing the portlet.xml in a deployed portlet/webapp does not change PALポータル.
  • +
  • [JS2-192] - SSO Support for Encrypted Credentials and Certficates
  • +
  • [JS2-215] - security email extensions: password reminder/user creation
  • +
  • [JS2-251] - Improvements to folder-strucuture
  • +
  • [JS2-260] - Removing dependency on Pluto PortletContainerServices and providing a PALポータルNamespaceMapper
  • +
  • [JS2-303] - ContentServer doesn't allow for content caching
  • +
  • [JS2-308] - Convert OJB to use a spring managed datasource as opposed to directly setting the JNDI name in OJB.properties.
  • +
  • [JS2-329] - 3 new 100% table-free portlet decorations.
  • +
  • [JS2-333] - Allow for default template support in decorations
  • +
  • [JS2-335] - Add new genapp goals to limit the number of pages copied to custom portals.
  • +
  • [JS2-340] - Move the "move" action in the MultiLayoutPortlet out of doView and into processAction
  • +
  • [JS2-356] - Allow folder default page to specify sub folder
  • +
  • [JS2-368] - Improve access to binary builds
  • +
  • [JS2-392] - Spanish localisation
  • +
  • [JS2-397] - SSO managment portlet should use credentials from LDAP if configured
  • +
  • [JS2-398] - Creation of a Decoration API along with the removal of ContentServer
  • +
  • [JS2-399] - Serve PDF (and other file formats) via a portlet
  • +
  • [JS2-408] - Make Derby default database, replace Hypersonic
  • +
  • [JS2-412] - lookupPreference API
  • +
  • [JS2-413] - Simplify Build
  • +
  • [JS2-431] - Remove PropertyManager for Preferences
  • +
+
+ + +
    +
  • [JS2-73] - TCK
  • +
  • [JS2-83] - Site Documentation, Architectural Overview
  • +
  • [JS2-256] - Implement Pluto's DynamicTitleService.
  • +
  • [JS2-332] - PSML Documentation
  • +
  • [JS2-360] - Springize Aggregation
  • +
  • [JS2-362] - Portlet Stats integrated into Aggregator
  • +
  • [JS2-386] - 2.0-FINAL-CUSTOMIZATION
  • +
  • [JS2-388] - SSO
  • +
  • [JS2-389] - Docs
  • +
  • [JS2-390] - Admin
  • +
  • [JS2-391] - Update Installation Documentation
  • +
+
+
+ +
Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/release-notes.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/source-code.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/source-code.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/source-code.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,77 @@ + + + + + ソースコードリポジトリ + PALポータル のソースコードリポジトリ + + + + + + + + +
+ +

+PALポータル のソースコードは、こちらから直接ダウンロードできます: +

+ + + + + + + + + + +
2.0 版ソースのダウンロード
2.0 版ソースコード - GZIP
2.0 版ソースコード - ZIP
+
+
+ +

+PALポータル は Subversion(SVN) ソースコードリポジトリ内にそれらのソースコードを収容しています。 +このリポジトリを私たちの公開 Subversion ウェブページに訪れることによって、オンラインで閲覧することができます。 +SVNを閲覧 +

+ + +

Subversion リポジトリに匿名でアクセスするためには、 +Subversion クライアントソフトウェアが必要になります。

+ +

ヘッド(訳注:最新版)から PALポータル プロジェクトをチェックアウトするには、次のように打ち込んでください:

+ +svn co http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk jetspeed-2 + + +

Subversion の利用に関してさらに手助けが必要なら、 Subversion のウェブサイト もしくは +Subversion ブック のほうへお問い合わせください。 +そちらのウェブサイトには クライアントソフトウェアの一覧 や 便利なリンク が掲載されています。( Eclipse プラグイン へのリンクも含まれています。)

+ +

Apacheのソースコードリポジトリ利用に関する更なる情報をお探しなら +ASF ソースコードページ をご覧ください。 +

+
+
+ + +
+ + + Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/source-code.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/style/maven-j2.css =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/style/maven-j2.css 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/style/maven-j2.css 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,486 @@ +/* +---------------------- +Theme Style +---------------------- +*/ +body { + background-color: #fff; + font-family: Verdana, Helvetica, Arial, sans-serif; + margin-left: auto; + margin-right: auto; + background-repeat: repeat-y; + font-size: 13px; + padding: 0px; +} + +td,select,input,li { + font-family: Verdana, Helvetica, Arial, sans-serif; + font-size: 12px; + color: #333333; +} + +code { + font-size: 12px; +} + +a { + text-decoration: none; +} + +a:link { + color: #47a; +} + +a:visited { + color: #666666; +} + +a:active,a:hover { + color: #990000; +} + +#legend li.externalLink { + background: url(../images/external.png) left top no-repeat; + padding-left: 18px; +} + +a.externalLink,a.externalLink:link,a.externalLink:visited,a.externalLink:active,a.externalLink:hover + { + background: url(../images/external.png) right center no-repeat; + padding-right: 18px; +} + +#legend li.newWindow { + background: url(../images/newwindow.png) left top no-repeat; + padding-left: 18px; +} + +a.newWindow,a.newWindow:link,a.newWindow:visited,a.newWindow:active,a.newWindow:hover + { + background: url(../images/newwindow.png) right center no-repeat; + padding-right: 18px; +} + +h2 { + font-size: 17px; + color: #333333; +} + +h3 { + padding: 4px 4px 4px 24px; + color: #666; + background-color: #ccc; + font-weight: bold; + font-size: 14px; + background-image: url(../images/h3.jpg); + background-repeat: no-repeat; + background-position: left bottom; +} + +p { + line-height: 1.3em; + font-size: 12px; + color: #000; +} + +#breadcrumbs { + height: 6px; + background-image: url(../images/breadcrumbs.jpg); + padding: 5px 10px 14px 20px; +} + +* html #breadcrumbs { + padding-bottom: 8px; +} + +#leftColumn { + margin: 10px 0 10px 0; + border-top-color: #ccc; + border-top-style: solid; + border-top-width: 1px; + border-right-color: #ccc; + border-right-style: solid; + border-right-width: 1px; + border-bottom-color: #ccc; + border-bottom-style: solid; + border-bottom-width: 1px; + padding-right: 5px; + padding-left: 5px; +} + +#navcolumn h5 { + font-size: smaller; + border-bottom: 1px solid #aaaaaa; + padding-top: 2px; + padding-left: 9px; + color: #49635a; + background-image: url(../images/h5.jpg); + background-repeat: no-repeat; + background-position: left bottom; +} + +table.bodyTable th { + color: white; + background-color: #bbb; + text-align: left; + font-weight: bold; +} + +table.bodyTable th,table.bodyTable td { + font-size: 11px; +} + +table.bodyTable tr.a { + background-color: #ddd; +} + +table.bodyTable tr.b { + background-color: #eee; +} + +.source { + border: 1px solid #999; + overflow: auto +} + +dt { + padding: 4px 4px 4px 24px; + color: #333333; + background-color: #ccc; + font-weight: bold; + font-size: 14px; + background-image: url(../images/h3.jpg); + background-repeat: no-repeat; + background-position: left bottom; +} + +.subsectionTitle { + font-size: 13px; + font-weight: bold; + color: #666; +} + +table { + font-size: 10px; +} + +.xright a:link,.xright a:visited,.xright a:active { + color: #666; +} + +.xright a:hover { + color: #003300; +} + +#banner { + height: 93px; + background: url(../images/banner.jpg); +} + +#navcolumn ul { + margin: 5px 0 15px -0em; +} + +#navcolumn ul a { + color: #333333; +} + +#navcolumn ul a:hover { + color: red; +} + +#intro { + border: solid #ccc 1px; + margin: 6px 0px 0px 0px; + padding: 10px 40px 10px 40px; +} + +.subsection { + margin-left: 3px; + color: #333333; +} + +.subsection p { + font-size: 12px; +} + +#footer { + padding: 10px; + margin: 20px 0px 20px 0px; + border-top: solid #ccc 1px; + color: #333333; +} + + +/* +---------------------- +Project Style +---------------------- +*/ +/* +.original #downloadbox { + float: right; + margin: 0 10px 20px 20px; + padding: 5px; + border: 1px solid #999; + background-color: #eee; +} + +.original #downloadbox { + float: right; + margin: 0 10px 20px 20px; + padding: 5px; + border: 1px solid #999; + background-color: #eee; +} + +.original #downloadbox h5 { + color: #FF8000; + margin: 0; + border-bottom: 1px solid #aaaaaa; + font-size: smaller; + padding: 0; +} + +.original #downloadbox p { + margin-top: 1em; + margin-bottom: 0; +} + +.original #downloadbox ul { + margin-top: 0; + margin-bottom: 1em; + list-style-type: disc; +} + +.original #downloadbox li { + font-size: smaller; +} +*/ + +.original #downloadbox * { + color: #FF8000; + position:static; + visibility:visible; +} + +/* +---------------------- +Theme Style +---------------------- +*/ +/* +.original body { + background-color: #fff; + font-family: Verdana, Helvetica, Arial, sans-serif; + margin-left: auto; + margin-right: auto; + background-repeat: repeat-y; + font-size: 13px; + padding: 0px; +} + +.original td,select,input,li { + font-family: Verdana, Helvetica, Arial, sans-serif; + font-size: 12px; + color: #FF8000; +} + +.original code { + font-size: 12px; +} + +.original a { + text-decoration: none; +} + +.original a:link { + color: #FF8000; +} + +.original a:visited { + color: #FF8000; +} + +.original a:active,a:hover { + color: #FF8000; +} + +.original #legend li.externalLink { + background: url(../images/external.png) left top no-repeat; + padding-left: 18px; +} + +.original a.externalLink,a.externalLink:link,a.externalLink:visited,a.externalLink:active,a.externalLink:hover + { + background: url(../images/external.png) right center no-repeat; + padding-right: 18px; +} + +.original #legend li.newWindow { + background: url(../images/newwindow.png) left top no-repeat; + padding-left: 18px; +} + +.original a.newWindow,a.newWindow:link,a.newWindow:visited,a.newWindow:active,a.newWindow:hover + { + background: url(../images/newwindow.png) right center no-repeat; + padding-right: 18px; +} + +.original h2 { + font-size: 17px; + color: #FF8000; +} + +.original h3 { + padding: 4px 4px 4px 24px; + color: #FF8000; + background-color: #FF8000; + font-weight: bold; + font-size: 14px; + background-image: url(../images/h3.jpg); + background-repeat: no-repeat; + background-position: left bottom; +} + +.original p { + line-height: 1.3em; + font-size: 12px; + color: #FF8000; +} + +.original #breadcrumbs { + height: 6px; + background-image: url(../images/breadcrumbs.jpg); + padding: 5px 10px 14px 20px; +} + +.original * html #breadcrumbs { + padding-bottom: 8px; +} + +.original #leftColumn { + margin: 10px 0 10px 0; + border-top-color: #ccc; + border-top-style: solid; + border-top-width: 1px; + border-right-color: #ccc; + border-right-style: solid; + border-right-width: 1px; + border-bottom-color: #ccc; + border-bottom-style: solid; + border-bottom-width: 1px; + padding-right: 5px; + padding-left: 5px; +} + +.original #navcolumn h5 { + font-size: smaller; + border-bottom: 1px solid #aaaaaa; + padding-top: 2px; + padding-left: 9px; + color: #FF8000; + background-image: url(../images/h5.jpg); + background-repeat: no-repeat; + background-position: left bottom; +} + +.original table.bodyTable th { + color: #FF8000; + background-color: #bbb; + text-align: left; + font-weight: bold; +} + +.original table.bodyTable th,table.bodyTable td { + font-size: 11px; +} + +.original table.bodyTable tr.a { + background-color: #ddd; +} + +.original table.bodyTable tr.b { + background-color: #eee; +} + +.original .source { + border: 1px solid #999; + overflow: auto +} + +.original dt { + padding: 4px 4px 4px 24px; + color: #FF8000; + background-color: #ccc; + font-weight: bold; + font-size: 14px; + background-image: url(../images/h3.jpg); + background-repeat: no-repeat; + background-position: left bottom; +} + +.original .subsectionTitle { + font-size: 13px; + font-weight: bold; + color: #FF8000; +} + +.original table { + font-size: 10px; +} + +.original .xright a:link,.xright a:visited,.xright a:active { + color: #FF8000; +} + +.original .xright a:hover { + color: #FF8000; +} + +.original #banner { + height: 93px; + background: url(../images/banner.jpg); +} + +.original #navcolumn ul { + margin: 5px 0 15px -0em; +} + +.original #navcolumn ul a { + color: #FF8000; +} + +.original #navcolumn ul a:hover { + color: #FF8000; +} + +.original #intro { + border: solid #ccc 1px; + margin: 6px 0px 0px 0px; + padding: 10px 40px 10px 40px; +} + +.original .subsection { + margin-left: 3px; + color: #FF8000; +} + +.original .subsection p { + font-size: 12px; +} + +.original #footer { + padding: 10px; + margin: 20px 0px 20px 0px; + border-top: solid #ccc 1px; + color: #FF8000; +} +*/ + +.original * { + color: #FF8000; + position:static; + visibility:visible; +} Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/style/maven-j2.css ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/style/project.css =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/style/project.css 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/style/project.css 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,44 @@ +/* +---------------------- +Project Style +---------------------- +*/ + +#downloadbox { + float: right; + margin: 0 10px 20px 20px; + padding: 5px; + border: 1px solid #999; + background-color: #eee; +} + +#downloadbox { + float: right; + margin: 0 10px 20px 20px; + padding: 5px; + border: 1px solid #999; + background-color: #eee; +} + +#downloadbox h5 { + color: #000; + margin: 0; + border-bottom: 1px solid #aaaaaa; + font-size: smaller; + padding: 0; +} + +#downloadbox p { + margin-top: 1em; + margin-bottom: 0; +} + +#downloadbox ul { + margin-top: 0; + margin-bottom: 1em; + list-style-type: disc; +} + +#downloadbox li { + font-size: smaller; +} \ No newline at end of file Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/style/project.css ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/supporting-projects.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/supporting-projects.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/supporting-projects.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,66 @@ + + + + + サポートするプロジェクト + サポートするプロジェクト + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
プロジェクト説明
Derby は、PALポータル のデフォルトの組み込みデータベースエンジンを提供しています。
Apache Directory Server は、PALポータル のデフォルト組み込み LDAP エンジンを提供しています。
Lucene は、PALポータル の組み込み検索エンジンを提供しています。
OJB PALポータル のデフォルトの永続性層を提供しています。 + PALポータル は OJB のPersistenceBroker API を利用しています。
Pluto は、PALポータル のポートレットコンテナを提供します。 + Pluto は、Java ポートレット仕様のリファレンス実装です。
Spring フレームワーク は、PALポータル のデフォルトのコンポーネントフレームワークを提供しています。
+
+ +
+ Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/supporting-projects.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/what-is-jetspeed-2.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/what-is-jetspeed-2.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/what-is-jetspeed-2.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,63 @@ + + + + + PALポータル ホームページ + PALポータル へようこそ + + + + + + + + + +
+ +

+ PALポータル は、Java や XML を利用した企業情報ポータルの、オープンソースの実装です。 + ポータルは、アプリケーションやデータベースなどのネットワークリソースをエンドユーザで利用可能にします。 + ユーザは、ウェブブラウザ、WAP 対応の携帯電話、ポケベルまたは様々な他のデバイスからポータルへアクセスすることができます。 + PALポータル は、利用しやすい方法で複数の情報源からなる情報を利用可能にする中央のハブのように動作します。 +

+ +

+ PALポータル を通して表示されるデータは、コンテンツタイプには依存していません。 + これは、たとえば、XML、RSS または SMTP などから来るコンテンツが PALポータル で統合することができることを意味しています。 + データの実際の表示は、XSL で処理され、例えば、Java Server Pages (JSP) や HTML の組み合わせで、ユーザへ送信されます。 + PALポータル は、 + Cocoon + 、 + WebMacro + や + + Velocity + + などのテンプレートおよびコンテント発行フレームワークのサポートを提供します。 + (注: PALポータル は、普通のブラウザではない WAP 端末をサポートします) +

+ +

+ PALポータル は、ポータルアプリケーションを素早く構築する手助けとなります。 + その目標は、PALポータル がユーザインターフェースデザイナとポータル開発者両方にとってのツールとなることです。 + 現在、ポータルの基盤の構築を容易にするツール群を開発者に提供することに焦点を当てています。 + ユーザは、PALポータル を用いて、XML ポータルを素早く構築でき、独自のコンテンツを同時に配信できます。 +

+
+ +
Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/what-is-jetspeed-2.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/configuration-guide/xdocs/who-uses-j2.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/who-uses-j2.xml 2007-05-12 23:21:13 UTC (rev 125) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/who-uses-j2.xml 2007-05-12 23:22:25 UTC (rev 126) @@ -0,0 +1,76 @@ + + + + + PALポータル を利用している企業・団体 + PALポータル を利用している企業・団体 + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
企業/プロジェクト説明
BlueSunrise は、PALポータル ソリューションを導入する企業をサポートするサービスを提供します。
Convergys は、Cognos や MicroStrategy などのサードパーティ製の企業 OLAP エンジンからレポートする B2B ビジネスインテリジェンスポータルとして、PALポータル を利用しています。
GroundWork のオープンソース IT インフラストラクチャモニタリングソリューションは、商業代替手段のコスト削減のためのエンタープライズクラスの可用性およびパフォーマンスを提供します。
iWise B.V. は、PALポータル を含む、コンサルタントおよび企業 Java ソリューションを提供するドイツの企業です。
製品のJahia 5.0 ラインは、PALポータル ベースの企業ポータルサーバを含みます。 + 100% Java ベース、すべての Jahia ソースコードは、共同およびコミュニティソースライセンス(貢献または有料)の元で利用可能です。
R.O.S.A. Creation. Technology. Intelligence. AG は、PALポータル を使用して、 + 協調ポータルを配備し、ポータル開発でサービスを提供します。
UGS は、PALポータル を利用して、その製品のライフサイクル管理の製品ラインとして、 + ポータルを提供しています。
WfMOpen1.4 バージョンで、WfMOpen は、ワークフローエンジン (BPE) 用のリソース管理を提供し、 + エンジンの管理用ポートレットとして、PALポータル を使用しています。
+
+ +
+ Property changes on: pal-portal/trunk/docs/ja/configuration-guide/xdocs/who-uses-j2.xml ___________________________________________________________________ Name: svn:eol-style + native From svnnotify @ sourceforge.jp Sun May 13 08:28:36 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 13 May 2007 08:28:36 +0900 Subject: [pal-cvs 2395] [127] added configuration guide for pal portal. Message-ID: <20070512232836.829402AC014@users.sourceforge.jp> Revision: 127 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=127 Author: shinsuke Date: 2007-05-13 08:28:36 +0900 (Sun, 13 May 2007) Log Message: ----------- added configuration guide for pal portal. Modified Paths: -------------- site/trunk/xdocs/navigation.xml -------------- next part -------------- Modified: site/trunk/xdocs/navigation.xml =================================================================== --- site/trunk/xdocs/navigation.xml 2007-05-12 23:22:25 UTC (rev 126) +++ site/trunk/xdocs/navigation.xml 2007-05-12 23:28:36 UTC (rev 127) @@ -17,7 +17,10 @@ href="http://www.appliedjapan.com/temp/palportal/"/> - + + + + From svnnotify @ sourceforge.jp Sun May 13 10:09:26 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 13 May 2007 10:09:26 +0900 Subject: [pal-cvs 2396] [128] fixed typo Message-ID: <20070513010926.ABD082AC012@users.sourceforge.jp> Revision: 128 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=128 Author: shinsuke Date: 2007-05-13 10:09:26 +0900 (Sun, 13 May 2007) Log Message: ----------- fixed typo Modified Paths: -------------- pal-portal/trunk/docs/ja/configuration-guide/project.xml -------------- next part -------------- Modified: pal-portal/trunk/docs/ja/configuration-guide/project.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/project.xml 2007-05-12 23:28:36 UTC (rev 127) +++ pal-portal/trunk/docs/ja/configuration-guide/project.xml 2007-05-13 01:09:26 UTC (rev 128) @@ -20,7 +20,7 @@ configuration-guide 0.1-SNAPSHOT - Portal Application Laboratorycom + Portal Application Laboratory http://sourceforge.jp/projects/pal/ /images/pal-logo.png From svnnotify @ sourceforge.jp Sun May 13 10:09:45 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 13 May 2007 10:09:45 +0900 Subject: [pal-cvs 2397] [129] added logo to pdf. Message-ID: <20070513010945.EFD1A2AC012@users.sourceforge.jp> Revision: 129 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=129 Author: shinsuke Date: 2007-05-13 10:09:45 +0900 (Sun, 13 May 2007) Log Message: ----------- added logo to pdf. Modified Paths: -------------- pal-portal/trunk/docs/ja/configuration-guide/project.properties -------------- next part -------------- Modified: pal-portal/trunk/docs/ja/configuration-guide/project.properties =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/project.properties 2007-05-13 01:09:26 UTC (rev 128) +++ pal-portal/trunk/docs/ja/configuration-guide/project.properties 2007-05-13 01:09:45 UTC (rev 129) @@ -27,3 +27,7 @@ maven.multiproject.aggregateDir=multiproject/ maven.multiproject.ignoreFailures=true +maven.pdf.cover.type=Configuration Guide +maven.pdf.companyLogo=http://pal.sourceforge.jp/pal-portal/docs/ja/configuration-guide/images/pal_banner.gif +#maven.pdf.projectLogo=http://pal.sourceforge.jp/pal-portal/docs/ja/configuration-guide/images/sflogo.gif +maven.pdf.projectLogo= From svnnotify @ sourceforge.jp Sun May 13 11:37:09 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 13 May 2007 11:37:09 +0900 Subject: [pal-cvs 2398] [130] added installation guide Message-ID: <20070513023709.920B22AC01A@users.sourceforge.jp> Revision: 130 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=130 Author: shinsuke Date: 2007-05-13 11:37:09 +0900 (Sun, 13 May 2007) Log Message: ----------- added installation guide Added Paths: ----------- pal-portal/trunk/docs/ja/installation-guide/ pal-portal/trunk/docs/ja/installation-guide/project.properties pal-portal/trunk/docs/ja/installation-guide/project.xml pal-portal/trunk/docs/ja/installation-guide/src/ pal-portal/trunk/docs/ja/installation-guide/src/resources/ pal-portal/trunk/docs/ja/installation-guide/src/resources/site.jsl pal-portal/trunk/docs/ja/installation-guide/xdocs/ pal-portal/trunk/docs/ja/installation-guide/xdocs/images/ pal-portal/trunk/docs/ja/installation-guide/xdocs/images/pal-logo.png pal-portal/trunk/docs/ja/installation-guide/xdocs/images/sflogo.gif pal-portal/trunk/docs/ja/installation-guide/xdocs/index.xml pal-portal/trunk/docs/ja/installation-guide/xdocs/navigation.xml -------------- next part -------------- Added: pal-portal/trunk/docs/ja/installation-guide/project.properties =================================================================== --- pal-portal/trunk/docs/ja/installation-guide/project.properties 2007-05-13 01:09:45 UTC (rev 129) +++ pal-portal/trunk/docs/ja/installation-guide/project.properties 2007-05-13 02:37:09 UTC (rev 130) @@ -0,0 +1,33 @@ +# Repo +maven.repo.remote = http://jetplume.sourceforge.jp/maven/, http://www.bluesunrise.com/maven/, http://www.ibiblio.org/maven/, http://dist.codehaus.org/, http://cvs.apache.org/repository + +# +# DATE Preferences +# +# The place of the date on the pages : choices are 'bottom', 'left', 'right', 'navigation-top', 'navigation-bottom' +maven.xdoc.date = left +#maven.xdoc.date.format = yyyy/MM/dd HH:mm z +maven.xdoc.date.format = yyyy/MM/dd HH:mm +# The date locale +maven.xdoc.date.locale = ja + +# +# Doc Setting +# +maven.xdoc.version=${pom.currentVersion} +maven.xdoc.includeProjectDocumentation = no +maven.docs.outputencoding = EUC-JP +maven.javadoc.source = 1.4 +maven.xdoc.jsl=file:${maven.src.dir}/resources/site.jsl + +# Multiproject settings +maven.multiproject.includes=*/project.xml +maven.multiproject.excludes=project.xml +# following are default values but needed here because our allSite goal doesn't know them from the plugin +maven.multiproject.aggregateDir=multiproject/ +maven.multiproject.ignoreFailures=true + +maven.pdf.cover.type=Installation Guide +maven.pdf.companyLogo=http://pal.sourceforge.jp/images/pal_banner.gif +#maven.pdf.projectLogo=http://pal.sourceforge.jp/pal-portal/docs/ja/installation-guide/images/sflogo.gif +maven.pdf.projectLogo= Property changes on: pal-portal/trunk/docs/ja/installation-guide/project.properties ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/installation-guide/project.xml =================================================================== --- pal-portal/trunk/docs/ja/installation-guide/project.xml 2007-05-13 01:09:45 UTC (rev 129) +++ pal-portal/trunk/docs/ja/installation-guide/project.xml 2007-05-13 02:37:09 UTC (rev 130) @@ -0,0 +1,36 @@ + + + + PALポータル インストールガイド + jp.sf.pal.pal-portal.docs.ja + installation-guide + 0.1-SNAPSHOT + + Portal Application Laboratory + http://sourceforge.jp/projects/pal/ + /images/pal-logo.png + + 2005 + + /images/sflogo.gif + + shell.sourceforge.jp + /home/groups/p/pa/pal/htdocs/pal-portal/docs/ja/installation-guide/ + + maven-license-plugin + + Property changes on: pal-portal/trunk/docs/ja/installation-guide/project.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/installation-guide/src/resources/site.jsl =================================================================== --- pal-portal/trunk/docs/ja/installation-guide/src/resources/site.jsl 2007-05-13 01:09:45 UTC (rev 129) +++ pal-portal/trunk/docs/ja/installation-guide/src/resources/site.jsl 2007-05-13 02:37:09 UTC (rev 130) @@ -0,0 +1,513 @@ + + + + + + + + + + + ${maven.xdoc.date} + + + + + + + + <x:expr select="$nav/title"/> - ${docTitle} + + + ${pom.name} - ${docTitle} + + + + + + + + + + + + + + + + + + + + composite + + ${attr.value} + + + + + + + + +
+ +
+ + + +
+
+ + + + +
+
+

+ + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + +
+
+
+
+
+ +
+ + + + + + + + + + + + + + +
  • + + + + + + + +
      + +
    +
    +
  • +
    + + + + + + + + + + + + + ${maven.xdoc.crumb.separator} + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + + + + ${attr.value} + + + + + + + + + + ${attr.value} + + + + + + + + + +
    + +
    +
    + + + + + +
    +
    + + + + + + + + + + + + ${rowMode} + + ${attr.value} + + + + + + + + + + + +
    + + + + + + + + + + + + + + + ${rowMode} + + ${_goalName} + + + + + + + + + + + + + + + + + + + + + + + ${href} + externalLink + External Link + + + ${href} + + + + + ${attr.value} + + newWindow + New Window + + ${target} + + + + + + + + ${attr.value} + + + + + + + + + + + + + + + + +
    Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/pal-logo.png =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/pal-logo.png ___________________________________________________________________ Name: svn:mime-type + image/png Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/sflogo.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/sflogo.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/index.xml =================================================================== --- pal-portal/trunk/docs/ja/installation-guide/xdocs/index.xml 2007-05-13 01:09:45 UTC (rev 129) +++ pal-portal/trunk/docs/ja/installation-guide/xdocs/index.xml 2007-05-13 02:37:09 UTC (rev 130) @@ -0,0 +1,69 @@ + + + + + PALポータル インストールガイド + PALポータル インストールガイド + + + + + +
    +

    + このドキュメントは、PALポータルのインストール作業およびアンインストール作業を担当するユーザーを対象にしています。 +

    +
    +
    +

    + このドキュメントでは、PALポータルのインストール方法を示しています。コンピュータ操作の基礎的な知識が必要になります。 +

    +
    +
    +

    + ダウンロード、専門的サービス、サポート、その他の開発者情報については、次にアクセスしてください。 +

    +

    +
    +
    +

    + 本製品に関する技術的質問で、ドキュメント内に解決策が得られない場合は、次にアクセスしてください。 +

    +

    +
    +
    +

    + Portal Application Laboratoryプロジェクトでは、このドキュメントに記載されているサードパーティーの Web サイトの有効性については責任を持ちません。 + Portal Application Laboratoryプロジェクトはそのようなサイトやリソースを通じて、利用可能なコンテンツ、広告、製品、サービス、その他のドキュメントなどについて、保証、責任、義務を負いません。 + Portal Application Laboratoryプロジェクトはそのようなサイトやリソースと通じて、利用可能なコンテンツ、広告、製品、サービス、その他のドキュメントなどを、使用または信用したり、それに関連して発生または申し立てられた、一切の損傷や損害に対しては責任または義務を負いません。 +

    +
    +
    +

    + Portal Application Laboratoryプロジェクトは、このドキュメントの改善に努めており、読者からのコメントおよび提案などを歓迎しています。 +

    +

    +
    + + Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/index.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/navigation.xml =================================================================== --- pal-portal/trunk/docs/ja/installation-guide/xdocs/navigation.xml 2007-05-13 01:09:45 UTC (rev 129) +++ pal-portal/trunk/docs/ja/installation-guide/xdocs/navigation.xml 2007-05-13 02:37:09 UTC (rev 130) @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/navigation.xml ___________________________________________________________________ Name: svn:eol-style + native From svnnotify @ sourceforge.jp Sun May 13 11:37:49 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 13 May 2007 11:37:49 +0900 Subject: [pal-cvs 2399] [131] added administration guide Message-ID: <20070513023749.336822AC015@users.sourceforge.jp> Revision: 131 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=131 Author: shinsuke Date: 2007-05-13 11:37:49 +0900 (Sun, 13 May 2007) Log Message: ----------- added administration guide Added Paths: ----------- pal-portal/trunk/docs/ja/administration-guide/ pal-portal/trunk/docs/ja/administration-guide/project.properties pal-portal/trunk/docs/ja/administration-guide/project.xml pal-portal/trunk/docs/ja/administration-guide/src/ pal-portal/trunk/docs/ja/administration-guide/src/resources/ pal-portal/trunk/docs/ja/administration-guide/src/resources/site.jsl pal-portal/trunk/docs/ja/administration-guide/xdocs/ pal-portal/trunk/docs/ja/administration-guide/xdocs/images/ pal-portal/trunk/docs/ja/administration-guide/xdocs/images/pal-logo.png pal-portal/trunk/docs/ja/administration-guide/xdocs/images/sflogo.gif pal-portal/trunk/docs/ja/administration-guide/xdocs/index.xml pal-portal/trunk/docs/ja/administration-guide/xdocs/navigation.xml -------------- next part -------------- Added: pal-portal/trunk/docs/ja/administration-guide/project.properties =================================================================== --- pal-portal/trunk/docs/ja/administration-guide/project.properties 2007-05-13 02:37:09 UTC (rev 130) +++ pal-portal/trunk/docs/ja/administration-guide/project.properties 2007-05-13 02:37:49 UTC (rev 131) @@ -0,0 +1,33 @@ +# Repo +maven.repo.remote = http://jetplume.sourceforge.jp/maven/, http://www.bluesunrise.com/maven/, http://www.ibiblio.org/maven/, http://dist.codehaus.org/, http://cvs.apache.org/repository + +# +# DATE Preferences +# +# The place of the date on the pages : choices are 'bottom', 'left', 'right', 'navigation-top', 'navigation-bottom' +maven.xdoc.date = left +#maven.xdoc.date.format = yyyy/MM/dd HH:mm z +maven.xdoc.date.format = yyyy/MM/dd HH:mm +# The date locale +maven.xdoc.date.locale = ja + +# +# Doc Setting +# +maven.xdoc.version=${pom.currentVersion} +maven.xdoc.includeProjectDocumentation = no +maven.docs.outputencoding = EUC-JP +maven.javadoc.source = 1.4 +maven.xdoc.jsl=file:${maven.src.dir}/resources/site.jsl + +# Multiproject settings +maven.multiproject.includes=*/project.xml +maven.multiproject.excludes=project.xml +# following are default values but needed here because our allSite goal doesn't know them from the plugin +maven.multiproject.aggregateDir=multiproject/ +maven.multiproject.ignoreFailures=true + +maven.pdf.cover.type=Administration Guide +maven.pdf.companyLogo=http://pal.sourceforge.jp/images/pal_banner.gif +#maven.pdf.projectLogo=http://pal.sourceforge.jp/pal-portal/docs/ja/administration-guide/images/sflogo.gif +maven.pdf.projectLogo= Property changes on: pal-portal/trunk/docs/ja/administration-guide/project.properties ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/administration-guide/project.xml =================================================================== --- pal-portal/trunk/docs/ja/administration-guide/project.xml 2007-05-13 02:37:09 UTC (rev 130) +++ pal-portal/trunk/docs/ja/administration-guide/project.xml 2007-05-13 02:37:49 UTC (rev 131) @@ -0,0 +1,36 @@ + + + + PALポータル 管理ガイド + jp.sf.pal.pal-portal.docs.ja + administration-guide + 0.1-SNAPSHOT + + Portal Application Laboratory + http://sourceforge.jp/projects/pal/ + /images/pal-logo.png + + 2005 + + /images/sflogo.gif + + shell.sourceforge.jp + /home/groups/p/pa/pal/htdocs/pal-portal/docs/ja/administration-guide/ + + maven-license-plugin + + Property changes on: pal-portal/trunk/docs/ja/administration-guide/project.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/administration-guide/src/resources/site.jsl =================================================================== --- pal-portal/trunk/docs/ja/administration-guide/src/resources/site.jsl 2007-05-13 02:37:09 UTC (rev 130) +++ pal-portal/trunk/docs/ja/administration-guide/src/resources/site.jsl 2007-05-13 02:37:49 UTC (rev 131) @@ -0,0 +1,513 @@ + + + + + + + + + + + ${maven.xdoc.date} + + + + + + + + <x:expr select="$nav/title"/> - ${docTitle} + + + ${pom.name} - ${docTitle} + + + + + + + + + + + + + + + + + + + + composite + + ${attr.value} + + + + + + + + +
    + +
    + + + +
    +
    + + + + +
    +
    +

    + + + + + + + + + +
    + +
    + + + + + + + + + + + + + + + +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + +
  • + + + + + + + +
      + +
    +
    +
  • +
    + + + + + + + + + + + + + ${maven.xdoc.crumb.separator} + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + + + + ${attr.value} + + + + + + + + + + ${attr.value} + + + + + + + + + +
    + +
    +
    + + + + + +
    +
    + + + + + + + + + + + + ${rowMode} + + ${attr.value} + + + + + + + + + + + +
    + + + + + + + + + + + + + + + ${rowMode} + + ${_goalName} + + + + + + + + + + + + + + + + + + + + + + + ${href} + externalLink + External Link + + + ${href} + + + + + ${attr.value} + + newWindow + New Window + + ${target} + + + + + + + + ${attr.value} + + + + + + + + + + + + + + + + +
    Added: pal-portal/trunk/docs/ja/administration-guide/xdocs/images/pal-logo.png =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/administration-guide/xdocs/images/pal-logo.png ___________________________________________________________________ Name: svn:mime-type + image/png Added: pal-portal/trunk/docs/ja/administration-guide/xdocs/images/sflogo.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/administration-guide/xdocs/images/sflogo.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/administration-guide/xdocs/index.xml =================================================================== --- pal-portal/trunk/docs/ja/administration-guide/xdocs/index.xml 2007-05-13 02:37:09 UTC (rev 130) +++ pal-portal/trunk/docs/ja/administration-guide/xdocs/index.xml 2007-05-13 02:37:49 UTC (rev 131) @@ -0,0 +1,69 @@ + + + + + PALポータル 管理ガイド + PALポータル 管理ガイド + + + + + +
    +

    + このドキュメントは、PALポータルの管理作業を担当するユーザーを対象にしています。 +

    +
    +
    +

    + このドキュメントでは、PALポータルの管理および操作方法を示しています。コンピュータ操作の基礎的な知識が必要になります。 +

    +
    +
    +

    + ダウンロード、専門的サービス、サポート、その他の開発者情報については、次にアクセスしてください。 +

    +

    +
    +
    +

    + 本製品に関する技術的質問で、ドキュメント内に解決策が得られない場合は、次にアクセスしてください。 +

    +

    +
    +
    +

    + Portal Application Laboratoryプロジェクトでは、このドキュメントに記載されているサードパーティーの Web サイトの有効性については責任を持ちません。 + Portal Application Laboratoryプロジェクトはそのようなサイトやリソースを通じて、利用可能なコンテンツ、広告、製品、サービス、その他のドキュメントなどについて、保証、責任、義務を負いません。 + Portal Application Laboratoryプロジェクトはそのようなサイトやリソースと通じて、利用可能なコンテンツ、広告、製品、サービス、その他のドキュメントなどを、使用または信用したり、それに関連して発生または申し立てられた、一切の損傷や損害に対しては責任または義務を負いません。 +

    +
    +
    +

    + Portal Application Laboratoryプロジェクトは、このドキュメントの改善に努めており、読者からのコメントおよび提案などを歓迎しています。 +

    +

    +
    + + Property changes on: pal-portal/trunk/docs/ja/administration-guide/xdocs/index.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/administration-guide/xdocs/navigation.xml =================================================================== --- pal-portal/trunk/docs/ja/administration-guide/xdocs/navigation.xml 2007-05-13 02:37:09 UTC (rev 130) +++ pal-portal/trunk/docs/ja/administration-guide/xdocs/navigation.xml 2007-05-13 02:37:49 UTC (rev 131) @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + Property changes on: pal-portal/trunk/docs/ja/administration-guide/xdocs/navigation.xml ___________________________________________________________________ Name: svn:eol-style + native From svnnotify @ sourceforge.jp Sun May 13 11:40:35 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 13 May 2007 11:40:35 +0900 Subject: [pal-cvs 2400] [132] changed companyLogo location Message-ID: <20070513024035.51D9D2AC012@users.sourceforge.jp> Revision: 132 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=132 Author: shinsuke Date: 2007-05-13 11:40:35 +0900 (Sun, 13 May 2007) Log Message: ----------- changed companyLogo location Modified Paths: -------------- pal-portal/trunk/docs/ja/configuration-guide/project.properties -------------- next part -------------- Modified: pal-portal/trunk/docs/ja/configuration-guide/project.properties =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/project.properties 2007-05-13 02:37:49 UTC (rev 131) +++ pal-portal/trunk/docs/ja/configuration-guide/project.properties 2007-05-13 02:40:35 UTC (rev 132) @@ -28,6 +28,6 @@ maven.multiproject.ignoreFailures=true maven.pdf.cover.type=Configuration Guide -maven.pdf.companyLogo=http://pal.sourceforge.jp/pal-portal/docs/ja/configuration-guide/images/pal_banner.gif +maven.pdf.companyLogo=http://pal.sourceforge.jp/images/pal_banner.gif #maven.pdf.projectLogo=http://pal.sourceforge.jp/pal-portal/docs/ja/configuration-guide/images/sflogo.gif maven.pdf.projectLogo= From svnnotify @ sourceforge.jp Sun May 13 11:40:52 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 13 May 2007 11:40:52 +0900 Subject: [pal-cvs 2401] [133] minor change. Message-ID: <20070513024052.D39A52AC015@users.sourceforge.jp> Revision: 133 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=133 Author: shinsuke Date: 2007-05-13 11:40:52 +0900 (Sun, 13 May 2007) Log Message: ----------- minor change. Modified Paths: -------------- pal-portal/trunk/docs/ja/configuration-guide/xdocs/index.xml -------------- next part -------------- Modified: pal-portal/trunk/docs/ja/configuration-guide/xdocs/index.xml =================================================================== --- pal-portal/trunk/docs/ja/configuration-guide/xdocs/index.xml 2007-05-13 02:40:35 UTC (rev 132) +++ pal-portal/trunk/docs/ja/configuration-guide/xdocs/index.xml 2007-05-13 02:40:52 UTC (rev 133) @@ -33,7 +33,7 @@ このドキュメントでは、PALポータルの詳細な設定方法を示しているため、PALポータルの基礎的な知識が必要になります。

    -
    +

    ダウンロード、専門的サービス、サポート、その他の開発者情報については、次にアクセスしてください。

      @@ -41,7 +41,7 @@

    -
    +

    本製品に関する技術的質問で、ドキュメント内に解決策が得られない場合は、次にアクセスしてください。

      @@ -57,7 +57,7 @@ Portal Application Laboratoryプロジェクトはそのようなサイトやリソースと通じて、利用可能なコンテンツ、広告、製品、サービス、その他のドキュメントなどを、使用または信用したり、それに関連して発生または申し立てられた、一切の損傷や損害に対しては責任または義務を負いません。

    -
    +

    Portal Application Laboratoryプロジェクトは、このドキュメントの改善に努めており、読者からのコメントおよび提案などを歓迎しています。

      From svnnotify @ sourceforge.jp Sun May 13 11:45:08 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 13 May 2007 11:45:08 +0900 Subject: [pal-cvs 2402] [134] added installation guide and administration guide. Message-ID: <20070513024508.1ECBC2AC014@users.sourceforge.jp> Revision: 134 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=134 Author: shinsuke Date: 2007-05-13 11:45:07 +0900 (Sun, 13 May 2007) Log Message: ----------- added installation guide and administration guide. Modified Paths: -------------- site/trunk/xdocs/navigation.xml -------------- next part -------------- Modified: site/trunk/xdocs/navigation.xml =================================================================== --- site/trunk/xdocs/navigation.xml 2007-05-13 02:40:52 UTC (rev 133) +++ site/trunk/xdocs/navigation.xml 2007-05-13 02:45:07 UTC (rev 134) @@ -20,6 +20,8 @@ + + From svnnotify @ sourceforge.jp Sun May 13 11:49:16 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 13 May 2007 11:49:16 +0900 Subject: [pal-cvs 2403] [135] added comment. Message-ID: <20070513024916.5A89A2AC012@users.sourceforge.jp> Revision: 135 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=135 Author: shinsuke Date: 2007-05-13 11:49:16 +0900 (Sun, 13 May 2007) Log Message: ----------- added comment. Modified Paths: -------------- site/trunk/xdocs/who-uses-pal.xml -------------- next part -------------- Modified: site/trunk/xdocs/who-uses-pal.xml =================================================================== --- site/trunk/xdocs/who-uses-pal.xml 2007-05-13 02:45:07 UTC (rev 134) +++ site/trunk/xdocs/who-uses-pal.xml 2007-05-13 02:49:16 UTC (rev 135) @@ -24,6 +24,9 @@
      +

      + Portal Application Laboratory の製品を利用されていましたら、ぜひ、お知らせください。 +

      From svnnotify @ sourceforge.jp Mon May 14 14:25:08 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 14 May 2007 14:25:08 +0900 Subject: [pal-cvs 2404] [136] added install/uninstall steps. Message-ID: <20070514052508.1AD9C2AC01A@users.sourceforge.jp> Revision: 136 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=136 Author: shinsuke Date: 2007-05-14 14:25:07 +0900 (Mon, 14 May 2007) Log Message: ----------- added install/uninstall steps. Modified Paths: -------------- pal-portal/trunk/docs/ja/installation-guide/xdocs/navigation.xml Added Paths: ----------- pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-cli-install-for-unix.xml pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-cli-install-for-win.xml pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-gui-install-for-unix.xml pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-gui-install-for-win.xml pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-uninstall-for-unix.xml pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-uninstall-for-win.xml pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-upgrade.xml pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_beforeinstall.gif pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_complete.gif pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_components.gif pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_dbselection.gif pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_install.gif pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_license.gif pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_location.gif pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_mailserver.gif pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_welcome.gif pal-portal/trunk/docs/ja/installation-guide/xdocs/images/palportal_top.gif -------------- next part -------------- Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-cli-install-for-unix.xml =================================================================== --- pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-cli-install-for-unix.xml 2007-05-13 02:49:16 UTC (rev 135) +++ pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-cli-install-for-unix.xml 2007-05-14 05:25:07 UTC (rev 136) @@ -0,0 +1,33 @@ + + + + + PALポータル インストールガイド + Unix 系 OS での GUI インストール + + + + + +
      +

      + PALポータルは、Unix または Linux の OS 上でコマンドラインインターフェース (CLI) によるインストールをサポートしていません。 + グラフィカルユーザーインターフェースによるインストールをご利用ください。 +

      +
      + +
      Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-cli-install-for-unix.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-cli-install-for-win.xml =================================================================== --- pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-cli-install-for-win.xml 2007-05-13 02:49:16 UTC (rev 135) +++ pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-cli-install-for-win.xml 2007-05-14 05:25:07 UTC (rev 136) @@ -0,0 +1,33 @@ + + + + + PALポータル インストールガイド + Windows 系 OS での GUI インストール + + + + + +
      +

      + PALポータルは、Windows の OS 上でコマンドラインインターフェース (CLI) によるインストールをサポートしていません。 + グラフィカルユーザーインターフェースによるインストールをご利用ください。 +

      +
      + +
      Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-cli-install-for-win.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-gui-install-for-unix.xml =================================================================== --- pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-gui-install-for-unix.xml 2007-05-13 02:49:16 UTC (rev 135) +++ pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-gui-install-for-unix.xml 2007-05-14 05:25:07 UTC (rev 136) @@ -0,0 +1,167 @@ + + + + + PALポータル インストールガイド + Unix 系 OS での GUI インストール + + + + + +
      +

      + PALポータルは、Unix または Linux の OS 上でグラフィカルユーザーインターフェース (GUI) によるインストールをサポートしています。 + この章では、GUI によるインストール手順について説明しています。 + GUI によるインストールを行うためには、X Window システムが利用できる状態になっている必要があります。 +

      +
      +
      +

      + PALポータルおよび PALポータルのインストーラーは、Java SDK(1.5.x以上) が必要になります。 + http://java.sun.com/ にアクセスして、Java SDK を取得してください。 + Java SDK のインストール手順については、http://java.sun.com/ にあるインストール手順にしたがってください。 +

      +

      + PALポータルおよび PALポータルのインストーラーを実行するためには、環境変数に JAVA_HOME が設定されている必要があるので、設定されていることを確認してください。Unix 系 OS で環境変数 JAVA_HOME を設定するためには、 + + を実行します。 +

      +
      +
      + +

      + http://sourceforge.jp/projects/pal/files/ から PALポータルのインストーラー(jarファイル)をダウンロードしてください。 + インストーラーのファイル名は、PALPortal-install-[version].jar になります([version]は PALポータルのバージョンです)。 +

      +
      + +

      + 端末エミュレータ上で + + + + を実行します(java コマンドが含まれるディレクトリは、環境変数 PATH で指定されている必要があります)。 + 実行するとインストーラーが起動します。 +

      + +

      + Next ボタンをクリックします。 +

      +
      + +

      + ライセンスを確認します。 +

      + +

      + ライセンスに同意する場合は、Accept ボタンをクリックします。 + 同意できない場合は、Reject ボタンをクリックして、インストールを終了してください。 +

      +
      + +

      + インストールする場所を選択してください。テキストフィールド欄にインストールするパスを入力するか、Select Folder ボタンをクリックして、インストールする場所を指定します。 +

      + +

      + Next ボタンをクリックします。 +

      +
      + +

      + インストールされるコンポーネントの一覧が表示されます。 +

      + +

      + Next ボタンをクリックします。 +

      +
      + +

      + 利用するデータベースを指定します。 + デフォルトの DB を利用する場合は、Derby を選択してください。 +

      + +

      + Next ボタンをクリックします。 +

      + +
      + +

      + PALポータルで利用するメールサーバーを指定します。 + Mail server name テキストフィールドにメールサーバー名を指定します。 + メールサーバーがユーザー認証を利用している場合には、User authentication チェックボックスを選択して、ユーザー名とパスワードを入力します。 +

      + +

      + Next ボタンをクリックします。 +

      +
      + +

      + インストールを実行する前に、インストール先のディレクトリを確認してください。 + 指定されたディレクトリが削除されます。 +

      + +

      + Next ボタンをクリックします。 +

      +
      + +

      + Install ボタンをクリックするとインストールが実行されます。 + Show ボタンをクリックすると、インストール時のログを確認することができます。 +

      + +

      + Install ボタンをクリックします。 +

      +
      + +

      + インストールが完了すると、Finished というメッセージが表示されます。 + インストールに失敗した場合は、ログでエラー内容を確認してください。 +

      + +

      + Exit ボタンをインストーラーを終了します。 +

      +
      + +

      + 端末エミュレータ上で + + を実行して、PALポータルを起動してください。起動後、http://localhost:8080/palportal にアクセスして、PALポータルのトップページが表示されることを確認してください。 +

      + +

      + デフォルトで、登録されている管理者は、ユーザー名 admin 、パスワード admin です。 + また、デフォルトで表示されるサイトを編集する場合には、ユーザー名 site 、パスワード site でログインして、コンテンツを編集してください。 +

      +
      +
      + +
      Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-gui-install-for-unix.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-gui-install-for-win.xml =================================================================== --- pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-gui-install-for-win.xml 2007-05-13 02:49:16 UTC (rev 135) +++ pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-gui-install-for-win.xml 2007-05-14 05:25:07 UTC (rev 136) @@ -0,0 +1,161 @@ + + + + + PALポータル インストールガイド + Windows 系 OS での GUI インストール + + + + + +
      +

      + PALポータルは、Windows の OS 上でグラフィカルユーザーインターフェース (GUI) によるインストールをサポートしています。 + この章では、GUI によるインストール手順について説明しています。 +

      +
      +
      +

      + PALポータルおよび PALポータルのインストーラーは、Java SDK(1.5.x以上) が必要になります。 + http://java.sun.com/ にアクセスして、Java SDK を取得してください。 + Java SDK のインストール手順については、http://java.sun.com/ にあるインストール手順にしたがってください。 +

      +

      + PALポータルおよび PALポータルのインストーラーを実行するためには、環境変数に JAVA_HOME が設定されている必要があるので、設定されていることを確認してください。 +

      +
      +
      + +

      + http://sourceforge.jp/projects/pal/files/ から PALポータルのインストーラー(jarファイル)をダウンロードしてください。 + インストーラーのファイル名は、PALPortal-install-[version].jar になります([version]は PALポータルのバージョンです)。 +

      +
      + +

      + DOS窓上などで + + java -jar PALPortal-install-[version].jar +]]> + + を実行します。 + 実行するとインストーラーが起動します。 +

      + +

      + Next ボタンをクリックします。 +

      +
      + +

      + ライセンスを確認します。 +

      + +

      + ライセンスに同意する場合は、Accept ボタンをクリックします。 + 同意できない場合は、Reject ボタンをクリックして、インストールを終了してください。 +

      +
      + +

      + インストールする場所を選択してください。テキストフィールド欄にインストールするパスを入力するか、Select Folder ボタンをクリックして、インストールする場所を指定します。 +

      + +

      + Next ボタンをクリックします。 +

      +
      + +

      + インストールされるコンポーネントの一覧が表示されます。 +

      + +

      + Next ボタンをクリックします。 +

      +
      + +

      + 利用するデータベースを指定します。 + デフォルトの DB を利用する場合は、Derby を選択してください。 +

      + +

      + Next ボタンをクリックします。 +

      + +
      + +

      + PALポータルで利用するメールサーバーを指定します。 + Mail server name テキストフィールドにメールサーバー名を指定します。 + メールサーバーがユーザー認証を利用している場合には、User authentication チェックボックスを選択して、ユーザー名とパスワードを入力します。 +

      + +

      + Next ボタンをクリックします。 +

      +
      + +

      + インストールを実行する前に、インストール先のディレクトリを確認してください。 + 指定されたディレクトリが削除されます。 +

      + +

      + Next ボタンをクリックします。 +

      +
      + +

      + Install ボタンをクリックするとインストールが実行されます。 + Show ボタンをクリックすると、インストール時のログを確認することができます。 +

      + +

      + Install ボタンをクリックします。 +

      +
      + +

      + インストールが完了すると、Finished というメッセージが表示されます。 + インストールに失敗した場合は、ログでエラー内容を確認してください。 +

      + +

      + Exit ボタンをインストーラーを終了します。 +

      +
      + +

      + 端末エミュレータ上で + [インストール場所]/bin/startup.bat +]]> + を実行して、PALポータルを起動してください。起動後、http://localhost:8080/palportal にアクセスして、PALポータルのトップページが表示されることを確認してください。 +

      + +

      + デフォルトで、登録されている管理者は、ユーザー名 admin 、パスワード admin です。 + また、デフォルトで表示されるサイトを編集する場合には、ユーザー名 site 、パスワード site でログインして、コンテンツを編集してください。 +

      +
      +
      + +
      Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-gui-install-for-win.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-uninstall-for-unix.xml =================================================================== --- pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-uninstall-for-unix.xml 2007-05-13 02:49:16 UTC (rev 135) +++ pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-uninstall-for-unix.xml 2007-05-14 05:25:07 UTC (rev 136) @@ -0,0 +1,37 @@ + + + + + PALポータル インストールガイド + Unix 系 OS でのアンインストール + + + + + +
      +

      + PALポータルのアンインストールは、インストールしたディレクトリを削除するだけで完了します。 + 端末エミュレータ上で + + を実行してください。 +

      +
      + +
      Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-uninstall-for-unix.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-uninstall-for-win.xml =================================================================== --- pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-uninstall-for-win.xml 2007-05-13 02:49:16 UTC (rev 135) +++ pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-uninstall-for-win.xml 2007-05-14 05:25:07 UTC (rev 136) @@ -0,0 +1,37 @@ + + + + + PALポータル インストールガイド + Windows 系 OS でのアンインストール + + + + + +
      +

      + PALポータルのアンインストールは、インストールしたディレクトリを削除するだけで完了します。 + DOS窓上などで + rmdir [インストール場所] +]]> + を実行してください。 +

      +
      + +
      Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-uninstall-for-win.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-upgrade.xml =================================================================== --- pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-upgrade.xml 2007-05-13 02:49:16 UTC (rev 135) +++ pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-upgrade.xml 2007-05-14 05:25:07 UTC (rev 136) @@ -0,0 +1,32 @@ + + + + + PALポータル インストールガイド + PALポータルのアップグレード + + + + + +
      +

      + TBD +

      +
      + +
      Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/guide-upgrade.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_beforeinstall.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_beforeinstall.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_complete.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_complete.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_components.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_components.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_dbselection.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_dbselection.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_install.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_install.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_license.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_license.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_location.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_location.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_mailserver.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_mailserver.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_welcome.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/installer_unix_welcome.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/palportal_top.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/installation-guide/xdocs/images/palportal_top.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: pal-portal/trunk/docs/ja/installation-guide/xdocs/navigation.xml =================================================================== --- pal-portal/trunk/docs/ja/installation-guide/xdocs/navigation.xml 2007-05-13 02:49:16 UTC (rev 135) +++ pal-portal/trunk/docs/ja/installation-guide/xdocs/navigation.xml 2007-05-14 05:25:07 UTC (rev 136) @@ -24,10 +24,14 @@ - + + + + - + + From svnnotify @ sourceforge.jp Mon May 14 15:03:45 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 14 May 2007 15:03:45 +0900 Subject: [pal-cvs 2405] [137] added portlet developer's guide Message-ID: <20070514060345.582982AC020@users.sourceforge.jp> Revision: 137 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=137 Author: shinsuke Date: 2007-05-14 15:03:45 +0900 (Mon, 14 May 2007) Log Message: ----------- added portlet developer's guide Added Paths: ----------- pal-portal/trunk/docs/ja/portlet-developers-guide/ pal-portal/trunk/docs/ja/portlet-developers-guide/project.properties pal-portal/trunk/docs/ja/portlet-developers-guide/project.xml pal-portal/trunk/docs/ja/portlet-developers-guide/src/ pal-portal/trunk/docs/ja/portlet-developers-guide/src/resources/ pal-portal/trunk/docs/ja/portlet-developers-guide/src/resources/site.jsl pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/ pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/guide-teeda-based-portlet.xml pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/images/ pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/images/pal-logo.png pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/index.xml pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/navigation.xml -------------- next part -------------- Added: pal-portal/trunk/docs/ja/portlet-developers-guide/project.properties =================================================================== --- pal-portal/trunk/docs/ja/portlet-developers-guide/project.properties 2007-05-14 05:25:07 UTC (rev 136) +++ pal-portal/trunk/docs/ja/portlet-developers-guide/project.properties 2007-05-14 06:03:45 UTC (rev 137) @@ -0,0 +1,33 @@ +# Repo +maven.repo.remote = http://jetplume.sourceforge.jp/maven/, http://www.bluesunrise.com/maven/, http://www.ibiblio.org/maven/, http://dist.codehaus.org/, http://cvs.apache.org/repository + +# +# DATE Preferences +# +# The place of the date on the pages : choices are 'bottom', 'left', 'right', 'navigation-top', 'navigation-bottom' +maven.xdoc.date = left +#maven.xdoc.date.format = yyyy/MM/dd HH:mm z +maven.xdoc.date.format = yyyy/MM/dd HH:mm +# The date locale +maven.xdoc.date.locale = ja + +# +# Doc Setting +# +maven.xdoc.version=${pom.currentVersion} +maven.xdoc.includeProjectDocumentation = no +maven.docs.outputencoding = EUC-JP +maven.javadoc.source = 1.4 +maven.xdoc.jsl=file:${maven.src.dir}/resources/site.jsl + +# Multiproject settings +maven.multiproject.includes=*/project.xml +maven.multiproject.excludes=project.xml +# following are default values but needed here because our allSite goal doesn't know them from the plugin +maven.multiproject.aggregateDir=multiproject/ +maven.multiproject.ignoreFailures=true + +maven.pdf.cover.type=Portlet Developer's Guide +maven.pdf.companyLogo=http://pal.sourceforge.jp/images/pal_banner.gif +#maven.pdf.projectLogo=http://pal.sourceforge.jp/pal-portal/docs/ja/portlet-developers-guide/images/sflogo.gif +maven.pdf.projectLogo= Property changes on: pal-portal/trunk/docs/ja/portlet-developers-guide/project.properties ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/portlet-developers-guide/project.xml =================================================================== --- pal-portal/trunk/docs/ja/portlet-developers-guide/project.xml 2007-05-14 05:25:07 UTC (rev 136) +++ pal-portal/trunk/docs/ja/portlet-developers-guide/project.xml 2007-05-14 06:03:45 UTC (rev 137) @@ -0,0 +1,36 @@ + + + + PALポータル ポートレット開発者ガイド + jp.sf.pal.pal-portal.docs.ja + portlet-developers-guide + 0.1-SNAPSHOT + + Portal Application Laboratory + http://sourceforge.jp/projects/pal/ + /images/pal-logo.png + + 2005 + + http://pal.sourceforge.jp/images/sflogo.png + + shell.sourceforge.jp + /home/groups/p/pa/pal/htdocs/pal-portal/docs/ja/portlet-developers-guide/ + + maven-license-plugin + + Property changes on: pal-portal/trunk/docs/ja/portlet-developers-guide/project.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/portlet-developers-guide/src/resources/site.jsl =================================================================== --- pal-portal/trunk/docs/ja/portlet-developers-guide/src/resources/site.jsl 2007-05-14 05:25:07 UTC (rev 136) +++ pal-portal/trunk/docs/ja/portlet-developers-guide/src/resources/site.jsl 2007-05-14 06:03:45 UTC (rev 137) @@ -0,0 +1,513 @@ + + + + + + + + + + + ${maven.xdoc.date} + + + + + + + + <x:expr select="$nav/title"/> - ${docTitle} + + + ${pom.name} - ${docTitle} + + + + + + + + + + + + + + + + + + + + composite + + ${attr.value} + + + + + + + + +
      + +
      + + + +
      +
      + + + + +
      +
      +

      + + + + + + + + + +
      + +
      + + + + + + + + + + + + + + + +
      +
      +
      +
      +
      + +
      + + + + + + + + + + + + + + +
    • + + + + + + + +
        + +
      +
      +
    • +
      + + + + + + + + + + + + + ${maven.xdoc.crumb.separator} + + + + + + + + + + + + + + + + + + + + + + + + + + +
      +
      + + + + + + + ${attr.value} + + + + + + + + + + ${attr.value} + + + + + + + + + +
      + +
      +
      + + + +
      企業/プロジェクト
      + +
      + + + + + + + + + + + + + ${rowMode} + + ${attr.value} + + + + + + + + + + + + + + + + + + + + + + + + + + + ${rowMode} + + ${_goalName} + + + + + + + + + + + + + + + + + + + + + + + ${href} + externalLink + External Link + + + ${href} + + + + + ${attr.value} + + newWindow + New Window + + ${target} + + + + + + + + ${attr.value} + + + + + + + + + + + + + + + + + Added: pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/guide-teeda-based-portlet.xml =================================================================== --- pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/guide-teeda-based-portlet.xml 2007-05-14 05:25:07 UTC (rev 136) +++ pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/guide-teeda-based-portlet.xml 2007-05-14 06:03:45 UTC (rev 137) @@ -0,0 +1,116 @@ + + + + + PALポータル ポートレット開発者ガイド + Teeda を用いたポートレット開発方法 + + + + + +
      +

      + ここでは、Teeda を用いたポートレットの開発方法についてまとめます(TODO: PALポータル用に編集予定)。 +

      +

      +Teeda は、サーブレット以外にもポートレットして動作することをサポートしています。 これは、JSF がポートレットをサポートしているためです(しかし、現状、ポートレットをきちんとサポートしている JSF 実装は数少ないです。Teeda はきちんとサポートする実装の一つといえます!)。 ですので、Teeda Core がポートレットをサポートしているのはもちろんですが、さらに、Teeda の拡張である Teeda Extension についてもポートレットをサポートしているので、サーブレット環境での開発と変わることがなく、ポートレットアプリケーションの開発が行えます。 +

      +
      +
      +

      +まず、ポートレットについて、簡単に説明します。 Java ベースのポートレットは、JSR 168 Portlet Specification にて、ポートレット API が定義されています。そこでは、ポートレットとは、リクエストを処理して、動的にコンテンツを生成するポートレットコンテナによって管理される、Java ベースのウェブコンポーネントで、プレゼンテーション層を情報システムに提供する交換可能なユーザーインターフェースコンポーネントとして、ポータルによって使用される(PLT.2.2)と定義されています。また、ポータルとはウェブベースアプリケーションで、表示、シングルサインオン、異なる発信元からのコンテンツ集約を提供して、情報システムのプレゼンテーション層を提供する(PLT.2.1)と定義されています。仕様的な定義は以上のような感じですが、簡単にまとめると、ポートレットはポータル(サーバー)上の小窓(フラグメント)で、リクエストを処理して、コンテンツをその小窓の中に表示するものです。 JSR 168 では、そのための仕様を定義しています。 +

      +
      +
      +

      +ポートレットで JSF を使うメリットは何でしょうか? JSF をプレゼンテーション層のフレームワークとして利用しない場合、ポートレット API を習得する必要があります。 しかし、JSF をポートレットで利用した場合、JSF にラップされるので、ポートレット API を意識する必要はありません(PortletPreferencesなどポートレット固有の API を使う場合は別ですが)。 ですので、JSF を利用することでウェブアプリケーションを作成する感覚で、ポートレットを作成できてしまうわけです。 +

      +
      +
      +

      +前置きが長くなりましたが、今まではポートレットの開発するために、学習などのコストがあったかもしれませんが、Teeda での開発を知っていれば、その知識をそのまま利用して、ポートレットの開発も行えます(ポータル固有の機能を利用する場合以外は、別途、ポートレットの開発方法を学習する必要はありません!)。Teeda で作成されたウェブアプリケーションをポートレットにするためには、以下のことを行うだけでポートレットになります。 +

      • web.xmlを変更
      • portlet.xmlを追加
      • ポートレットフィルタとS2Portletのjarを追加
      • jspやhtmlからhtml,head,bodyタグを削除する
      +

      +
      +
      +

      +まず、web.xml については、Teeda をサーブレットで初期化しているのであれば TeedaServlet、リスナーで初期化しているのであればTeedaConfigureListener を利用していると思います。ポートレット環境で利用するためには、TeedaServlet であれば TeedaPortletExtendedServlet に、TeedaConfigureListener であれば TeedaPortletExtendedConfigureListener に書き換えてください。 それらに置き換えることで、S2 および Teeda でポートレットがサポートされます。 web.xml の変更はこれだけで OK です。 +

      +
      +
      +

      +次に、portlet.xml ですが、これは JSR 168 で定義されているポートレット配備子です。 ポータルサーバー上に表示するポートレットの情報を記述します。 たとえば、以下のような内容をこのファイルに記述します。 + + + + TeedaHtmlExample + Teeda HTML Example + This is an example portlet for Teeda. + + org.apache.portals.bridges.portletfilter.FilterPortlet + + + portlet-class + org.seasar.teeda.core.portlet.FacesPortlet + + + portlet-filters + org.seasar.portlet.filter.S2PortletFilter, +org.seasar.portlet.filter.HotdeployPortletFilter + + + view-page + /view/start/index.html + + + + text/html + VIEW + + + en + ja + + + Teeda HTML Example + Example + Teeda HTML Example + + + +]]> +まず、portlet-name 要素の値には、ポータルにより利用される一意なポートレット名が入ります。 display-name 要素の値はポータルにより表示される(たとえば、ユーザーがポートレット一覧からポートレットを選択するときなど)ポートレットの名前で、次の description 要素の値がその説明になります。 portlet-class 要素と init-param 要素にある portlet-class および portlet-filters は変更する必要はありません。 init-param 要素の view-page の値は、表示モードでアクセスされたときにデフォルトで表示されるページのパスを記述します(編集モードで表示するページは、edit-page で指定します)。ポートレットで表示されるポートレットには、表示モードや編集モードなどいくつかのモードがあり、たとえば、ポートレットの小窓の右上にある編集ボタンを押すと、編集モードが呼ばれます。 サポートされるポートレットモードは、supports 要素の portlet-mode 要素としてサポートするモードを指定できます。あとは、potlet-info 要素の title、short-title、keywords 要素を変更してください。 title 要素はポートレットの小窓のバーなどに表示されるタイトルで、short-title はその短いタイトルで、ポータルがモバイル環境で表示されるときに短いタイトルが必要なときに表示されます。 keywords 要素は、そのポートレットのキーワードで , 区切りで複数指定できます。 ポータルのポートレット一覧で検索するときなどに利用されます。必要な場所を変更して、portlet.xml として、WEB-INF の下に保存してください(他にもいろいろな要素がありますが、必要に応じて、追加してください)。 +

      +
      +
      +

      +web.xml と portlet.xml を編集したら、必要な jar ファイルを追加します。 追加するものは、Apache Portals Bridges より提供されるポートレットフィルタと、Seasar Project より提供される S2Portlet です。それぞれ以下のところから入手できます。 +

      • S2Portlet: http://s2portlet.sandbox.seasar.org/
      • Portlet Filter: http://portals.apache.org/bridges/
      +

      +
      +
      +

      +最後に、サーブレット環境用に作ると出力される HTML ページは、html、head、body タグなどが含まれます。しかし、ポートレット環境においては、それらのタグはポータルが出力するため、ポートレットは、body タグより下の部分しか表示する必要はありません。それらのタグがあったも、無視してくれるブラウザもあるかと思いますが、きちんとしたポートレットを作成したい場合には、削除してください(html タグや head タグなどを削除したい場合は、ポートレット出力オプティマイザーをご利用ください)。 +

      +
      + +
      Property changes on: pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/guide-teeda-based-portlet.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/images/pal-logo.png =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/images/pal-logo.png ___________________________________________________________________ Name: svn:mime-type + image/png Added: pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/index.xml =================================================================== --- pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/index.xml 2007-05-14 05:25:07 UTC (rev 136) +++ pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/index.xml 2007-05-14 06:03:45 UTC (rev 137) @@ -0,0 +1,70 @@ + + + + + PALポータル ポートレット開発者ガイド + PALポータル ポートレット開発者ガイド + + + + + +
      +

      + このドキュメントは、PALポータルでポートレットを開発するユーザーを対象にしています。 +

      +
      +
      +

      + このドキュメントでは、PALポータルを利用したポートレットの開発方法について示しています。 + Java での開発についての基礎的な知識が必要になります。 +

      +
      +
      +

      + ダウンロード、専門的サービス、サポート、その他の開発者情報については、次にアクセスしてください。 +

      +

      +
      +
      +

      + 本製品に関する技術的質問で、ドキュメント内に解決策が得られない場合は、次にアクセスしてください。 +

      +

      +
      +
      +

      + Portal Application Laboratoryプロジェクトでは、このドキュメントに記載されているサードパーティーの Web サイトの有効性については責任を持ちません。 + Portal Application Laboratoryプロジェクトはそのようなサイトやリソースを通じて、利用可能なコンテンツ、広告、製品、サービス、その他のドキュメントなどについて、保証、責任、義務を負いません。 + Portal Application Laboratoryプロジェクトはそのようなサイトやリソースと通じて、利用可能なコンテンツ、広告、製品、サービス、その他のドキュメントなどを、使用または信用したり、それに関連して発生または申し立てられた、一切の損傷や損害に対しては責任または義務を負いません。 +

      +
      +
      +

      + Portal Application Laboratoryプロジェクトは、このドキュメントの改善に努めており、読者からのコメントおよび提案などを歓迎しています。 +

      +

      +
      + + Property changes on: pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/index.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/navigation.xml =================================================================== --- pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/navigation.xml 2007-05-14 05:25:07 UTC (rev 136) +++ pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/navigation.xml 2007-05-14 06:03:45 UTC (rev 137) @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + Property changes on: pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/navigation.xml ___________________________________________________________________ Name: svn:eol-style + native From svnnotify @ sourceforge.jp Mon May 14 15:07:56 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 14 May 2007 15:07:56 +0900 Subject: [pal-cvs 2406] [138] added portlet developers guide. Message-ID: <20070514060756.418652AC019@users.sourceforge.jp> Revision: 138 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=138 Author: shinsuke Date: 2007-05-14 15:07:56 +0900 (Mon, 14 May 2007) Log Message: ----------- added portlet developers guide. Modified Paths: -------------- site/trunk/xdocs/navigation.xml -------------- next part -------------- Modified: site/trunk/xdocs/navigation.xml =================================================================== --- site/trunk/xdocs/navigation.xml 2007-05-14 06:03:45 UTC (rev 137) +++ site/trunk/xdocs/navigation.xml 2007-05-14 06:07:56 UTC (rev 138) @@ -13,8 +13,6 @@ - @@ -23,6 +21,9 @@ + + From svnnotify @ sourceforge.jp Mon May 14 17:02:24 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 14 May 2007 17:02:24 +0900 Subject: [pal-cvs 2407] [139] replaced text with icon. Message-ID: <20070514080224.A435A2AC019@users.sourceforge.jp> Revision: 139 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=139 Author: shinsuke Date: 2007-05-14 17:02:24 +0900 (Mon, 14 May 2007) Log Message: ----------- replaced text with icon. Modified Paths: -------------- wiki/trunk/src/main/java/jp/sf/pal/wiki/util/WikiUtil.java wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewContentPage.java wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewNamePage.java wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/DisplayContentPage.java wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/DisplayListPage.java wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/EditContentPage.java wiki/trunk/src/main/webapp/view/viewer/createNewContent.html wiki/trunk/src/main/webapp/view/viewer/createNewName.html wiki/trunk/src/main/webapp/view/viewer/displayContent.html wiki/trunk/src/main/webapp/view/viewer/displayList.html wiki/trunk/src/main/webapp/view/viewer/editContent.html Added Paths: ----------- wiki/trunk/NOTICE.txt wiki/trunk/src/main/webapp/images/ wiki/trunk/src/main/webapp/images/icons/ wiki/trunk/src/main/webapp/images/icons/arrow_turn_left.png wiki/trunk/src/main/webapp/images/icons/folder_page.png wiki/trunk/src/main/webapp/images/icons/page.png wiki/trunk/src/main/webapp/images/icons/page_add.png wiki/trunk/src/main/webapp/images/icons/page_edit.png -------------- next part -------------- Added: wiki/trunk/NOTICE.txt =================================================================== --- wiki/trunk/NOTICE.txt 2007-05-14 06:07:56 UTC (rev 138) +++ wiki/trunk/NOTICE.txt 2007-05-14 08:02:24 UTC (rev 139) @@ -0,0 +1,13 @@ +Web Content Management Portlet +Copyright 2005-2007 Portal Application Laboratory Project + +This product includes software developed at +The Apache Software Foundation (http://www.apache.org/). + +This software contains codes and resources derived from: + + Silk icon set 1.3 + Mark James + http://www.famfamfam.com/lab/icons/silk/ + Creative Commons Attribution 2.5 License + Property changes on: wiki/trunk/NOTICE.txt ___________________________________________________________________ Name: svn:eol-style + native Modified: wiki/trunk/src/main/java/jp/sf/pal/wiki/util/WikiUtil.java =================================================================== --- wiki/trunk/src/main/java/jp/sf/pal/wiki/util/WikiUtil.java 2007-05-14 06:07:56 UTC (rev 138) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/util/WikiUtil.java 2007-05-14 08:02:24 UTC (rev 139) @@ -68,4 +68,33 @@ } return "UTF-8"; } + + public static String getRequestContextPath() { + FacesContext context = FacesContext.getCurrentInstance(); + if (context == null) { + throw new IllegalStateException( + "Could not find FacesContext instance."); + } + return context.getExternalContext().getRequestContextPath(); + } + + public static String getCreateNewPageIconPath() { + return getRequestContextPath() + "/images/icons/page_add.png"; + } + + public static String getEditPageIconPath() { + return getRequestContextPath() + "/images/icons/page_edit.png"; + } + + public static String getDisplayListPageIconPath() { + return getRequestContextPath() + "/images/icons/folder_page.png"; + } + + public static String getDisplayContentPageIconPath() { + return getRequestContextPath() + "/images/icons/page.png"; + } + + public static String getBackToPageIconPath() { + return getRequestContextPath() + "/images/icons/arrow_turn_left.png"; + } } Modified: wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewContentPage.java =================================================================== --- wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewContentPage.java 2007-05-14 06:07:56 UTC (rev 138) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewContentPage.java 2007-05-14 08:02:24 UTC (rev 139) @@ -20,6 +20,7 @@ import jp.sf.pal.wiki.WikiConstants; import jp.sf.pal.wiki.service.WikiContentService; +import jp.sf.pal.wiki.util.WikiUtil; import org.seasar.framework.container.S2Container; @@ -136,4 +137,7 @@ this.pageName = pageName; } + public String getDisplayContentPageIconSrc() { + return WikiUtil.getBackToPageIconPath(); + } } Modified: wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewNamePage.java =================================================================== --- wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewNamePage.java 2007-05-14 06:07:56 UTC (rev 138) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewNamePage.java 2007-05-14 08:02:24 UTC (rev 139) @@ -17,6 +17,7 @@ import jp.sf.pal.wiki.WikiConstants; import jp.sf.pal.wiki.service.WikiContentService; +import jp.sf.pal.wiki.util.WikiUtil; import org.seasar.framework.container.S2Container; @@ -99,4 +100,7 @@ this.container = container; } + public String getDisplayContentPageIconSrc() { + return WikiUtil.getBackToPageIconPath(); + } } Modified: wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/DisplayContentPage.java =================================================================== --- wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/DisplayContentPage.java 2007-05-14 06:07:56 UTC (rev 138) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/DisplayContentPage.java 2007-05-14 08:02:24 UTC (rev 139) @@ -16,6 +16,7 @@ package jp.sf.pal.wiki.web.viewer; import jp.sf.pal.wiki.service.WikiContentService; +import jp.sf.pal.wiki.util.WikiUtil; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -128,4 +129,15 @@ this.wikiContentService = wikiContentService; } + public String getCreateNewPageIconSrc() { + return WikiUtil.getCreateNewPageIconPath(); + } + + public String getEditContentPageIconSrc() { + return WikiUtil.getEditPageIconPath(); + } + + public String getDisplayListPageIconSrc() { + return WikiUtil.getDisplayListPageIconPath(); + } } Modified: wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/DisplayListPage.java =================================================================== --- wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/DisplayListPage.java 2007-05-14 06:07:56 UTC (rev 138) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/DisplayListPage.java 2007-05-14 08:02:24 UTC (rev 139) @@ -18,6 +18,7 @@ import java.util.List; import jp.sf.pal.wiki.service.WikiContentService; +import jp.sf.pal.wiki.util.WikiUtil; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -100,4 +101,12 @@ public void setPageName(String title) { this.pageName = title; } + + public String getCreateNewPageIconSrc() { + return WikiUtil.getCreateNewPageIconPath(); + } + + public String getDisplayContentPageIconSrc() { + return WikiUtil.getDisplayContentPageIconPath(); + } } Modified: wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/EditContentPage.java =================================================================== --- wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/EditContentPage.java 2007-05-14 06:07:56 UTC (rev 138) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/EditContentPage.java 2007-05-14 08:02:24 UTC (rev 139) @@ -20,6 +20,7 @@ import jp.sf.pal.wiki.WikiConstants; import jp.sf.pal.wiki.service.WikiContentService; +import jp.sf.pal.wiki.util.WikiUtil; import org.seasar.framework.container.S2Container; @@ -141,4 +142,7 @@ this.container = container; } + public String getDisplayContentPageIconSrc() { + return WikiUtil.getBackToPageIconPath(); + } } Added: wiki/trunk/src/main/webapp/images/icons/arrow_turn_left.png =================================================================== (Binary files differ) Property changes on: wiki/trunk/src/main/webapp/images/icons/arrow_turn_left.png ___________________________________________________________________ Name: svn:mime-type + image/png Added: wiki/trunk/src/main/webapp/images/icons/folder_page.png =================================================================== (Binary files differ) Property changes on: wiki/trunk/src/main/webapp/images/icons/folder_page.png ___________________________________________________________________ Name: svn:mime-type + image/png Added: wiki/trunk/src/main/webapp/images/icons/page.png =================================================================== (Binary files differ) Property changes on: wiki/trunk/src/main/webapp/images/icons/page.png ___________________________________________________________________ Name: svn:mime-type + image/png Added: wiki/trunk/src/main/webapp/images/icons/page_add.png =================================================================== (Binary files differ) Property changes on: wiki/trunk/src/main/webapp/images/icons/page_add.png ___________________________________________________________________ Name: svn:mime-type + image/png Added: wiki/trunk/src/main/webapp/images/icons/page_edit.png =================================================================== (Binary files differ) Property changes on: wiki/trunk/src/main/webapp/images/icons/page_edit.png ___________________________________________________________________ Name: svn:mime-type + image/png Modified: wiki/trunk/src/main/webapp/view/viewer/createNewContent.html =================================================================== --- wiki/trunk/src/main/webapp/view/viewer/createNewContent.html 2007-05-14 06:07:56 UTC (rev 138) +++ wiki/trunk/src/main/webapp/view/viewer/createNewContent.html 2007-05-14 08:02:24 UTC (rev 139) @@ -10,8 +10,8 @@
      -
      - Back + + Back
      Back
      Modified: wiki/trunk/src/main/webapp/view/viewer/createNewName.html =================================================================== --- wiki/trunk/src/main/webapp/view/viewer/createNewName.html 2007-05-14 06:07:56 UTC (rev 138) +++ wiki/trunk/src/main/webapp/view/viewer/createNewName.html 2007-05-14 08:02:24 UTC (rev 139) @@ -10,8 +10,8 @@
      -
      - Back + + Back
      Back
      Modified: wiki/trunk/src/main/webapp/view/viewer/displayContent.html =================================================================== --- wiki/trunk/src/main/webapp/view/viewer/displayContent.html 2007-05-14 06:07:56 UTC (rev 138) +++ wiki/trunk/src/main/webapp/view/viewer/displayContent.html 2007-05-14 08:02:24 UTC (rev 139) @@ -10,14 +10,14 @@
      - - -
      - New + + New
      New
      - Edit + + Edit
      Edit
      - List + + List
      List
      Modified: wiki/trunk/src/main/webapp/view/viewer/displayList.html =================================================================== --- wiki/trunk/src/main/webapp/view/viewer/displayList.html 2007-05-14 06:07:56 UTC (rev 138) +++ wiki/trunk/src/main/webapp/view/viewer/displayList.html 2007-05-14 08:02:24 UTC (rev 139) @@ -8,13 +8,13 @@
      - +
      - -
      - New + + New
      New
      - Content + + Content
      Content
      Modified: wiki/trunk/src/main/webapp/view/viewer/editContent.html =================================================================== --- wiki/trunk/src/main/webapp/view/viewer/editContent.html 2007-05-14 06:07:56 UTC (rev 138) +++ wiki/trunk/src/main/webapp/view/viewer/editContent.html 2007-05-14 08:02:24 UTC (rev 139) @@ -10,8 +10,8 @@
      -
      - Back + + Back
      Back
      From svnnotify @ sourceforge.jp Mon May 14 18:16:30 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 14 May 2007 18:16:30 +0900 Subject: [pal-cvs 2408] [140] updated default page. Message-ID: <20070514091630.AEBA32AC019@users.sourceforge.jp> Revision: 140 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=140 Author: shinsuke Date: 2007-05-14 18:16:30 +0900 (Mon, 14 May 2007) Log Message: ----------- updated default page. Modified Paths: -------------- wiki/trunk/src/main/webapp/WEB-INF/wiki/data/FrontPage.txt -------------- next part -------------- Modified: wiki/trunk/src/main/webapp/WEB-INF/wiki/data/FrontPage.txt =================================================================== --- wiki/trunk/src/main/webapp/WEB-INF/wiki/data/FrontPage.txt 2007-05-14 08:02:24 UTC (rev 139) +++ wiki/trunk/src/main/webapp/WEB-INF/wiki/data/FrontPage.txt 2007-05-14 09:16:30 UTC (rev 140) @@ -1,8 +1,31 @@ * Wiki Portlet This is a portlet to implement wiki on a portlet. -* Features +** Features - Create a new wiki page - Display wiki pages -* TODO +** TODO - many... +*Caption 1 +**Caption 2 +> BlockQuotation 1 +>> BlockQuotation 2 +>>> BlockQuotation 3 +***Caption 3 + #!/usr/bin/perl -w + user strict; + print < Revision: 141 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=141 Author: shinsuke Date: 2007-05-14 18:17:20 +0900 (Mon, 14 May 2007) Log Message: ----------- fixed wiki format issues Modified Paths: -------------- wiki/trunk/.classpath wiki/trunk/pom.xml wiki/trunk/src/main/resources/streamconverter.dicon -------------- next part -------------- Modified: wiki/trunk/.classpath =================================================================== --- wiki/trunk/.classpath 2007-05-14 09:16:30 UTC (rev 140) +++ wiki/trunk/.classpath 2007-05-14 09:17:20 UTC (rev 141) @@ -7,8 +7,9 @@ + - + @@ -17,7 +18,6 @@ - Modified: wiki/trunk/pom.xml =================================================================== --- wiki/trunk/pom.xml 2007-05-14 09:16:30 UTC (rev 140) +++ wiki/trunk/pom.xml 2007-05-14 09:17:20 UTC (rev 141) @@ -149,7 +149,7 @@ jp.sf.streamconverter streamconverter-wiki - 0.2 + 0.2.1 xerces Modified: wiki/trunk/src/main/resources/streamconverter.dicon =================================================================== --- wiki/trunk/src/main/resources/streamconverter.dicon 2007-05-14 09:16:30 UTC (rev 140) +++ wiki/trunk/src/main/resources/streamconverter.dicon 2007-05-14 09:17:20 UTC (rev 141) @@ -5,14 +5,15 @@ "WikiConverter" {ConvertBlockQuotationValve, +ConvertCaptionValve, ConvertListValve, ConvertNumberListValve, ConvertPageNameLinkValve, ConvertPageLinkValve, -ConvertPreValve, ConvertTableValve, ConvertLineBreakValve, -ConvertParagraphValve} +ConvertParagraphValve, +ConvertPreValve} From svnnotify @ sourceforge.jp Mon May 14 18:18:07 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 14 May 2007 18:18:07 +0900 Subject: [pal-cvs 2410] [142] set empty. Message-ID: <20070514091807.A52352AC015@users.sourceforge.jp> Revision: 142 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=142 Author: shinsuke Date: 2007-05-14 18:18:07 +0900 (Mon, 14 May 2007) Log Message: ----------- set empty. Modified Paths: -------------- wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewContentPage.java wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewNamePage.java -------------- next part -------------- Modified: wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewContentPage.java =================================================================== --- wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewContentPage.java 2007-05-14 09:17:20 UTC (rev 141) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewContentPage.java 2007-05-14 09:18:07 UTC (rev 142) @@ -89,6 +89,7 @@ * @return */ public String prerender() { + setContent(""); return null; } Modified: wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewNamePage.java =================================================================== --- wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewNamePage.java 2007-05-14 09:17:20 UTC (rev 141) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewNamePage.java 2007-05-14 09:18:07 UTC (rev 142) @@ -44,7 +44,7 @@ if (pageName == null || pageName.equals("")) { // TODO i18n FacesMessageUtil.addErrorMessage("Invalid page name."); - return WikiConstants.DISPLAY_CONTENT_HTMLPAGE; + return null; } WikiContentService contentService = (WikiContentService) container @@ -67,6 +67,7 @@ * @return */ public String prerender() { + setPageName(""); return null; } From svnnotify @ sourceforge.jp Mon May 14 18:18:37 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 14 May 2007 18:18:37 +0900 Subject: [pal-cvs 2411] [143] applied css. Message-ID: <20070514091837.68C932AC00F@users.sourceforge.jp> Revision: 143 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=143 Author: shinsuke Date: 2007-05-14 18:18:37 +0900 (Mon, 14 May 2007) Log Message: ----------- applied css. Modified Paths: -------------- wiki/trunk/src/main/webapp/view/viewer/createNewContent.html wiki/trunk/src/main/webapp/view/viewer/createNewName.html wiki/trunk/src/main/webapp/view/viewer/displayContent.html wiki/trunk/src/main/webapp/view/viewer/displayList.html wiki/trunk/src/main/webapp/view/viewer/editContent.html -------------- next part -------------- Modified: wiki/trunk/src/main/webapp/view/viewer/createNewContent.html =================================================================== --- wiki/trunk/src/main/webapp/view/viewer/createNewContent.html 2007-05-14 09:18:07 UTC (rev 142) +++ wiki/trunk/src/main/webapp/view/viewer/createNewContent.html 2007-05-14 09:18:37 UTC (rev 143) @@ -17,17 +17,17 @@
      - +
      - Name: - Page Name + Name: + Page Name
      - +
      - +
      Modified: wiki/trunk/src/main/webapp/view/viewer/createNewName.html =================================================================== --- wiki/trunk/src/main/webapp/view/viewer/createNewName.html 2007-05-14 09:18:07 UTC (rev 142) +++ wiki/trunk/src/main/webapp/view/viewer/createNewName.html 2007-05-14 09:18:37 UTC (rev 143) @@ -17,14 +17,14 @@
      - +
      - Page Name: - + Page Name: +
      - +
      Modified: wiki/trunk/src/main/webapp/view/viewer/displayContent.html =================================================================== --- wiki/trunk/src/main/webapp/view/viewer/displayContent.html 2007-05-14 09:18:07 UTC (rev 142) +++ wiki/trunk/src/main/webapp/view/viewer/displayContent.html 2007-05-14 09:18:37 UTC (rev 143) @@ -23,7 +23,7 @@
      - +
      - Wiki Content + Wiki Content
      Modified: wiki/trunk/src/main/webapp/view/viewer/displayList.html =================================================================== --- wiki/trunk/src/main/webapp/view/viewer/displayList.html 2007-05-14 09:18:07 UTC (rev 142) +++ wiki/trunk/src/main/webapp/view/viewer/displayList.html 2007-05-14 09:18:37 UTC (rev 143) @@ -20,15 +20,15 @@
      - +
      - +
      -
      TitleTitle
      + Page Title Modified: wiki/trunk/src/main/webapp/view/viewer/editContent.html =================================================================== --- wiki/trunk/src/main/webapp/view/viewer/editContent.html 2007-05-14 09:18:07 UTC (rev 142) +++ wiki/trunk/src/main/webapp/view/viewer/editContent.html 2007-05-14 09:18:37 UTC (rev 143) @@ -17,17 +17,17 @@
      - +
      Name: Page Name
      - +
      - +
      From svnnotify @ sourceforge.jp Mon May 14 21:17:05 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 14 May 2007 21:17:05 +0900 Subject: [pal-cvs 2412] [144] table width is 300px. Message-ID: <20070514121705.7BC442AC00F@users.sourceforge.jp> Revision: 144 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=144 Author: shinsuke Date: 2007-05-14 21:17:05 +0900 (Mon, 14 May 2007) Log Message: ----------- table width is 300px. Modified Paths: -------------- wiki/trunk/src/main/webapp/view/viewer/displayList.html -------------- next part -------------- Modified: wiki/trunk/src/main/webapp/view/viewer/displayList.html =================================================================== --- wiki/trunk/src/main/webapp/view/viewer/displayList.html 2007-05-14 09:18:37 UTC (rev 143) +++ wiki/trunk/src/main/webapp/view/viewer/displayList.html 2007-05-14 12:17:05 UTC (rev 144) @@ -24,7 +24,7 @@ - +
      From svnnotify @ sourceforge.jp Mon May 14 21:17:28 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 14 May 2007 21:17:28 +0900 Subject: [pal-cvs 2413] [145] added itaric and bold. Message-ID: <20070514121728.622822AC015@users.sourceforge.jp> Revision: 145 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=145 Author: shinsuke Date: 2007-05-14 21:17:28 +0900 (Mon, 14 May 2007) Log Message: ----------- added itaric and bold. Modified Paths: -------------- wiki/trunk/src/main/resources/streamconverter.dicon -------------- next part -------------- Modified: wiki/trunk/src/main/resources/streamconverter.dicon =================================================================== --- wiki/trunk/src/main/resources/streamconverter.dicon 2007-05-14 12:17:05 UTC (rev 144) +++ wiki/trunk/src/main/resources/streamconverter.dicon 2007-05-14 12:17:28 UTC (rev 145) @@ -13,6 +13,8 @@ ConvertTableValve, ConvertLineBreakValve, ConvertParagraphValve, +ConvertItaricFontValve, +ConvertBoldFontValve, ConvertPreValve} @@ -36,4 +38,8 @@ + + + + From svnnotify @ sourceforge.jp Mon May 14 21:17:51 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 14 May 2007 21:17:51 +0900 Subject: [pal-cvs 2414] [146] version 0.2 Message-ID: <20070514121751.A58D92AC00F@users.sourceforge.jp> Revision: 146 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=146 Author: shinsuke Date: 2007-05-14 21:17:51 +0900 (Mon, 14 May 2007) Log Message: ----------- version 0.2 Modified Paths: -------------- wiki/trunk/pom.xml -------------- next part -------------- Modified: wiki/trunk/pom.xml =================================================================== --- wiki/trunk/pom.xml 2007-05-14 12:17:28 UTC (rev 145) +++ wiki/trunk/pom.xml 2007-05-14 12:17:51 UTC (rev 146) @@ -3,7 +3,7 @@ 4.0.0jp.sf.palwiki - 0.2-SNAPSHOT + 0.2warWiki Portlet Using Teeda From svnnotify @ sourceforge.jp Mon May 14 21:18:39 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 14 May 2007 21:18:39 +0900 Subject: [pal-cvs 2415] [147] created branches Message-ID: <20070514121839.E6E6A2AC00F@users.sourceforge.jp> Revision: 147 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=147 Author: shinsuke Date: 2007-05-14 21:18:39 +0900 (Mon, 14 May 2007) Log Message: ----------- created branches Added Paths: ----------- wiki/branches/ -------------- next part -------------- From svnnotify @ sourceforge.jp Mon May 14 21:20:41 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 14 May 2007 21:20:41 +0900 Subject: [pal-cvs 2416] [148] version 0.2 Message-ID: <20070514122041.344A12AC015@users.sourceforge.jp> Revision: 148 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=148 Author: shinsuke Date: 2007-05-14 21:20:41 +0900 (Mon, 14 May 2007) Log Message: ----------- version 0.2 Added Paths: ----------- wiki/branches/wiki-0.2/ -------------- next part -------------- Copied: wiki/branches/wiki-0.2 (from rev 147, wiki/trunk) From svnnotify @ sourceforge.jp Fri May 18 16:39:12 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Fri, 18 May 2007 16:39:12 +0900 Subject: [pal-cvs 2417] [149] sync up with the latest j2. Message-ID: <20070518073912.7F6C22AC1DB@users.sourceforge.jp> Revision: 149 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=149 Author: shinsuke Date: 2007-05-18 16:39:12 +0900 (Fri, 18 May 2007) Log Message: ----------- sync up with the latest j2. Modified Paths: -------------- pal-portal/trunk/build.properties pal-portal/trunk/portal/files/src/webapp/decorations/layout/nextgen/decorator-macros.vm pal-portal/trunk/portal/patches/applications/j2-admin/src/webapp/WEB-INF/portlet.xml -------------- next part -------------- Modified: pal-portal/trunk/build.properties =================================================================== --- pal-portal/trunk/build.properties 2007-05-14 12:20:41 UTC (rev 148) +++ pal-portal/trunk/build.properties 2007-05-18 07:39:12 UTC (rev 149) @@ -63,14 +63,14 @@ org.apache.jetspeed.portal.currentVersion=${portal.version} # Jetspeed SVN revision -jetspeed2.revision=534972 +jetspeed2.revision=539124 # Dependencies for Jetspeed jetspeed.version=2.2-dev_pal-${portal.version} pluto.version=1.0.1 portlet.api.version=1.0 servlet.api.version=2.3 -myfaces.version=1.1.0 +myfaces.version=1.1.5 bridges.groupId=org.apache.portals.bridges portals.bridges.version=1.0.2-RC portals.bridges.common.version=1.0.2-RC @@ -82,15 +82,13 @@ portals.bridges.jpetstore.version=1.0.2-RC portals.bridges.velocity.version=1.0.2-RC portals.bridges.portletfilter.version=1.0.2-RC -commons.logging.version=1.0.3 -spring.version=2.0 -spring.modules.version=0.6 +commons.logging.version=1.1 +spring.version=2.0.5 +spring.modules.version=2.0-rc2 derby.version=10.1.1.0 hsql.version=1.8.0.2 - - jetspeed2.build.options=\ -Djetspeed.version="${jetspeed.version}" \ -Dpluto.version=${pluto.version} \ @@ -179,7 +177,6 @@ jetspeed-api/src/java/org/apache/jetspeed/security/AuthenticationProviderProxy.java,\ commons/src/java/org/apache/jetspeed/container/resources/ContainerInfo.properties,\ etc/sql/min/j2-seed.xml,\ -etc/sql/j2-seed.xml,\ etc/schema/prefs-schema.xml,\ Modified: pal-portal/trunk/portal/files/src/webapp/decorations/layout/nextgen/decorator-macros.vm =================================================================== --- pal-portal/trunk/portal/files/src/webapp/decorations/layout/nextgen/decorator-macros.vm 2007-05-14 12:20:41 UTC (rev 148) +++ pal-portal/trunk/portal/files/src/webapp/decorations/layout/nextgen/decorator-macros.vm 2007-05-18 07:39:12 UTC (rev 149) @@ -1,6 +1,5 @@ #* define navigation constants *# #macro (defineNavigationConstants) - #* Constants for layout orientation *# #set($LEFT_TO_RIGHT = "LeftToRight") #set($RIGHT_TO_LEFT = "RightToLeft") #set($TOP_TO_BOTTOM = "TopToBottom") Modified: pal-portal/trunk/portal/patches/applications/j2-admin/src/webapp/WEB-INF/portlet.xml =================================================================== --- pal-portal/trunk/portal/patches/applications/j2-admin/src/webapp/WEB-INF/portlet.xml 2007-05-14 12:20:41 UTC (rev 148) +++ pal-portal/trunk/portal/patches/applications/j2-admin/src/webapp/WEB-INF/portlet.xml 2007-05-18 07:39:12 UTC (rev 149) @@ -1,8 +1,8 @@ Index: applications/j2-admin/src/webapp/WEB-INF/portlet.xml =================================================================== ---- applications/j2-admin/src/webapp/WEB-INF/portlet.xml (リビジョン 519203) +--- applications/j2-admin/src/webapp/WEB-INF/portlet.xml (リビジョン 539124) +++ applications/j2-admin/src/webapp/WEB-INF/portlet.xml (作業コピー) -@@ -1098,7 +1098,7 @@ +@@ -1100,7 +1100,7 @@ This option will generate a new password for each user registration Option_Generate_Passwords @@ -11,7 +11,7 @@ This option will force email address to be system wide unique -@@ -1163,7 +1163,7 @@ +@@ -1165,7 +1165,7 @@ SendEmail From svnnotify @ sourceforge.jp Fri May 18 23:25:08 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Fri, 18 May 2007 23:25:08 +0900 Subject: [pal-cvs 2418] [150] updated login form. Message-ID: <20070518142508.810E12AC012@users.sourceforge.jp> Revision: 150 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=150 Author: shinsuke Date: 2007-05-18 23:25:08 +0900 (Fri, 18 May 2007) Log Message: ----------- updated login form. Modified Paths: -------------- pal-portal/trunk/build.properties pal-portal/trunk/portal/patches/src/webapp/WEB-INF/templates/login/html/login.jsp Added Paths: ----------- pal-portal/trunk/portal/files/src/webapp/css/ pal-portal/trunk/portal/files/src/webapp/css/login.css pal-portal/trunk/portal/files/src/webapp/images/ pal-portal/trunk/portal/files/src/webapp/images/login_logo.gif pal-portal/trunk/portal/patches/components/portal/ pal-portal/trunk/portal/patches/components/portal/src/ pal-portal/trunk/portal/patches/components/portal/src/java/ pal-portal/trunk/portal/patches/components/portal/src/java/org/ pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/ pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/ pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/ pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/LoginErrorServlet.java pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/resources/ pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources.properties pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_en.properties pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_ja.properties pal-portal/trunk/portal/patches/src/webapp/WEB-INF/assembly/pipelines.xml -------------- next part -------------- Modified: pal-portal/trunk/build.properties =================================================================== --- pal-portal/trunk/build.properties 2007-05-18 07:39:12 UTC (rev 149) +++ pal-portal/trunk/build.properties 2007-05-18 14:25:08 UTC (rev 150) @@ -159,6 +159,10 @@ -Dportal.psml.name="${portal.psml.name}" \ portal.patch.files=\ +components/portal/src/java/org/apache/jetspeed/login/LoginErrorServlet.java,\ +components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_ja.properties,\ +components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources.properties,\ +components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_en.properties,\ components/security/src/java/org/apache/jetspeed/security/impl/AuthenticationProviderProxyImpl.java,\ components/security/src/java/org/apache/jetspeed/security/spi/impl/LdapUserSecurityHandler.java,\ components/security/src/java/org/apache/jetspeed/security/spi/impl/DefaultUserSecurityHandler.java,\ @@ -168,6 +172,7 @@ layout-portlets/src/webapp/WEB-INF/portlet.xml,\ src/webapp/WEB-INF/assembly/jetspeed-services.xml,\ src/webapp/WEB-INF/assembly/portal-url-generation.xml,\ +src/webapp/WEB-INF/assembly/pipelines.xml,\ src/webapp/WEB-INF/templates/login/html/login.jsp,\ src/webapp/WEB-INF/templates/layout/html/maximized/layout.vm,\ src/webapp/decorations/portlet/decorator.vm,\ Added: pal-portal/trunk/portal/files/src/webapp/css/login.css =================================================================== --- pal-portal/trunk/portal/files/src/webapp/css/login.css 2007-05-18 07:39:12 UTC (rev 149) +++ pal-portal/trunk/portal/files/src/webapp/css/login.css 2007-05-18 14:25:08 UTC (rev 150) @@ -0,0 +1,149 @@ +body { + margin:0px; + padding:0px; + background-color:#ffffff; +} +#main { + width:300px; + position:absolute; + top:20%; + left:50%; + margin-top:-50px; + margin-left:-330px; + border: 2px solid #999999; + text-align:center; +} +.title { + position:relative; + top:-10px; + text-align:center; + font-size:medium; + background-color:#ffffff; + margin:0px; + padding:5px 10px; + display:inline; + + font-family: Arial, Helvetica, sans-serif; + font-size: 11px; +} +form { + margin:0px; + padding:5px; + text-align:left; +} +.data { + height:30px; +} +.label { + padding:2px; + margin:0px; + width:80px; + text-align:right; + float:left; + + font-family: Arial, Helvetica, sans-serif; + font-size: 11px; +} +.input { + padding:2px; + margin:0px; + text-align:left; +} +.input input { + font-family: Arial, Helvetica, sans-serif; + font-size: 11px; +} +.action { + padding:0px; + margin:0px; + width:290px; + text-align:center; + clear:both; +} +.action input { + font-family: Arial, Helvetica, sans-serif; + font-size: 11px; +} +.forgetpassword { + padding:0px; + margin:20px 0px; + width:290px; + text-align:center; + clear:both; +} +.forgetpassword a { + text-decoration: none; +} +.errormessage { + padding:0px; + margin:10px 0px; + width:290px; + text-align:center; + clear:both; + font-weight:bold; + color:red; +} + +#description { + width:300px; + position:absolute; + top:20%; + left:50%; + margin-top:-50px; + margin-left:10px; + border: 2px solid #999999; + text-align:center; +} +.signuptitle { + padding:0px; + margin:20px 0px 0px 0px; + width:290px; + text-align:center; + clear:both; + font-weight: bold; + font-size: 12px; +} +.signupdesc { + padding:0px; + margin:20px 0px 0px 0px; + width:290px; + text-align:center; + clear:both; +} +.signup { + padding:0px; + margin:20px 0px 20px 0px; + width:290px; + text-align:right; + clear:both; +} +.signup a { + text-decoration: none; +} + +#header { + width:100%; + border-bottom: 1px solid #999999; + height:33px; +} +#header .logo { + float:left; +} +#header .home { + float:right; + margin: 10px; +} +#header .home a { + text-decoration: none; +} + +#footer { + width:100%; + top:80%; + position:absolute; + text-align:center; +} +.copyright { + display:inline; +} + Property changes on: pal-portal/trunk/portal/files/src/webapp/css/login.css ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/portal/files/src/webapp/images/login_logo.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/portal/files/src/webapp/images/login_logo.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/LoginErrorServlet.java =================================================================== --- pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/LoginErrorServlet.java 2007-05-18 07:39:12 UTC (rev 149) +++ pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/LoginErrorServlet.java 2007-05-18 14:25:08 UTC (rev 150) @@ -0,0 +1,26 @@ +Index: components/portal/src/java/org/apache/jetspeed/login/LoginErrorServlet.java +=================================================================== +--- components/portal/src/java/org/apache/jetspeed/login/LoginErrorServlet.java (リビジョン 539124) ++++ components/portal/src/java/org/apache/jetspeed/login/LoginErrorServlet.java (作業コピー) +@@ -37,13 +37,14 @@ + HttpServletResponse response) throws IOException, ServletException + { + HttpSession session = request.getSession(); +- String destination = (String) session +- .getAttribute(LoginConstants.DESTINATION); +- if (destination == null) +- destination = request.getContextPath() + "/"; +- else +- session.removeAttribute(LoginConstants.DESTINATION); +- ++ // String destination = (String) session ++ // .getAttribute(LoginConstants.DESTINATION); ++ // if (destination == null) ++ // destination = request.getContextPath() + "/"; ++ // else ++ // session.removeAttribute(LoginConstants.DESTINATION); ++ String destination = request.getContextPath() + "/login/proxy"; ++ + Integer retryCount = (Integer) session + .getAttribute(LoginConstants.RETRYCOUNT); + if (retryCount == null) Property changes on: pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/LoginErrorServlet.java ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources.properties =================================================================== --- pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources.properties 2007-05-18 07:39:12 UTC (rev 149) +++ pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources.properties 2007-05-18 14:25:08 UTC (rev 150) @@ -0,0 +1,22 @@ +Index: components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources.properties +=================================================================== +--- components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources.properties (リビジョン 539124) ++++ components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources.properties (作業コピー) +@@ -18,4 +18,15 @@ + + login.button=Login + username.label=Username: +-password.label=Password: +\ ファイルの末尾に改行がありません ++password.label=Password: ++ ++login.page.title=Login ++login.forget.your.password=Forget your password? ++login.to.portal=Login to Portal ++login.signup.title=Don't have a Portal ID? ++login.signup.description=Signing up is easy. ++login.signup.link=Sign Up ++login.copyright=Copyright (C) 2007 PAL Portal. All rights reserved. ++login.invalid.id.or.password=Invalid ID or password. ++login.home.link=Home ++ Property changes on: pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources.properties ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_en.properties =================================================================== --- pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_en.properties 2007-05-18 07:39:12 UTC (rev 149) +++ pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_en.properties 2007-05-18 14:25:08 UTC (rev 150) @@ -0,0 +1,22 @@ +Index: components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_en.properties +=================================================================== +--- components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_en.properties (リビジョン 539124) ++++ components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_en.properties (作業コピー) +@@ -18,4 +18,15 @@ + + login.button=Login + username.label=Username: +-password.label=Password: +\ ファイルの末尾に改行がありません ++password.label=Password: ++ ++login.page.title=Login ++login.forget.your.password=Forget your password? ++login.to.portal=Login to Portal ++login.signup.title=Don't have a Portal ID? ++login.signup.description=Signing up is easy. ++login.signup.link=Sign Up ++login.copyright=Copyright (C) 2007 PAL Portal. All rights reserved. ++login.invalid.id.or.password=Invalid ID or password. ++login.home.link=Home ++ Property changes on: pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_en.properties ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_ja.properties =================================================================== --- pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_ja.properties 2007-05-18 07:39:12 UTC (rev 149) +++ pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_ja.properties 2007-05-18 14:25:08 UTC (rev 150) @@ -0,0 +1,22 @@ +Index: components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_ja.properties +=================================================================== +--- components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_ja.properties (リビジョン 539124) ++++ components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_ja.properties (作業コピー) +@@ -18,4 +18,14 @@ + + login.button=\u30ed\u30b0\u30a4\u30f3 + username.label=\u30e6\u30fc\u30b6\u30fc\u540d: +-password.label=\u30d1\u30b9\u30ef\u30fc\u30c9: +\ ファイルの末尾に改行がありません ++password.label=\u30d1\u30b9\u30ef\u30fc\u30c9: ++ ++login.page.title=\u30ed\u30b0\u30a4\u30f3 ++login.forget.your.password=\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u304a\u5fd8\u308c\u306e\u65b9 ++login.to.portal=\u30dd\u30fc\u30bf\u30eb\u3078\u30ed\u30b0\u30a4\u30f3 ++login.signup.title=\u30dd\u30fc\u30bf\u30eb ID \u3092\u4f5c\u308a\u307e\u305b\u3093\u304b? ++login.signup.description=\u7c21\u5358\u306b\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7\u3067\u304d\u307e\u3059\u3002 ++login.signup.link=\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7 ++login.copyright=Copyright (C) 2007 PAL Portal. All rights reserved. ++login.invalid.id.or.password=ID \u307e\u305f\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002 ++login.home.link=\u30db\u30fc\u30e0 +\ ファイルの末尾に改行がありません Property changes on: pal-portal/trunk/portal/patches/components/portal/src/java/org/apache/jetspeed/login/resources/LoginViewResources_ja.properties ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/portal/patches/src/webapp/WEB-INF/assembly/pipelines.xml =================================================================== --- pal-portal/trunk/portal/patches/src/webapp/WEB-INF/assembly/pipelines.xml 2007-05-18 07:39:12 UTC (rev 149) +++ pal-portal/trunk/portal/patches/src/webapp/WEB-INF/assembly/pipelines.xml 2007-05-18 14:25:08 UTC (rev 150) @@ -0,0 +1,12 @@ +Index: src/webapp/WEB-INF/assembly/pipelines.xml +=================================================================== +--- src/webapp/WEB-INF/assembly/pipelines.xml (リビジョン 539124) ++++ src/webapp/WEB-INF/assembly/pipelines.xml (作業コピー) +@@ -301,6 +301,7 @@ + + + ++ + + + Property changes on: pal-portal/trunk/portal/patches/src/webapp/WEB-INF/assembly/pipelines.xml ___________________________________________________________________ Name: svn:eol-style + native Modified: pal-portal/trunk/portal/patches/src/webapp/WEB-INF/templates/login/html/login.jsp =================================================================== --- pal-portal/trunk/portal/patches/src/webapp/WEB-INF/templates/login/html/login.jsp 2007-05-18 07:39:12 UTC (rev 149) +++ pal-portal/trunk/portal/patches/src/webapp/WEB-INF/templates/login/html/login.jsp 2007-05-18 14:25:08 UTC (rev 150) @@ -1,10 +1,12 @@ Index: src/webapp/WEB-INF/templates/login/html/login.jsp =================================================================== ---- src/webapp/WEB-INF/templates/login/html/login.jsp (リビジョン 519203) +--- src/webapp/WEB-INF/templates/login/html/login.jsp (リビジョン 539124) +++ src/webapp/WEB-INF/templates/login/html/login.jsp (作業コピー) -@@ -19,13 +19,92 @@ +@@ -17,15 +17,57 @@ + <%@ page language="java" import="org.apache.jetspeed.login.LoginConstants" session="true" %> + <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %> - +- - -
      @@ -15,91 +17,55 @@ - - + -+<fmt:message key="login.button"/> -+ ++ ++ ++<fmt:message key="login.page.title"/> + + ++ +
      -+
      ++
      +
      "> ++<% if(session.getAttribute(LoginConstants.ERRORCODE) != null) {%> ++
      ++ ++
      ++<% } %> +
      +
      -+
      ++
      +
      +
      +
      -+
      ++
      +
      +
      "/>
      ++
      ++ ++
      + +
      ++
      ++
      ++ ++
      ++
      ++ ++
      ++ ++
      ++ + From svnnotify @ sourceforge.jp Sun May 20 21:14:24 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 20 May 2007 21:14:24 +0900 Subject: [pal-cvs 2419] [151] added OpenPortal repository. Message-ID: <20070520121424.9365F2AC015@users.sourceforge.jp> Revision: 151 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=151 Author: shinsuke Date: 2007-05-20 21:14:24 +0900 (Sun, 20 May 2007) Log Message: ----------- added OpenPortal repository. Modified Paths: -------------- pal-admin/trunk/src/main/webapp/WEB-INF/rpad-config.xml -------------- next part -------------- Modified: pal-admin/trunk/src/main/webapp/WEB-INF/rpad-config.xml =================================================================== --- pal-admin/trunk/src/main/webapp/WEB-INF/rpad-config.xml 2007-05-18 14:25:08 UTC (rev 150) +++ pal-admin/trunk/src/main/webapp/WEB-INF/rpad-config.xml 2007-05-20 12:14:24 UTC (rev 151) @@ -27,4 +27,9 @@ http://www.bluesunrise.com/rpa/portlet-repository.xml + + OpenPortal Portlet Repository + + http://people.apache.org/~shinsuke/portlet-repositories/portlet-repository_dev_java_net.xml + From svnnotify @ sourceforge.jp Sun May 20 21:21:49 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 20 May 2007 21:21:49 +0900 Subject: [pal-cvs 2420] [152] added User Registration Portlet. Message-ID: <20070520122149.5AD922AC00E@users.sourceforge.jp> Revision: 152 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=152 Author: shinsuke Date: 2007-05-20 21:21:48 +0900 (Sun, 20 May 2007) Log Message: ----------- added User Registration Portlet. Modified Paths: -------------- pal-admin/trunk/.classpath pal-admin/trunk/pom.xml pal-admin/trunk/src/main/java/jp/sf/pal/admin/PALAdminConstants.java pal-admin/trunk/src/main/java/jp/sf/pal/admin/util/PALAdminUtil.java pal-admin/trunk/src/main/java/jp/sf/pal/admin/util/PortalComponentUtil.java pal-admin/trunk/src/main/resources/appMessages.properties pal-admin/trunk/src/main/resources/appMessages_ja.properties pal-admin/trunk/src/main/webapp/WEB-INF/portlet.xml Added Paths: ----------- pal-admin/trunk/src/main/java/jp/sf/pal/admin/filter/UserRegistrationFilter.java pal-admin/trunk/src/main/java/jp/sf/pal/admin/service/UserRegistrationService.java pal-admin/trunk/src/main/java/jp/sf/pal/admin/util/UserRegistrationUtil.java pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/ pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/UserRegistrationPage.java pal-admin/trunk/src/main/resources/PAMessages.properties pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/ pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label.properties pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label_ja.properties pal-admin/trunk/src/main/webapp/WEB-INF/template/ pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/ pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/ pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/forgottenPasswdEmail.vm pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/html/ pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/html/ja/ pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/html/ja/forgottenPasswdEmail.vm pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/html/ja/userRegistrationEmail.vm pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/userRegistrationEmail.vm pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/forgottenPasswd.vm pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/userRegistration.vm pal-admin/trunk/src/main/webapp/view/registration/ pal-admin/trunk/src/main/webapp/view/registration/userRegistration.html -------------- next part -------------- Modified: pal-admin/trunk/.classpath =================================================================== --- pal-admin/trunk/.classpath 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/.classpath 2007-05-20 12:21:48 UTC (rev 152) @@ -6,11 +6,10 @@ - + - @@ -18,27 +17,30 @@ + - + + - + - - + + + + - Modified: pal-admin/trunk/pom.xml =================================================================== --- pal-admin/trunk/pom.xml 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/pom.xml 2007-05-20 12:21:48 UTC (rev 152) @@ -188,6 +188,11 @@ jp.sf.pal + common-utils + 0.3-SNAPSHOT + + + jp.sf.pal portlet-output-optimizer 0.2 jar @@ -246,6 +251,11 @@ + org.apache.portals.jetspeed-2 + jetspeed-locator + 2.2-dev_pal-1.0-beta5-dev + + org.apache.pluto pluto 1.0.1 Modified: pal-admin/trunk/src/main/java/jp/sf/pal/admin/PALAdminConstants.java =================================================================== --- pal-admin/trunk/src/main/java/jp/sf/pal/admin/PALAdminConstants.java 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/java/jp/sf/pal/admin/PALAdminConstants.java 2007-05-20 12:21:48 UTC (rev 152) @@ -27,6 +27,9 @@ public static final String SECURITY_PROVIDER_COMPONENT = PREFIX + "SecurityProvider"; + public static final String PORTAL_ADMINISTRATION_COMPONENT = PREFIX + + "PortalAdministration"; + public static final String USER_MANAGER_COMPONENT = PREFIX + "UserManager"; public static final String ROLE_MANAGER_COMPONENT = PREFIX + "RoleManager"; @@ -97,4 +100,42 @@ public static final String LOCAL_TEMP_FILENAME_SUFFIX = ".war"; public static final String PASSWORD = PREFIX + "Password"; + + public static final String ROLES = PREFIX + "Roles"; + + public static final String GROUPS = PREFIX + "Groups"; + + public static final String RULES = PREFIX + "Rules"; + + public static final String RULE_NAMES = PREFIX + "RuleNames"; + + public static final String RULE_VALUES = PREFIX + "RuleValues"; + + public static final String EMAIL_TEMPLATE_LOCATION = PREFIX + "EmailTemplateLocation"; + + public static final String EMAIL_TEMPLATE_NAME = PREFIX + "EmailTemplateName"; + + public static final String TEMPLATE_LOCATOR = PREFIX + "TemplateLocator"; + + public static final String FORCE_UNIQUE_EMAIL = PREFIX + "ForceUniqueEmail"; + + public static final String FORCE_GENERATED_PASSWORD = PREFIX + + "ForceGeneratedPassword"; + + public static final String FORCE_USE_EMAIL_AS_USERNAME = PREFIX + + "ForceUseEmailAsUsername"; + + public static final String SEND_MAIL = PREFIX + "SendMail"; + + public static final String RETURN_URL = PREFIX + "ReturnUrl"; + + public static final String REDIRECT_PATH = PREFIX + "RedirectPath"; + + public static final String USER_REGISTRATION_PARAMS = PREFIX + + "UserRegistrationParams"; + + public static final String DEFAULT_TEMPLATE_LOCATION = "/WEB-INF/view/userreg/"; + + public static final String DEFAULT_TEMPLATE_NAME = "userRegistrationEmail.vm"; + public static final String CTX_RETURN_URL = "returnURL"; } Added: pal-admin/trunk/src/main/java/jp/sf/pal/admin/filter/UserRegistrationFilter.java =================================================================== --- pal-admin/trunk/src/main/java/jp/sf/pal/admin/filter/UserRegistrationFilter.java 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/java/jp/sf/pal/admin/filter/UserRegistrationFilter.java 2007-05-20 12:21:48 UTC (rev 152) @@ -0,0 +1,253 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package jp.sf.pal.admin.filter; + +import java.io.FileNotFoundException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.portlet.ActionRequest; +import javax.portlet.ActionResponse; +import javax.portlet.PortletConfig; +import javax.portlet.PortletContext; +import javax.portlet.PortletException; +import javax.portlet.RenderRequest; +import javax.portlet.RenderResponse; + +import jp.sf.pal.admin.PALAdminConstants; + +import org.apache.jetspeed.CommonPortletServices; +import org.apache.jetspeed.administration.PortalAdministration; +import org.apache.jetspeed.locator.JetspeedTemplateLocator; +import org.apache.jetspeed.security.UserManager; +import org.apache.portals.bridges.portletfilter.PortletFilter; +import org.apache.portals.bridges.portletfilter.PortletFilterChain; +import org.apache.portals.bridges.portletfilter.PortletFilterConfig; + +public class UserRegistrationFilter implements PortletFilter +{ + private PortalAdministration portalAdministration; + + private UserManager userManager; + + private Map userRegistrationParams; + + /* + * (non-Javadoc) + * + * @see org.apache.portals.bridges.portletfilter.PortletFilter#destroy() + */ + public void destroy() + { + portalAdministration = null; + userManager = null; + userRegistrationParams = null; + } + + /* + * (non-Javadoc) + * + * @see org.apache.portals.bridges.portletfilter.PortletFilter#init(org.apache.portals.bridges.portletfilter.PortletFilterConfig) + */ + public void init(PortletFilterConfig filterConfig) throws PortletException + { + PortletConfig portletConfig = filterConfig.getPortletConfig(); + PortletContext portletContext = portletConfig.getPortletContext(); + if (!PALAdminConstants.DEBUG) + { + // portalAdministration + portalAdministration = (PortalAdministration) portletContext + .getAttribute(CommonPortletServices.CPS_PORTAL_ADMINISTRATION); + if (portalAdministration == null) + { + throw new PortletException( + "Failed to find the `prtaon portlet initialization"); + } + + // userManager + userManager = (UserManager) portletContext + .getAttribute(CommonPortletServices.CPS_USER_MANAGER_COMPONENT); + if (userManager == null) + { + throw new PortletException( + "Failed to find the User Manager on portlet initialization"); + } + + userRegistrationParams = new HashMap(); + + // roles + List roles = getInitParameterList(portletConfig, + PALAdminConstants.ROLES); + userRegistrationParams.put(PALAdminConstants.ROLES, roles); + + // groups + List groups = getInitParameterList(portletConfig, + PALAdminConstants.GROUPS); + userRegistrationParams.put(PALAdminConstants.GROUPS, groups); + + // rules (name,value pairs) + List names = getInitParameterList(portletConfig, + PALAdminConstants.RULE_NAMES); + List values = getInitParameterList(portletConfig, + PALAdminConstants.RULE_VALUES); + Map rules = new HashMap(); + for (int ix = 0; ix < ((names.size() < values.size()) ? names + .size() : values.size()); ix++) + { + rules.put(names.get(ix), values.get(ix)); + } + userRegistrationParams.put(PALAdminConstants.RULES, rules); + + String templateLocation = portletConfig + .getInitParameter(PALAdminConstants.EMAIL_TEMPLATE_LOCATION); + if (templateLocation == null) + { + templateLocation = PALAdminConstants.DEFAULT_TEMPLATE_LOCATION; + } + templateLocation = portletContext.getRealPath(templateLocation); + userRegistrationParams + .put(PALAdminConstants.EMAIL_TEMPLATE_LOCATION, + templateLocation); + + String templateName = portletConfig + .getInitParameter(PALAdminConstants.EMAIL_TEMPLATE_NAME); + if (templateName == null) + { + templateName = PALAdminConstants.DEFAULT_TEMPLATE_NAME; + } + userRegistrationParams.put(PALAdminConstants.EMAIL_TEMPLATE_NAME, + templateName); + + ArrayList roots = new ArrayList(1); + roots.add(templateLocation); + + try + { + JetspeedTemplateLocator templateLocator = new JetspeedTemplateLocator( + roots, "email", portletContext.getRealPath("/")); + templateLocator.start(); + userRegistrationParams.put(PALAdminConstants.TEMPLATE_LOCATOR, + templateLocator); + } + catch (FileNotFoundException e) + { + throw new PortletException( + "Could not start the template locator.", e); + } + + // user attributes ? + + Boolean forceGeneratedPasswords = Boolean + .valueOf( + portletConfig + .getInitParameter(PALAdminConstants.FORCE_GENERATED_PASSWORD)) + .booleanValue(); + userRegistrationParams.put( + PALAdminConstants.FORCE_GENERATED_PASSWORD, + forceGeneratedPasswords); + + Boolean forceEmailAsUsername = Boolean + .valueOf( + portletConfig + .getInitParameter(PALAdminConstants.FORCE_USE_EMAIL_AS_USERNAME)) + .booleanValue(); + userRegistrationParams.put( + PALAdminConstants.FORCE_USE_EMAIL_AS_USERNAME, + forceEmailAsUsername); + + Boolean forceEmailsToBeSystemUnique = Boolean + .valueOf( + portletConfig + .getInitParameter(PALAdminConstants.FORCE_UNIQUE_EMAIL)) + .booleanValue(); + if (forceEmailAsUsername) + { + // just to be sure + forceEmailsToBeSystemUnique = Boolean.TRUE; + } + userRegistrationParams.put(PALAdminConstants.FORCE_UNIQUE_EMAIL, + forceEmailsToBeSystemUnique); + + Boolean sendMail = Boolean.valueOf(portletConfig + .getInitParameter(PALAdminConstants.SEND_MAIL)); + userRegistrationParams.put(PALAdminConstants.SEND_MAIL, sendMail); + } + } + + /* + * (non-Javadoc) + * + * @see org.apache.portals.bridges.portletfilter.PortletFilter#processActionFilter(javax.portlet.ActionRequest, + * javax.portlet.ActionResponse, + * org.apache.portals.bridges.portletfilter.PortletFilterChain) + */ + public void processActionFilter(ActionRequest request, + ActionResponse response, PortletFilterChain chain) + throws PortletException, IOException + { + request.setAttribute(PALAdminConstants.PORTAL_ADMINISTRATION_COMPONENT, + portalAdministration); + request.setAttribute(PALAdminConstants.USER_MANAGER_COMPONENT, + userManager); + request.setAttribute(PALAdminConstants.USER_REGISTRATION_PARAMS, + userRegistrationParams); + + chain.processActionFilter(request, response); + } + + /* + * (non-Javadoc) + * + * @see org.apache.portals.bridges.portletfilter.PortletFilter#renderFilter(javax.portlet.RenderRequest, + * javax.portlet.RenderResponse, + * org.apache.portals.bridges.portletfilter.PortletFilterChain) + */ + public void renderFilter(RenderRequest request, RenderResponse response, + PortletFilterChain chain) throws PortletException, IOException + { + request.setAttribute(PALAdminConstants.PORTAL_ADMINISTRATION_COMPONENT, + portalAdministration); + request.setAttribute(PALAdminConstants.USER_MANAGER_COMPONENT, + userManager); + request.setAttribute(PALAdminConstants.USER_REGISTRATION_PARAMS, + userRegistrationParams); + + chain.renderFilter(request, response); + } + + protected List getInitParameterList(PortletConfig portletConfig, + String ipName) + { + String temp = portletConfig.getInitParameter(ipName); + if (temp == null) + { + return new ArrayList(); + } + + String[] temps = temp.split("\\,"); + for (int ix = 0; ix < temps.length; ix++) + { + temps[ix] = temps[ix].trim(); + } + + return Arrays.asList(temps); + } +} Property changes on: pal-admin/trunk/src/main/java/jp/sf/pal/admin/filter/UserRegistrationFilter.java ___________________________________________________________________ Name: svn:eol-style + native Added: pal-admin/trunk/src/main/java/jp/sf/pal/admin/service/UserRegistrationService.java =================================================================== --- pal-admin/trunk/src/main/java/jp/sf/pal/admin/service/UserRegistrationService.java 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/java/jp/sf/pal/admin/service/UserRegistrationService.java 2007-05-20 12:21:48 UTC (rev 152) @@ -0,0 +1,581 @@ +package jp.sf.pal.admin.service; + +import java.io.Serializable; +import java.util.HashMap; +import java.util.Locale; +import java.util.Map; + +import javax.faces.context.FacesContext; +import javax.portlet.PortletConfig; + +import jp.sf.pal.admin.PALAdminConstants; +import jp.sf.pal.admin.util.PortalComponentUtil; +import jp.sf.pal.admin.util.UserRegistrationUtil; +import jp.sf.pal.admin.web.registration.UserRegistrationPage; +import jp.sf.pal.common.CommonException; + +import org.apache.jetspeed.PortalReservedParameters; +import org.apache.jetspeed.administration.AdministrationEmailException; +import org.apache.jetspeed.administration.RegistrationException; +import org.apache.jetspeed.locator.JetspeedTemplateLocator; +import org.apache.jetspeed.locator.LocatorDescriptor; +import org.apache.jetspeed.locator.TemplateDescriptor; +import org.apache.jetspeed.locator.TemplateLocatorException; +import org.apache.jetspeed.request.RequestContext; +import org.apache.jetspeed.security.User; +import org.seasar.teeda.extension.util.LabelHelper; + +public class UserRegistrationService implements Serializable +{ + /** + * + */ + private static final long serialVersionUID = 2841077517815298990L; + + private static final String PATH_SEPARATOR = "/"; + + private static final String RB_EMAIL_SUBJECT = "email.subject.registration"; + + public void register(UserRegistrationPage page) throws CommonException + { + + // List errors = new LinkedList(); + // + // Map userAttributes = new HashMap(); + // + // Map userInfo = new HashMap(); + + if (!UserRegistrationUtil + .getBoolean(PALAdminConstants.FORCE_GENERATED_PASSWORD)) + { + if (page.getPassword() == null || page.getPassword().equals("")) + { + throw new CommonException("error.lacking.password", + "The password is null."); + } + } + + if (UserRegistrationUtil + .getBoolean(PALAdminConstants.FORCE_USE_EMAIL_AS_USERNAME)) + { + // force user.name to be same as email + page.setUserName(page.getUserBusinessInfoOnlineEmail()); + } + + boolean userIdExistsFlag = true; + try + { + PortalComponentUtil.getUserManager().getUser(page.getUserName()); + } + catch (org.apache.jetspeed.security.SecurityException e) + { + userIdExistsFlag = false; + } + + if (userIdExistsFlag) + { + throw new CommonException("error.userid_already_exists", + "The user id already exists."); + } + + if (UserRegistrationUtil + .getBoolean(PALAdminConstants.FORCE_UNIQUE_EMAIL)) + { + boolean emailExistsFlag = true; + User user = null; + try + { + user = PortalComponentUtil.getPortalAdministration() + .lookupUserFromEmail( + page.getUserBusinessInfoOnlineEmail()); + } + catch (AdministrationEmailException e) + { + emailExistsFlag = false; + } + if ((emailExistsFlag) || (user != null)) + { + throw new CommonException("error.email_already_exists", + "The email already exists."); + } + + } + + if (UserRegistrationUtil + .getBoolean(PALAdminConstants.FORCE_GENERATED_PASSWORD)) + { + try + { + String password = PortalComponentUtil.getPortalAdministration() + .generatePassword(); + page.setPassword(password); + } + catch (Exception e) + { + throw new CommonException("error.failed_to_add", + "Could not create password.", e); + } + } + else + { + if (!page.getPassword().equals(page.getVerifyPassword())) + { + throw new CommonException("error.two_passwords_do_not_match", + "Two passwords do not match."); + } + } + + // Ok, we think we're good to go, let's create the user! + Map userInfo = createUserInfoMap(page); + + try + { + PortalComponentUtil.getPortalAdministration() + .registerUser( + page.getUserName(), + page.getPassword(), + UserRegistrationUtil + .getStringList(PALAdminConstants.ROLES), + UserRegistrationUtil + .getStringList(PALAdminConstants.GROUPS), + userInfo, // note use of only + // PLT.D values here. + UserRegistrationUtil + .getStringMap(PALAdminConstants.RULES), + null); // passing in null causes use of default + } + catch (RegistrationException e) + { + throw new CommonException("error.failed_to_add", + "Could not register a user.", e); + } + + // template + String templ = getTemplatePath(page.getFacesContext()); + + if (templ == null) + { + throw new CommonException( + "error.registration_completed_but_could_not_send", + "Email template is not available."); + } + + if (UserRegistrationUtil.getBoolean(PALAdminConstants.SEND_MAIL)) + { + if (page.getPassword() != null) + { + userInfo.put("password", page.getPassword()); + } + + try + { + PortalComponentUtil.getPortalAdministration() + .sendEmail( + (PortletConfig) page.getFacesContext() + .getExternalContext().getRequestMap() + .get("javax.portlet.PortletConfig"), + page.getUserBusinessInfoOnlineEmail(), + getEmailSubject(page.getLabelHelper()), templ, + userInfo); + } + catch (AdministrationEmailException e) + { + throw new CommonException( + "error.registration_completed_but_could_not_send", + "Could not send a registration mail.", e); + } + } + + } + + protected String getTemplatePath(FacesContext facesContext) + { + JetspeedTemplateLocator templateLocator = UserRegistrationUtil + .getTemplateLocator(); + String templateLocation = UserRegistrationUtil + .getString(PALAdminConstants.EMAIL_TEMPLATE_LOCATION); + String templateName = UserRegistrationUtil + .getString(PALAdminConstants.EMAIL_TEMPLATE_NAME); + if (templateLocator == null) + { + return templateLocation + PATH_SEPARATOR + templateName; + } + + RequestContext requestContext = (RequestContext) facesContext + .getExternalContext().getRequestMap().get( + PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); + Locale locale = facesContext.getViewRoot().getLocale(); + + try + { + LocatorDescriptor locator = templateLocator + .createLocatorDescriptor("email"); + locator.setName(templateName); + locator.setMediaType(requestContext.getMediaType()); + locator.setLanguage(locale.getLanguage()); + locator.setCountry(locale.getCountry()); + TemplateDescriptor template = templateLocator + .locateTemplate(locator); + + return template.getAppRelativePath(); + } + catch (TemplateLocatorException e) + { + return templateLocation + PATH_SEPARATOR + templateName; + } + } + + protected String getEmailSubject(LabelHelper labelHelper) + { + String emailSubject = labelHelper.getLabelValue(RB_EMAIL_SUBJECT); + if (emailSubject == null) + emailSubject = "Registration Confirmation"; + return emailSubject; + } + + protected Map createUserInfoMap(UserRegistrationPage page) + { + Map userInfo = new HashMap(); + + if (page.getUserBusinessInfoOnlineEmail() != null) + { + userInfo.put("user.business-info.online.email", page + .getUserBusinessInfoOnlineEmail()); + } + if (page.getUserName() != null) + { + userInfo.put("user.name", page.getUserName()); + } + if (page.getUserBdate() != null) + { + userInfo.put("user.bdate", page.getUserBdate()); + } + if (page.getUserGender() != null) + { + userInfo.put("user.gender", page.getUserGender()); + } + if (page.getUserEmployer() != null) + { + userInfo.put("user.employer", page.getUserEmployer()); + } + if (page.getUserDepartment() != null) + { + userInfo.put("user.department", page.getUserDepartment()); + } + if (page.getUserJobtitle() != null) + { + userInfo.put("user.jobtitle", page.getUserJobtitle()); + } + if (page.getUserNamePrefix() != null) + { + userInfo.put("user.name.prefix", page.getUserNamePrefix()); + } + if (page.getUserNameGiven() != null) + { + userInfo.put("user.name.given", page.getUserNameGiven()); + } + if (page.getUserNameFamily() != null) + { + userInfo.put("user.name.family", page.getUserNameFamily()); + } + if (page.getUserNameMiddle() != null) + { + userInfo.put("user.name.middle", page.getUserNameMiddle()); + } + if (page.getUserNameSuffix() != null) + { + userInfo.put("user.name.suffix", page.getUserNameSuffix()); + } + if (page.getUserNameNickName() != null) + { + userInfo.put("user.name.nickName", page.getUserNameNickName()); + } + if (page.getUserHomeInfoPostalName() != null) + { + userInfo.put("user.home-info.postal.name", page + .getUserHomeInfoPostalName()); + } + if (page.getUserHomeInfoPostalStreet() != null) + { + userInfo.put("user.home-info.postal.street", page + .getUserHomeInfoPostalStreet()); + } + if (page.getUserHomeInfoPostalCity() != null) + { + userInfo.put("user.home-info.postal.city", page + .getUserHomeInfoPostalCity()); + } + if (page.getUserHomeInfoPostalStateprov() != null) + { + userInfo.put("user.home-info.postal.stateprov", page + .getUserHomeInfoPostalStateprov()); + } + if (page.getUserHomeInfoPostalPostalcode() != null) + { + userInfo.put("user.home-info.postal.postalcode", page + .getUserHomeInfoPostalPostalcode()); + } + if (page.getUserHomeInfoPostalCountry() != null) + { + userInfo.put("user.home-info.postal.country", page + .getUserHomeInfoPostalCountry()); + } + if (page.getUserHomeInfoPostalOrganization() != null) + { + userInfo.put("user.home-info.postal.organization", page + .getUserHomeInfoPostalOrganization()); + } + if (page.getUserHomeInfoTelecomTelephoneIntcode() != null) + { + userInfo.put("user.home-info.telecom.telephone.intcode", page + .getUserHomeInfoTelecomTelephoneIntcode()); + } + if (page.getUserHomeInfoTelecomTelephoneLoccode() != null) + { + userInfo.put("user.home-info.telecom.telephone.loccode", page + .getUserHomeInfoTelecomTelephoneLoccode()); + } + if (page.getUserHomeInfoTelecomTelephoneNumber() != null) + { + userInfo.put("user.home-info.telecom.telephone.number", page + .getUserHomeInfoTelecomTelephoneNumber()); + } + if (page.getUserHomeInfoTelecomTelephoneExt() != null) + { + userInfo.put("user.home-info.telecom.telephone.ext", page + .getUserHomeInfoTelecomTelephoneExt()); + } + if (page.getUserHomeInfoTelecomTelephoneComment() != null) + { + userInfo.put("user.home-info.telecom.telephone.comment", page + .getUserHomeInfoTelecomTelephoneComment()); + } + if (page.getUserHomeInfoTelecomFaxIntcode() != null) + { + userInfo.put("user.home-info.telecom.fax.intcode", page + .getUserHomeInfoTelecomFaxIntcode()); + } + if (page.getUserHomeInfoTelecomFaxLoccode() != null) + { + userInfo.put("user.home-info.telecom.fax.loccode", page + .getUserHomeInfoTelecomFaxLoccode()); + } + if (page.getUserHomeInfoTelecomFaxNumber() != null) + { + userInfo.put("user.home-info.telecom.fax.number", page + .getUserHomeInfoTelecomFaxNumber()); + } + if (page.getUserHomeInfoTelecomFaxExt() != null) + { + userInfo.put("user.home-info.telecom.fax.ext", page + .getUserHomeInfoTelecomFaxExt()); + } + if (page.getUserHomeInfoTelecomFaxComment() != null) + { + userInfo.put("user.home-info.telecom.fax.comment", page + .getUserHomeInfoTelecomFaxComment()); + } + if (page.getUserHomeInfoTelecomMobileIntcode() != null) + { + userInfo.put("user.home-info.telecom.mobile.intcode", page + .getUserHomeInfoTelecomMobileIntcode()); + } + if (page.getUserHomeInfoTelecomMobileLoccode() != null) + { + userInfo.put("user.home-info.telecom.mobile.loccode", page + .getUserHomeInfoTelecomMobileLoccode()); + } + if (page.getUserHomeInfoTelecomMobileNumber() != null) + { + userInfo.put("user.home-info.telecom.mobile.number", page + .getUserHomeInfoTelecomMobileNumber()); + } + if (page.getUserHomeInfoTelecomMobileExt() != null) + { + userInfo.put("user.home-info.telecom.mobile.ext", page + .getUserHomeInfoTelecomMobileExt()); + } + if (page.getUserHomeInfoTelecomMobileComment() != null) + { + userInfo.put("user.home-info.telecom.mobile.comment", page + .getUserHomeInfoTelecomMobileComment()); + } + if (page.getUserHomeInfoTelecomPagerIntcode() != null) + { + userInfo.put("user.home-info.telecom.pager.intcode", page + .getUserHomeInfoTelecomPagerIntcode()); + } + if (page.getUserHomeInfoTelecomPagerLoccode() != null) + { + userInfo.put("user.home-info.telecom.pager.loccode", page + .getUserHomeInfoTelecomPagerLoccode()); + } + if (page.getUserHomeInfoTelecomPagerNumber() != null) + { + userInfo.put("user.home-info.telecom.pager.number", page + .getUserHomeInfoTelecomPagerNumber()); + } + if (page.getUserHomeInfoTelecomPagerExt() != null) + { + userInfo.put("user.home-info.telecom.pager.ext", page + .getUserHomeInfoTelecomPagerExt()); + } + if (page.getUserHomeInfoTelecomPagerComment() != null) + { + userInfo.put("user.home-info.telecom.pager.comment", page + .getUserHomeInfoTelecomPagerComment()); + } + if (page.getUserHomeInfoOnlineEmail() != null) + { + userInfo.put("user.home-info.online.email", page + .getUserHomeInfoOnlineEmail()); + } + if (page.getUserHomeInfoOnlineUri() != null) + { + userInfo.put("user.home-info.online.uri", page + .getUserHomeInfoOnlineUri()); + } + if (page.getUserBusinessInfoPostalName() != null) + { + userInfo.put("user.business-info.postal.name", page + .getUserBusinessInfoPostalName()); + } + if (page.getUserBusinessInfoPostalStreet() != null) + { + userInfo.put("user.business-info.postal.street", page + .getUserBusinessInfoPostalStreet()); + } + if (page.getUserBusinessInfoPostalCity() != null) + { + userInfo.put("user.business-info.postal.city", page + .getUserBusinessInfoPostalCity()); + } + if (page.getUserBusinessInfoPostalStateprov() != null) + { + userInfo.put("user.business-info.postal.stateprov", page + .getUserBusinessInfoPostalStateprov()); + } + if (page.getUserBusinessInfoPostalPostalcode() != null) + { + userInfo.put("user.business-info.postal.postalcode", page + .getUserBusinessInfoPostalPostalcode()); + } + if (page.getUserBusinessInfoPostalCountry() != null) + { + userInfo.put("user.business-info.postal.country", page + .getUserBusinessInfoPostalCountry()); + } + if (page.getUserBusinessInfoPostalOrganization() != null) + { + userInfo.put("user.business-info.postal.organization", page + .getUserBusinessInfoPostalOrganization()); + } + if (page.getUserBusinessInfoTelecomTelephoneIntcode() != null) + { + userInfo.put("user.business-info.telecom.telephone.intcode", page + .getUserBusinessInfoTelecomTelephoneIntcode()); + } + if (page.getUserBusinessInfoTelecomTelephoneLoccode() != null) + { + userInfo.put("user.business-info.telecom.telephone.loccode", page + .getUserBusinessInfoTelecomTelephoneLoccode()); + } + if (page.getUserBusinessInfoTelecomTelephoneNumber() != null) + { + userInfo.put("user.business-info.telecom.telephone.number", page + .getUserBusinessInfoTelecomTelephoneNumber()); + } + if (page.getUserBusinessInfoTelecomTelephoneExt() != null) + { + userInfo.put("user.business-info.telecom.telephone.ext", page + .getUserBusinessInfoTelecomTelephoneExt()); + } + if (page.getUserBusinessInfoTelecomTelephoneComment() != null) + { + userInfo.put("user.business-info.telecom.telephone.comment", page + .getUserBusinessInfoTelecomTelephoneComment()); + } + if (page.getUserBusinessInfoTelecomFaxIntcode() != null) + { + userInfo.put("user.business-info.telecom.fax.intcode", page + .getUserBusinessInfoTelecomFaxIntcode()); + } + if (page.getUserBusinessInfoTelecomFaxLoccode() != null) + { + userInfo.put("user.business-info.telecom.fax.loccode", page + .getUserBusinessInfoTelecomFaxLoccode()); + } + if (page.getUserBusinessInfoTelecomFaxNumber() != null) + { + userInfo.put("user.business-info.telecom.fax.number", page + .getUserBusinessInfoTelecomFaxNumber()); + } + if (page.getUserBusinessInfoTelecomFaxExt() != null) + { + userInfo.put("user.business-info.telecom.fax.ext", page + .getUserBusinessInfoTelecomFaxExt()); + } + if (page.getUserBusinessInfoTelecomFaxComment() != null) + { + userInfo.put("user.business-info.telecom.fax.comment", page + .getUserBusinessInfoTelecomFaxComment()); + } + if (page.getUserBusinessInfoTelecomMobileIntcode() != null) + { + userInfo.put("user.business-info.telecom.mobile.intcode", page + .getUserBusinessInfoTelecomMobileIntcode()); + } + if (page.getUserBusinessInfoTelecomMobileLoccode() != null) + { + userInfo.put("user.business-info.telecom.mobile.loccode", page + .getUserBusinessInfoTelecomMobileLoccode()); + } + if (page.getUserBusinessInfoTelecomMobileNumber() != null) + { + userInfo.put("user.business-info.telecom.mobile.number", page + .getUserBusinessInfoTelecomMobileNumber()); + } + if (page.getUserBusinessInfoTelecomMobileExt() != null) + { + userInfo.put("user.business-info.telecom.mobile.ext", page + .getUserBusinessInfoTelecomMobileExt()); + } + if (page.getUserBusinessInfoTelecomMobileComment() != null) + { + userInfo.put("user.business-info.telecom.mobile.comment", page + .getUserBusinessInfoTelecomMobileComment()); + } + if (page.getUserBusinessInfoTelecomPagerIntcode() != null) + { + userInfo.put("user.business-info.telecom.pager.intcode", page + .getUserBusinessInfoTelecomPagerIntcode()); + } + if (page.getUserBusinessInfoTelecomPagerLoccode() != null) + { + userInfo.put("user.business-info.telecom.pager.loccode", page + .getUserBusinessInfoTelecomPagerLoccode()); + } + if (page.getUserBusinessInfoTelecomPagerNumber() != null) + { + userInfo.put("user.business-info.telecom.pager.number", page + .getUserBusinessInfoTelecomPagerNumber()); + } + if (page.getUserBusinessInfoTelecomPagerExt() != null) + { + userInfo.put("user.business-info.telecom.pager.ext", page + .getUserBusinessInfoTelecomPagerExt()); + } + if (page.getUserBusinessInfoTelecomPagerComment() != null) + { + userInfo.put("user.business-info.telecom.pager.comment", page + .getUserBusinessInfoTelecomPagerComment()); + } + if (page.getUserBusinessInfoOnlineUri() != null) + { + userInfo.put("user.business-info.online.uri", page + .getUserBusinessInfoOnlineUri()); + } + + return userInfo; + } +} Property changes on: pal-admin/trunk/src/main/java/jp/sf/pal/admin/service/UserRegistrationService.java ___________________________________________________________________ Name: svn:eol-style + native Modified: pal-admin/trunk/src/main/java/jp/sf/pal/admin/util/PALAdminUtil.java =================================================================== --- pal-admin/trunk/src/main/java/jp/sf/pal/admin/util/PALAdminUtil.java 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/java/jp/sf/pal/admin/util/PALAdminUtil.java 2007-05-20 12:21:48 UTC (rev 152) @@ -170,4 +170,5 @@ getFacesContext().getExternalContext().getSessionMap().remove( PALAdminConstants.PASSWORD); } + } Modified: pal-admin/trunk/src/main/java/jp/sf/pal/admin/util/PortalComponentUtil.java =================================================================== --- pal-admin/trunk/src/main/java/jp/sf/pal/admin/util/PortalComponentUtil.java 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/java/jp/sf/pal/admin/util/PortalComponentUtil.java 2007-05-20 12:21:48 UTC (rev 152) @@ -20,6 +20,7 @@ import jp.sf.pal.admin.PALAdminConstants; +import org.apache.jetspeed.administration.PortalAdministration; import org.apache.jetspeed.components.portletregistry.PortletRegistry; import org.apache.jetspeed.deployment.DeploymentManager; import org.apache.jetspeed.factory.PortletFactory; @@ -105,4 +106,11 @@ .getRequestMap().get( PALAdminConstants.DEPLOYMENT_MANAGER_COMPONENT); } + + public static PortalAdministration getPortalAdministration() + { + return (PortalAdministration) getFacesContext().getExternalContext() + .getRequestMap().get( + PALAdminConstants.PORTAL_ADMINISTRATION_COMPONENT); + } } Added: pal-admin/trunk/src/main/java/jp/sf/pal/admin/util/UserRegistrationUtil.java =================================================================== --- pal-admin/trunk/src/main/java/jp/sf/pal/admin/util/UserRegistrationUtil.java 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/java/jp/sf/pal/admin/util/UserRegistrationUtil.java 2007-05-20 12:21:48 UTC (rev 152) @@ -0,0 +1,88 @@ +package jp.sf.pal.admin.util; + +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.faces.context.FacesContext; + +import org.apache.jetspeed.locator.JetspeedTemplateLocator; + +import jp.sf.pal.admin.PALAdminConstants; + +public class UserRegistrationUtil +{ + private static FacesContext getFacesContext() + { + return FacesContext.getCurrentInstance(); + } + + public static Map getUserRegistrationParams() + { + Map params = (Map) getFacesContext() + .getExternalContext().getRequestMap().get( + PALAdminConstants.USER_REGISTRATION_PARAMS); + if (params == null) + { + throw new IllegalStateException( + "The user registration params is null. "); + } + return params; + } + + public static boolean getBoolean(String key) + { + Object value = getUserRegistrationParams().get(key); + if (value == null) + { + return false; + } + return ((Boolean) value).booleanValue(); + } + + public static String getString(String key) + { + return (String) getUserRegistrationParams().get(key); + } + + public static List getStringList(String key) + { + Object value = getUserRegistrationParams().get(key); + if (value == null) + { + return new ArrayList(); + } + return (List) value; + + } + + public static Map getStringMap(String key) + { + Object value = getUserRegistrationParams().get(key); + if (value == null) + { + return new HashMap(); + } + return (Map) value; + + } + + public static JetspeedTemplateLocator getTemplateLocator() + { + return (JetspeedTemplateLocator) getUserRegistrationParams().get( + PALAdminConstants.TEMPLATE_LOCATOR); + } + + public static String makeGUID(String user, String newpw) + { + // This is a quicky version + long num = (long) user.hashCode() + (long) newpw.hashCode(); // Possible collisions here... + long d = new Date().getTime(); + long val = num * d; + String retval = Long.toHexString(val); + return retval; + } + +} Property changes on: pal-admin/trunk/src/main/java/jp/sf/pal/admin/util/UserRegistrationUtil.java ___________________________________________________________________ Name: svn:eol-style + native Added: pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/UserRegistrationPage.java =================================================================== --- pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/UserRegistrationPage.java 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/UserRegistrationPage.java 2007-05-20 12:21:48 UTC (rev 152) @@ -0,0 +1,1108 @@ +package jp.sf.pal.admin.web.registration; + +import java.io.Serializable; + +import javax.faces.context.FacesContext; +import javax.faces.internal.FacesMessageUtil; + +import jp.sf.pal.admin.PALAdminConstants; +import jp.sf.pal.admin.service.UserRegistrationService; +import jp.sf.pal.admin.util.UserRegistrationUtil; +import jp.sf.pal.common.CommonException; + +import org.seasar.framework.log.Logger; +import org.seasar.teeda.extension.annotation.takeover.TakeOver; +import org.seasar.teeda.extension.annotation.takeover.TakeOverType; +import org.seasar.teeda.extension.annotation.validator.Length; +import org.seasar.teeda.extension.annotation.validator.Required; +import org.seasar.teeda.extension.util.LabelHelper; + +public class UserRegistrationPage implements Serializable +{ + + /** + * + */ + private static final long serialVersionUID = -8133681534556233811L; + + /** + * Logger for this class + */ + private static final Logger logger = Logger + .getLogger(UserRegistrationPage.class); + + private FacesContext facesContext; + + private LabelHelper labelHelper; + + private UserRegistrationService userRegistrationService; + + @Length(maximum = 80) + private String password; + + @Length(maximum = 25) + private String userBdate; + + @Required + @Length(maximum = 80) + private String userBusinessInfoOnlineEmail; + + @Length(maximum = 80) + private String userBusinessInfoOnlineUri; + + @Length(maximum = 80) + private String userBusinessInfoPostalCity; + + @Length(maximum = 80) + private String userBusinessInfoPostalCountry; + + @Length(maximum = 80) + private String userBusinessInfoPostalName; + + @Length(maximum = 80) + private String userBusinessInfoPostalOrganization; + + @Length(maximum = 80) + private String userBusinessInfoPostalPostalcode; + + @Length(maximum = 80) + private String userBusinessInfoPostalStateprov; + + @Length(maximum = 80) + private String userBusinessInfoPostalStreet; + + @Length(maximum = 80) + private String userBusinessInfoTelecomFaxComment; + + @Length(maximum = 80) + private String userBusinessInfoTelecomFaxExt; + + @Length(maximum = 80) + private String userBusinessInfoTelecomFaxIntcode; + + @Length(maximum = 80) + private String userBusinessInfoTelecomFaxLoccode; + + @Length(maximum = 80) + private String userBusinessInfoTelecomFaxNumber; + + @Length(maximum = 80) + private String userBusinessInfoTelecomMobileComment; + + @Length(maximum = 80) + private String userBusinessInfoTelecomMobileExt; + + @Length(maximum = 80) + private String userBusinessInfoTelecomMobileIntcode; + + @Length(maximum = 80) + private String userBusinessInfoTelecomMobileLoccode; + + @Length(maximum = 80) + private String userBusinessInfoTelecomMobileNumber; + + @Length(maximum = 80) + private String userBusinessInfoTelecomPagerComment; + + @Length(maximum = 80) + private String userBusinessInfoTelecomPagerExt; + + @Length(maximum = 80) + private String userBusinessInfoTelecomPagerIntcode; + + @Length(maximum = 80) + private String userBusinessInfoTelecomPagerLoccode; + + @Length(maximum = 80) + private String userBusinessInfoTelecomPagerNumber; + + @Length(maximum = 80) + private String userBusinessInfoTelecomTelephoneComment; + + @Length(maximum = 80) + private String userBusinessInfoTelecomTelephoneExt; + + @Length(maximum = 80) + private String userBusinessInfoTelecomTelephoneIntcode; + + @Length(maximum = 80) + private String userBusinessInfoTelecomTelephoneLoccode; + + @Length(maximum = 80) + private String userBusinessInfoTelecomTelephoneNumber; + + @Length(maximum = 80) + private String userDepartment; + + @Length(maximum = 80) + private String userEmployer; + + @Length(maximum = 10) + private String userGender; + + @Length(maximum = 80) + private String userHomeInfoOnlineEmail; + + @Length(maximum = 80) + private String userHomeInfoOnlineUri; + + @Length(maximum = 80) + private String userHomeInfoPostalCity; + + @Length(maximum = 80) + private String userHomeInfoPostalCountry; + + @Length(maximum = 80) + private String userHomeInfoPostalName; + + @Length(maximum = 80) + private String userHomeInfoPostalOrganization; + + @Length(maximum = 80) + private String userHomeInfoPostalPostalcode; + + @Length(maximum = 80) + private String userHomeInfoPostalStateprov; + + @Length(maximum = 80) + private String userHomeInfoPostalStreet; + + @Length(maximum = 80) + private String userHomeInfoTelecomFaxComment; + + @Length(maximum = 80) + private String userHomeInfoTelecomFaxExt; + + @Length(maximum = 80) + private String userHomeInfoTelecomFaxIntcode; + + @Length(maximum = 80) + private String userHomeInfoTelecomFaxLoccode; + + @Length(maximum = 80) + private String userHomeInfoTelecomFaxNumber; + + @Length(maximum = 80) + private String userHomeInfoTelecomMobileComment; + + @Length(maximum = 80) + private String userHomeInfoTelecomMobileExt; + + @Length(maximum = 80) + private String userHomeInfoTelecomMobileIntcode; + + @Length(maximum = 80) + private String userHomeInfoTelecomMobileLoccode; + + @Length(maximum = 80) + private String userHomeInfoTelecomMobileNumber; + + @Length(maximum = 80) + private String userHomeInfoTelecomPagerComment; + + @Length(maximum = 80) + private String userHomeInfoTelecomPagerExt; + + @Length(maximum = 80) + private String userHomeInfoTelecomPagerIntcode; + + @Length(maximum = 80) + private String userHomeInfoTelecomPagerLoccode; + + @Length(maximum = 80) + private String userHomeInfoTelecomPagerNumber; + + @Length(maximum = 80) + private String userHomeInfoTelecomTelephoneComment; + + @Length(maximum = 80) + private String userHomeInfoTelecomTelephoneExt; + + @Length(maximum = 80) + private String userHomeInfoTelecomTelephoneIntcode; + + @Length(maximum = 80) + private String userHomeInfoTelecomTelephoneLoccode; + + @Length(maximum = 80) + private String userHomeInfoTelecomTelephoneNumber; + + @Length(maximum = 80) + private String userJobtitle; + + @Required + @Length(maximum = 80) + private String userName; + + @Length(maximum = 30) + private String userNameFamily; + + @Length(maximum = 30) + private String userNameGiven; + + @Length(maximum = 30) + private String userNameMiddle; + + @Length(maximum = 30) + private String userNameNickName; + + @Length(maximum = 10) + private String userNamePrefix; + + @Length(maximum = 10) + private String userNameSuffix; + + @Length(maximum = 80) + private String verifyPassword; + + /** + * @return the facesContext + */ + public FacesContext getFacesContext() + { + return facesContext; + } + + /** + * @param facesContext the facesContext to set + */ + public void setFacesContext(FacesContext facesContext) + { + this.facesContext = facesContext; + } + + /** + * @return the userRegistrationService + */ + public UserRegistrationService getUserRegistrationService() + { + return userRegistrationService; + } + + /** + * @param userRegistrationService the userRegistrationService to set + */ + public void setUserRegistrationService( + UserRegistrationService userRegistrationService) + { + this.userRegistrationService = userRegistrationService; + } + + /** + * @return the labelHelper + */ + public LabelHelper getLabelHelper() + { + return labelHelper; + } + + /** + * @param labelHelper the labelHelper to set + */ + public void setLabelHelper(LabelHelper labelHelper) + { + this.labelHelper = labelHelper; + } + + public String getPassword() + { + return password; + } + + public void setPassword(String password) + { + this.password = password; + } + + public String getUserBdate() + { + return userBdate; + } + + public void setUserBdate(String userBdate) + { + this.userBdate = userBdate; + } + + public String getUserBusinessInfoOnlineEmail() + { + return userBusinessInfoOnlineEmail; + } + + public void setUserBusinessInfoOnlineEmail( + String userBusinessInfoOnlineEmail) + { + this.userBusinessInfoOnlineEmail = userBusinessInfoOnlineEmail; + } + + public String getUserBusinessInfoOnlineUri() + { + return userBusinessInfoOnlineUri; + } + + public void setUserBusinessInfoOnlineUri(String userBusinessInfoOnlineUri) + { + this.userBusinessInfoOnlineUri = userBusinessInfoOnlineUri; + } + + public String getUserBusinessInfoPostalCity() + { + return userBusinessInfoPostalCity; + } + + public void setUserBusinessInfoPostalCity(String userBusinessInfoPostalCity) + { + this.userBusinessInfoPostalCity = userBusinessInfoPostalCity; + } + + public String getUserBusinessInfoPostalCountry() + { + return userBusinessInfoPostalCountry; + } + + public void setUserBusinessInfoPostalCountry( + String userBusinessInfoPostalCountry) + { + this.userBusinessInfoPostalCountry = userBusinessInfoPostalCountry; + } + + public String getUserBusinessInfoPostalName() + { + return userBusinessInfoPostalName; + } + + public void setUserBusinessInfoPostalName(String userBusinessInfoPostalName) + { + this.userBusinessInfoPostalName = userBusinessInfoPostalName; + } + + public String getUserBusinessInfoPostalOrganization() + { + return userBusinessInfoPostalOrganization; + } + + public void setUserBusinessInfoPostalOrganization( + String userBusinessInfoPostalOrganization) + { + this.userBusinessInfoPostalOrganization = userBusinessInfoPostalOrganization; + } + + public String getUserBusinessInfoPostalPostalcode() + { + return userBusinessInfoPostalPostalcode; + } + + public void setUserBusinessInfoPostalPostalcode( + String userBusinessInfoPostalPostalcode) + { + this.userBusinessInfoPostalPostalcode = userBusinessInfoPostalPostalcode; + } + + public String getUserBusinessInfoPostalStateprov() + { + return userBusinessInfoPostalStateprov; + } + + public void setUserBusinessInfoPostalStateprov( + String userBusinessInfoPostalStateprov) + { + this.userBusinessInfoPostalStateprov = userBusinessInfoPostalStateprov; + } + + public String getUserBusinessInfoPostalStreet() + { + return userBusinessInfoPostalStreet; + } + + public void setUserBusinessInfoPostalStreet( + String userBusinessInfoPostalStreet) + { + this.userBusinessInfoPostalStreet = userBusinessInfoPostalStreet; + } + + public String getUserBusinessInfoTelecomFaxComment() + { + return userBusinessInfoTelecomFaxComment; + } + + public void setUserBusinessInfoTelecomFaxComment( + String userBusinessInfoTelecomFaxComment) + { + this.userBusinessInfoTelecomFaxComment = userBusinessInfoTelecomFaxComment; + } + + public String getUserBusinessInfoTelecomFaxExt() + { + return userBusinessInfoTelecomFaxExt; + } + + public void setUserBusinessInfoTelecomFaxExt( + String userBusinessInfoTelecomFaxExt) + { + this.userBusinessInfoTelecomFaxExt = userBusinessInfoTelecomFaxExt; + } + + public String getUserBusinessInfoTelecomFaxIntcode() + { + return userBusinessInfoTelecomFaxIntcode; + } + + public void setUserBusinessInfoTelecomFaxIntcode( + String userBusinessInfoTelecomFaxIntcode) + { + this.userBusinessInfoTelecomFaxIntcode = userBusinessInfoTelecomFaxIntcode; + } + + public String getUserBusinessInfoTelecomFaxLoccode() + { + return userBusinessInfoTelecomFaxLoccode; + } + + public void setUserBusinessInfoTelecomFaxLoccode( + String userBusinessInfoTelecomFaxLoccode) + { + this.userBusinessInfoTelecomFaxLoccode = userBusinessInfoTelecomFaxLoccode; + } + + public String getUserBusinessInfoTelecomFaxNumber() + { + return userBusinessInfoTelecomFaxNumber; + } + + public void setUserBusinessInfoTelecomFaxNumber( + String userBusinessInfoTelecomFaxNumber) + { + this.userBusinessInfoTelecomFaxNumber = userBusinessInfoTelecomFaxNumber; + } + + public String getUserBusinessInfoTelecomMobileComment() + { + return userBusinessInfoTelecomMobileComment; + } + + public void setUserBusinessInfoTelecomMobileComment( + String userBusinessInfoTelecomMobileComment) + { + this.userBusinessInfoTelecomMobileComment = userBusinessInfoTelecomMobileComment; + } + + public String getUserBusinessInfoTelecomMobileExt() + { + return userBusinessInfoTelecomMobileExt; + } + + public void setUserBusinessInfoTelecomMobileExt( + String userBusinessInfoTelecomMobileExt) + { + this.userBusinessInfoTelecomMobileExt = userBusinessInfoTelecomMobileExt; + } + + public String getUserBusinessInfoTelecomMobileIntcode() + { + return userBusinessInfoTelecomMobileIntcode; + } + + public void setUserBusinessInfoTelecomMobileIntcode( + String userBusinessInfoTelecomMobileIntcode) + { + this.userBusinessInfoTelecomMobileIntcode = userBusinessInfoTelecomMobileIntcode; + } + + public String getUserBusinessInfoTelecomMobileLoccode() + { + return userBusinessInfoTelecomMobileLoccode; + } + + public void setUserBusinessInfoTelecomMobileLoccode( + String userBusinessInfoTelecomMobileLoccode) + { + this.userBusinessInfoTelecomMobileLoccode = userBusinessInfoTelecomMobileLoccode; + } + + public String getUserBusinessInfoTelecomMobileNumber() + { + return userBusinessInfoTelecomMobileNumber; + } + + public void setUserBusinessInfoTelecomMobileNumber( + String userBusinessInfoTelecomMobileNumber) + { + this.userBusinessInfoTelecomMobileNumber = userBusinessInfoTelecomMobileNumber; + } + + public String getUserBusinessInfoTelecomPagerComment() + { + return userBusinessInfoTelecomPagerComment; + } + + public void setUserBusinessInfoTelecomPagerComment( + String userBusinessInfoTelecomPagerComment) + { + this.userBusinessInfoTelecomPagerComment = userBusinessInfoTelecomPagerComment; + } + + public String getUserBusinessInfoTelecomPagerExt() + { + return userBusinessInfoTelecomPagerExt; + } + + public void setUserBusinessInfoTelecomPagerExt( + String userBusinessInfoTelecomPagerExt) + { + this.userBusinessInfoTelecomPagerExt = userBusinessInfoTelecomPagerExt; + } + + public String getUserBusinessInfoTelecomPagerIntcode() + { + return userBusinessInfoTelecomPagerIntcode; + } + + public void setUserBusinessInfoTelecomPagerIntcode( + String userBusinessInfoTelecomPagerIntcode) + { + this.userBusinessInfoTelecomPagerIntcode = userBusinessInfoTelecomPagerIntcode; + } + + public String getUserBusinessInfoTelecomPagerLoccode() + { + return userBusinessInfoTelecomPagerLoccode; + } + + public void setUserBusinessInfoTelecomPagerLoccode( + String userBusinessInfoTelecomPagerLoccode) + { + this.userBusinessInfoTelecomPagerLoccode = userBusinessInfoTelecomPagerLoccode; + } + + public String getUserBusinessInfoTelecomPagerNumber() + { + return userBusinessInfoTelecomPagerNumber; + } + + public void setUserBusinessInfoTelecomPagerNumber( + String userBusinessInfoTelecomPagerNumber) + { + this.userBusinessInfoTelecomPagerNumber = userBusinessInfoTelecomPagerNumber; + } + + public String getUserBusinessInfoTelecomTelephoneComment() + { + return userBusinessInfoTelecomTelephoneComment; + } + + public void setUserBusinessInfoTelecomTelephoneComment( + String userBusinessInfoTelecomTelephoneComment) + { + this.userBusinessInfoTelecomTelephoneComment = userBusinessInfoTelecomTelephoneComment; + } + + public String getUserBusinessInfoTelecomTelephoneExt() + { + return userBusinessInfoTelecomTelephoneExt; + } + + public void setUserBusinessInfoTelecomTelephoneExt( + String userBusinessInfoTelecomTelephoneExt) + { + this.userBusinessInfoTelecomTelephoneExt = userBusinessInfoTelecomTelephoneExt; + } + + public String getUserBusinessInfoTelecomTelephoneIntcode() + { + return userBusinessInfoTelecomTelephoneIntcode; + } + + public void setUserBusinessInfoTelecomTelephoneIntcode( + String userBusinessInfoTelecomTelephoneIntcode) + { + this.userBusinessInfoTelecomTelephoneIntcode = userBusinessInfoTelecomTelephoneIntcode; + } + + public String getUserBusinessInfoTelecomTelephoneLoccode() + { + return userBusinessInfoTelecomTelephoneLoccode; + } + + public void setUserBusinessInfoTelecomTelephoneLoccode( + String userBusinessInfoTelecomTelephoneLoccode) + { + this.userBusinessInfoTelecomTelephoneLoccode = userBusinessInfoTelecomTelephoneLoccode; + } + + public String getUserBusinessInfoTelecomTelephoneNumber() + { + return userBusinessInfoTelecomTelephoneNumber; + } + + public void setUserBusinessInfoTelecomTelephoneNumber( + String userBusinessInfoTelecomTelephoneNumber) + { + this.userBusinessInfoTelecomTelephoneNumber = userBusinessInfoTelecomTelephoneNumber; + } + + public String getUserDepartment() + { + return userDepartment; + } + + public void setUserDepartment(String userDepartment) + { + this.userDepartment = userDepartment; + } + + public String getUserEmployer() + { + return userEmployer; + } + + public void setUserEmployer(String userEmployer) + { + this.userEmployer = userEmployer; + } + + public String getUserGender() + { + return userGender; + } + + public void setUserGender(String userGender) + { + this.userGender = userGender; + } + + public String getUserHomeInfoOnlineEmail() + { + return userHomeInfoOnlineEmail; + } + + public void setUserHomeInfoOnlineEmail(String userHomeInfoOnlineEmail) + { + this.userHomeInfoOnlineEmail = userHomeInfoOnlineEmail; + } + + public String getUserHomeInfoOnlineUri() + { + return userHomeInfoOnlineUri; + } + + public void setUserHomeInfoOnlineUri(String userHomeInfoOnlineUri) + { + this.userHomeInfoOnlineUri = userHomeInfoOnlineUri; + } + + public String getUserHomeInfoPostalCity() + { + return userHomeInfoPostalCity; + } + + public void setUserHomeInfoPostalCity(String userHomeInfoPostalCity) + { + this.userHomeInfoPostalCity = userHomeInfoPostalCity; + } + + public String getUserHomeInfoPostalCountry() + { + return userHomeInfoPostalCountry; + } + + public void setUserHomeInfoPostalCountry(String userHomeInfoPostalCountry) + { + this.userHomeInfoPostalCountry = userHomeInfoPostalCountry; + } + + public String getUserHomeInfoPostalName() + { + return userHomeInfoPostalName; + } + + public void setUserHomeInfoPostalName(String userHomeInfoPostalName) + { + this.userHomeInfoPostalName = userHomeInfoPostalName; + } + + public String getUserHomeInfoPostalOrganization() + { + return userHomeInfoPostalOrganization; + } + + public void setUserHomeInfoPostalOrganization( + String userHomeInfoPostalOrganization) + { + this.userHomeInfoPostalOrganization = userHomeInfoPostalOrganization; + } + + public String getUserHomeInfoPostalPostalcode() + { + return userHomeInfoPostalPostalcode; + } + + public void setUserHomeInfoPostalPostalcode( + String userHomeInfoPostalPostalcode) + { + this.userHomeInfoPostalPostalcode = userHomeInfoPostalPostalcode; + } + + public String getUserHomeInfoPostalStateprov() + { + return userHomeInfoPostalStateprov; + } + + public void setUserHomeInfoPostalStateprov( + String userHomeInfoPostalStateprov) + { + this.userHomeInfoPostalStateprov = userHomeInfoPostalStateprov; + } + + public String getUserHomeInfoPostalStreet() + { + return userHomeInfoPostalStreet; + } + + public void setUserHomeInfoPostalStreet(String userHomeInfoPostalStreet) + { + this.userHomeInfoPostalStreet = userHomeInfoPostalStreet; + } + + public String getUserHomeInfoTelecomFaxComment() + { + return userHomeInfoTelecomFaxComment; + } + + public void setUserHomeInfoTelecomFaxComment( + String userHomeInfoTelecomFaxComment) + { + this.userHomeInfoTelecomFaxComment = userHomeInfoTelecomFaxComment; + } + + public String getUserHomeInfoTelecomFaxExt() + { + return userHomeInfoTelecomFaxExt; + } + + public void setUserHomeInfoTelecomFaxExt(String userHomeInfoTelecomFaxExt) + { + this.userHomeInfoTelecomFaxExt = userHomeInfoTelecomFaxExt; + } + + public String getUserHomeInfoTelecomFaxIntcode() + { + return userHomeInfoTelecomFaxIntcode; + } + + public void setUserHomeInfoTelecomFaxIntcode( + String userHomeInfoTelecomFaxIntcode) + { + this.userHomeInfoTelecomFaxIntcode = userHomeInfoTelecomFaxIntcode; + } + + public String getUserHomeInfoTelecomFaxLoccode() + { + return userHomeInfoTelecomFaxLoccode; + } + + public void setUserHomeInfoTelecomFaxLoccode( + String userHomeInfoTelecomFaxLoccode) + { + this.userHomeInfoTelecomFaxLoccode = userHomeInfoTelecomFaxLoccode; + } + + public String getUserHomeInfoTelecomFaxNumber() + { + return userHomeInfoTelecomFaxNumber; + } + + public void setUserHomeInfoTelecomFaxNumber( + String userHomeInfoTelecomFaxNumber) + { + this.userHomeInfoTelecomFaxNumber = userHomeInfoTelecomFaxNumber; + } + + public String getUserHomeInfoTelecomMobileComment() + { + return userHomeInfoTelecomMobileComment; + } + + public void setUserHomeInfoTelecomMobileComment( + String userHomeInfoTelecomMobileComment) + { + this.userHomeInfoTelecomMobileComment = userHomeInfoTelecomMobileComment; + } + + public String getUserHomeInfoTelecomMobileExt() + { + return userHomeInfoTelecomMobileExt; + } + + public void setUserHomeInfoTelecomMobileExt( + String userHomeInfoTelecomMobileExt) + { + this.userHomeInfoTelecomMobileExt = userHomeInfoTelecomMobileExt; + } + + public String getUserHomeInfoTelecomMobileIntcode() + { + return userHomeInfoTelecomMobileIntcode; + } + + public void setUserHomeInfoTelecomMobileIntcode( + String userHomeInfoTelecomMobileIntcode) + { + this.userHomeInfoTelecomMobileIntcode = userHomeInfoTelecomMobileIntcode; + } + + public String getUserHomeInfoTelecomMobileLoccode() + { + return userHomeInfoTelecomMobileLoccode; + } + + public void setUserHomeInfoTelecomMobileLoccode( + String userHomeInfoTelecomMobileLoccode) + { + this.userHomeInfoTelecomMobileLoccode = userHomeInfoTelecomMobileLoccode; + } + + public String getUserHomeInfoTelecomMobileNumber() + { + return userHomeInfoTelecomMobileNumber; + } + + public void setUserHomeInfoTelecomMobileNumber( + String userHomeInfoTelecomMobileNumber) + { + this.userHomeInfoTelecomMobileNumber = userHomeInfoTelecomMobileNumber; + } + + public String getUserHomeInfoTelecomPagerComment() + { + return userHomeInfoTelecomPagerComment; + } + + public void setUserHomeInfoTelecomPagerComment( + String userHomeInfoTelecomPagerComment) + { + this.userHomeInfoTelecomPagerComment = userHomeInfoTelecomPagerComment; + } + + public String getUserHomeInfoTelecomPagerExt() + { + return userHomeInfoTelecomPagerExt; + } + + public void setUserHomeInfoTelecomPagerExt( + String userHomeInfoTelecomPagerExt) + { + this.userHomeInfoTelecomPagerExt = userHomeInfoTelecomPagerExt; + } + + public String getUserHomeInfoTelecomPagerIntcode() + { + return userHomeInfoTelecomPagerIntcode; + } + + public void setUserHomeInfoTelecomPagerIntcode( + String userHomeInfoTelecomPagerIntcode) + { + this.userHomeInfoTelecomPagerIntcode = userHomeInfoTelecomPagerIntcode; + } + + public String getUserHomeInfoTelecomPagerLoccode() + { + return userHomeInfoTelecomPagerLoccode; + } + + public void setUserHomeInfoTelecomPagerLoccode( + String userHomeInfoTelecomPagerLoccode) + { + this.userHomeInfoTelecomPagerLoccode = userHomeInfoTelecomPagerLoccode; + } + + public String getUserHomeInfoTelecomPagerNumber() + { + return userHomeInfoTelecomPagerNumber; + } + + public void setUserHomeInfoTelecomPagerNumber( + String userHomeInfoTelecomPagerNumber) + { + this.userHomeInfoTelecomPagerNumber = userHomeInfoTelecomPagerNumber; + } + + public String getUserHomeInfoTelecomTelephoneComment() + { + return userHomeInfoTelecomTelephoneComment; + } + + public void setUserHomeInfoTelecomTelephoneComment( + String userHomeInfoTelecomTelephoneComment) + { + this.userHomeInfoTelecomTelephoneComment = userHomeInfoTelecomTelephoneComment; + } + + public String getUserHomeInfoTelecomTelephoneExt() + { + return userHomeInfoTelecomTelephoneExt; + } + + public void setUserHomeInfoTelecomTelephoneExt( + String userHomeInfoTelecomTelephoneExt) + { + this.userHomeInfoTelecomTelephoneExt = userHomeInfoTelecomTelephoneExt; + } + + public String getUserHomeInfoTelecomTelephoneIntcode() + { + return userHomeInfoTelecomTelephoneIntcode; + } + + public void setUserHomeInfoTelecomTelephoneIntcode( + String userHomeInfoTelecomTelephoneIntcode) + { + this.userHomeInfoTelecomTelephoneIntcode = userHomeInfoTelecomTelephoneIntcode; + } + + public String getUserHomeInfoTelecomTelephoneLoccode() + { + return userHomeInfoTelecomTelephoneLoccode; + } + + public void setUserHomeInfoTelecomTelephoneLoccode( + String userHomeInfoTelecomTelephoneLoccode) + { + this.userHomeInfoTelecomTelephoneLoccode = userHomeInfoTelecomTelephoneLoccode; + } + + public String getUserHomeInfoTelecomTelephoneNumber() + { + return userHomeInfoTelecomTelephoneNumber; + } + + public void setUserHomeInfoTelecomTelephoneNumber( + String userHomeInfoTelecomTelephoneNumber) + { + this.userHomeInfoTelecomTelephoneNumber = userHomeInfoTelecomTelephoneNumber; + } + + public String getUserJobtitle() + { + return userJobtitle; + } + + public void setUserJobtitle(String userJobtitle) + { + this.userJobtitle = userJobtitle; + } + + public String getUserName() + { + return userName; + } + + public void setUserName(String userName) + { + this.userName = userName; + } + + public String getUserNameFamily() + { + return userNameFamily; + } + + public void setUserNameFamily(String userNameFamily) + { + this.userNameFamily = userNameFamily; + } + + public String getUserNameGiven() + { + return userNameGiven; + } + + public void setUserNameGiven(String userNameGiven) + { + this.userNameGiven = userNameGiven; + } + + public String getUserNameMiddle() + { + return userNameMiddle; + } + + public void setUserNameMiddle(String userNameMiddle) + { + this.userNameMiddle = userNameMiddle; + } + + public String getUserNameNickName() + { + return userNameNickName; + } + + public void setUserNameNickName(String userNameNickName) + { + this.userNameNickName = userNameNickName; + } + + public String getUserNamePrefix() + { + return userNamePrefix; + } + + public void setUserNamePrefix(String userNamePrefix) + { + this.userNamePrefix = userNamePrefix; + } + + public String getUserNameSuffix() + { + return userNameSuffix; + } + + public void setUserNameSuffix(String userNameSuffix) + { + this.userNameSuffix = userNameSuffix; + } + + public String getVerifyPassword() + { + return verifyPassword; + } + + public void setVerifyPassword(String verifyPassword) + { + this.verifyPassword = verifyPassword; + } + + public String initialize() + { + return null; + } + + public String prerender() + { + return null; + } + + @TakeOver(type = TakeOverType.NEVER) + public String doFinish() + { + try + { + getUserRegistrationService().register(this); + if (UserRegistrationUtil.getBoolean(PALAdminConstants.SEND_MAIL)) + { + FacesMessageUtil.addInfoMessage("success.check_your_email"); + } + else + { + FacesMessageUtil.addInfoMessage("success.login_above"); + } + } + catch (CommonException e) + { + FacesMessageUtil.addErrorMessage(e.getMessageId()); + logger.log("EPA0001", new Object[] { this.toString() }, e); + + } + return null; + } +} Property changes on: pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/UserRegistrationPage.java ___________________________________________________________________ Name: svn:eol-style + native Added: pal-admin/trunk/src/main/resources/PAMessages.properties =================================================================== --- pal-admin/trunk/src/main/resources/PAMessages.properties 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/resources/PAMessages.properties 2007-05-20 12:21:48 UTC (rev 152) @@ -0,0 +1 @@ +EPA0001=Could not register a user. \ No newline at end of file Property changes on: pal-admin/trunk/src/main/resources/PAMessages.properties ___________________________________________________________________ Name: svn:eol-style + native Modified: pal-admin/trunk/src/main/resources/appMessages.properties =================================================================== --- pal-admin/trunk/src/main/resources/appMessages.properties 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/resources/appMessages.properties 2007-05-20 12:21:48 UTC (rev 152) @@ -65,3 +65,10 @@ failed.to.get.users=Failed to load users. +error.lacking.password=You must enter a password. +error.userid_already_exists=Requested User ID already exists. Please select another User Id. +error.email_already_exists=The requested email address is already being used in the system. If you already have an account, consider using the forgotten password portlet to retreive your password. +error.failed_to_add=Failed to add user. +success.login_above=You have completed the user registration process. Please login above. +success.check_your_email= You have completed the user registration process. An email containing your username and password has been sent to you. +error.registration_completed_but_could_not_send=You have completed the user registration process. But a system could not send a registration mail to you. Please contact a site administrator. Modified: pal-admin/trunk/src/main/resources/appMessages_ja.properties =================================================================== --- pal-admin/trunk/src/main/resources/appMessages_ja.properties 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/resources/appMessages_ja.properties 2007-05-20 12:21:48 UTC (rev 152) @@ -1 +1,9 @@ +error.lacking.password=\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 +error.userid_already_exists=\u8981\u6c42\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fcID\u306f\u65e2\u306b\u5b58\u5728\u3057\u307e\u3059\u3002\u5225\u306e\u30e6\u30fc\u30b6\u30fcID\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +error.email_already_exists=\u8981\u6c42\u3055\u308c\u305f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306f\u65e2\u306b\u30b7\u30b9\u30c6\u30e0\u3067\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u65e2\u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u6240\u6709\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u78ba\u8a8d\u30dd\u30fc\u30c8\u30ec\u30c3\u30c8\u306e\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +error.two_passwords_do_not_match=\uff12\u3064\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u4e00\u81f4\u3057\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +error.failed_to_add=\u30e6\u30fc\u30b6\u30fc\u306e\u8ffd\u52a0\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002 +success.login_above=\u30e6\u30fc\u30b6\u30fc\u767b\u9332\u30d7\u30ed\u30bb\u30b9\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +success.check_your_email= \u30e6\u30fc\u30b6\u30fc\u767b\u9332\u30d7\u30ed\u30bb\u30b9\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u542b\u307e\u308c\u308b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u307e\u3057\u305f\u3002 +error.registration_completed_but_could_not_send=\u30e6\u30fc\u30b6\u30fc\u767b\u9332\u30d7\u30ed\u30bb\u30b9\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u767b\u9332\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 Added: pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label.properties =================================================================== --- pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label.properties 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label.properties 2007-05-20 12:21:48 UTC (rev 152) @@ -0,0 +1,75 @@ +userName= Username +userBdate= Birthday +userGender= Gender +userEmployer= Employer +userDepartment= Department +userJobtitle= Job Title +userNamePrefix= Title +userNameGiven= Given Name +userNameFamily= Family Name +userNameMiddle= Middle Name +userNameSuffix= Suffix +userNameNickName= Nick Name +userHomeInfoPostalName= Postal Name +userHomeInfoPostalStreet= Street Address +userHomeInfoPostalCity= City +userHomeInfoPostalStateprov= State +userHomeInfoPostalPostalcode= Zip +userHomeInfoPostalCountry= Country +userHomeInfoPostalOrganization= Organization +userHomeInfoTelecomTelephoneIntcode= Home International Code +userHomeInfoTelecomTelephoneLoccode= Home Phone Area Code +userHomeInfoTelecomTelephoneNumber= Home Phone Number +userHomeInfoTelecomTelephoneExt= Home Phone Extension +userHomeInfoTelecomTelephoneComment= Home Phone Comment +userHomeInfoTelecomFaxIntcode= Home Fax International Code +userHomeInfoTelecomFaxLoccode= Home Fax Area Code +userHomeInfoTelecomFaxNumber= Home Fax Number +userHomeInfoTelecomFaxExt= Home Fax Extension +userHomeInfoTelecomFaxComment= Home Fax Comments +userHomeInfoTelecomMobileIntcode= Home Mobile International Coe +userHomeInfoTelecomMobileLoccode= Home Mobile Area Code +userHomeInfoTelecomMobileNumber= Home Mobile Number +userHomeInfoTelecomMobileExt= Home Mobile Extension +userHomeInfoTelecomMobileComment= Home Mobile Comments +userHomeInfoTelecomPagerIntcode= Home Pager International Code +userHomeInfoTelecomPagerLoccode= Home Pager Area Code +userHomeInfoTelecomPagerNumber= Home Pager Number +userHomeInfoTelecomPagerExt= Home Pager Extension +userHomeInfoTelecomPagerComment= Home Pager Comment +userHomeInfoOnlineEmail= Home Email +userHomeInfoOnlineUri= Home URL +userBusinessInfoPostalName= Business Postal Name +userBusinessInfoPostalStreet= Business Street Address +userBusinessInfoPostalCity= Business City +userBusinessInfoPostalStateprov= Business State +userBusinessInfoPostalPostalcode= Business Zip +userBusinessInfoPostalCountry= Business Country +userBusinessInfoPostalOrganization= Business Name +userBusinessInfoTelecomTelephoneIntcode= Business Telephone International Code +userBusinessInfoTelecomTelephoneLoccode= Business Telephone Area Code +userBusinessInfoTelecomTelephoneNumber= Business Telephone Number +userBusinessInfoTelecomTelephoneExt= Business Telephone Extension +userBusinessInfoTelecomTelephoneComment= Business Telephone Comment +userBusinessInfoTelecomFaxIntcode= Business Fax International Code +userBusinessInfoTelecomFaxLoccode= Business Fax Area Code +userBusinessInfoTelecomFaxNumber= Business Fax Number +userBusinessInfoTelecomFaxExt= Business Fax Extension +userBusinessInfoTelecomFaxComment= Business Fax Comment +userBusinessInfoTelecomMobileIntcode= Business Mobile International Code +userBusinessInfoTelecomMobileLoccode= Business Mobile Area Code +userBusinessInfoTelecomMobileNumber= Business Mobile Number +userBusinessInfoTelecomMobileExt= Business Mobile Extension +userBusinessInfoTelecomMobileComment= Business Mobile Comment +userBusinessInfoTelecomPagerIntcode= Business Pager International Code +userBusinessInfoTelecomPagerLoccode= Business Pager Area Code +userBusinessInfoTelecomPagerNumber= Business Pager Number +userBusinessInfoTelecomPagerExt= Business Pager Extension +userBusinessInfoTelecomPagerComment= Business Page Comment +userBusinessInfoOnlineEmail= Business Email +userBusinessInfoOnlineUri= Business Url +password=Password +verifyPassword=Verify Password +email=Email + +email.subject.registration=Registration Confirmation \ No newline at end of file Property changes on: pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label.properties ___________________________________________________________________ Name: svn:eol-style + native Added: pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label_ja.properties =================================================================== --- pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label_ja.properties 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label_ja.properties 2007-05-20 12:21:48 UTC (rev 152) @@ -0,0 +1,80 @@ +# portlet info +javax.portlet.title=\u30e6\u30fc\u30b6\u30fc\u767b\u9332 +javax.portlet.short-title=\u30e6\u30fc\u30b6\u30fc\u767b\u9332 +javax.portlet.keywords=\u30d1\u30b9\u30ef\u30fc\u30c9,\u767b\u9332,\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7,\u65b0\u898f\u30e6\u30fc\u30b6\u30fc + +userName= \u30e6\u30fc\u30b6\u30fc\u540d +userBdate= \u8a95\u751f\u65e5 +userGender= \u6027\u5225 +userEmployer= \u96c7\u7528\u8005 +userDepartment= \u90e8\u9580 +userJobtitle= \u4ed5\u4e8b\u306e\u80a9\u66f8\u304d +userNamePrefix= \u656c\u79f0(\u524d\u306b\u4ed8\u3051\u308b) +userNameGiven= \u540d\u524d(\u540d) +userNameFamily= \u540d\u524d(\u59d3) +userNameMiddle= \u30df\u30c9\u30eb\u30cd\u30fc\u30e0 +userNameSuffix= \u656c\u79f0(\u5f8c\u306b\u4ed8\u3051\u308b) +userNameNickName= \u30cb\u30c3\u30af\u30cd\u30fc\u30e0 +userHomeInfoPostalName= \u4f4f\u6240 +userHomeInfoPostalStreet= \u901a\u308a\u30fb\u756a\u5730 +userHomeInfoPostalCity= \u90fd\u5e02 +userHomeInfoPostalStateprov= \u5dde/\u770c +userHomeInfoPostalPostalcode= \u90f5\u4fbf\u756a\u53f7 +userHomeInfoPostalCountry= \u56fd +userHomeInfoPostalOrganization= \u7d44\u7e54 +userHomeInfoTelecomTelephoneIntcode= \u81ea\u5b85\u7528\u306e\u56fd\u969b\u30b3\u30fc\u30c9 +userHomeInfoTelecomTelephoneLoccode= \u81ea\u5b85\u7528\u306e\u5e02\u5916\u5c40\u756a +userHomeInfoTelecomTelephoneNumber= \u81ea\u5b85\u7528\u306e\u96fb\u8a71\u756a\u53f7 +userHomeInfoTelecomTelephoneExt= \u81ea\u5b85\u7528\u306e\u5916\u7dda\u756a\u53f7 +userHomeInfoTelecomTelephoneComment= \u81ea\u5b85\u7528\u306e\u96fb\u8a71\u306b\u95a2\u3059\u308b\u30b3\u30e1\u30f3\u30c8 +userHomeInfoTelecomFaxIntcode= \u81ea\u5b85\u7528\u306eFAX\u306e\u56fd\u969b\u30b3\u30fc\u30c9 +userHomeInfoTelecomFaxLoccode= \u81ea\u5b85\u7528\u306eFAX\u306e\u5e02\u5916\u5c40\u756a +userHomeInfoTelecomFaxNumber= \u81ea\u5b85\u7528\u306eFAX\u306e\u96fb\u8a71\u756a\u53f7 +userHomeInfoTelecomFaxExt= \u81ea\u5b85\u7528\u306eFAX\u306e\u5916\u7dda\u756a\u53f7 +userHomeInfoTelecomFaxComment= \u81ea\u5b85\u7528\u306eFAX\u306b\u95a2\u3059\u308b\u30b3\u30e1\u30f3\u30c8 +userHomeInfoTelecomMobileIntcode= \u81ea\u5b85\u7528\u306e\u643a\u5e2f\u96fb\u8a71\u306e\u56fd\u969b\u30b3\u30fc\u30c9 +userHomeInfoTelecomMobileLoccode= \u81ea\u5b85\u7528\u306e\u643a\u5e2f\u96fb\u8a71\u306e\u5e02\u5916\u5c40\u756a +userHomeInfoTelecomMobileNumber= \u81ea\u5b85\u7528\u306e\u643a\u5e2f\u96fb\u8a71\u306e\u96fb\u8a71\u756a\u53f7 +userHomeInfoTelecomMobileExt= \u81ea\u5b85\u7528\u306e\u643a\u5e2f\u96fb\u8a71\u306e\u5916\u7dda\u756a\u53f7 +userHomeInfoTelecomMobileComment= \u81ea\u5b85\u7528\u306e\u643a\u5e2f\u96fb\u8a71\u306b\u95a2\u3059\u308b\u30b3\u30e1\u30f3\u30c8 +userHomeInfoTelecomPagerIntcode= \u81ea\u5b85\u7528\u306e\u30dd\u30b1\u30d9\u30eb\u306e\u56fd\u969b\u30b3\u30fc\u30c9 +userHomeInfoTelecomPagerLoccode= \u81ea\u5b85\u7528\u306e\u30dd\u30b1\u30d9\u30eb\u306e\u5e02\u5916\u5c40\u756a +userHomeInfoTelecomPagerNumber= \u81ea\u5b85\u7528\u306e\u30dd\u30b1\u30d9\u30eb\u306e\u96fb\u8a71\u756a\u53f7 +userHomeInfoTelecomPagerExt= \u81ea\u5b85\u7528\u306e\u30dd\u30b1\u30d9\u30eb\u306e\u5916\u7dda\u756a\u53f7 +userHomeInfoTelecomPagerComment= \u81ea\u5b85\u7528\u306e\u30dd\u30b1\u30d9\u30eb\u306b\u95a2\u3059\u308b\u30b3\u30e1\u30f3\u30c8 +userHomeInfoOnlineEmail= \u81ea\u5b85\u7528\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9 +userHomeInfoOnlineUri= \u81ea\u5b85\u7528\u306eURL +userBusinessInfoPostalName= \u4ed5\u4e8b\u7528\u306e\u4f4f\u6240 +userBusinessInfoPostalStreet= \u4ed5\u4e8b\u7528\u306e\u4f4f\u6240\u306e\u901a\u308a\u30fb\u756a\u5730 +userBusinessInfoPostalCity= \u4ed5\u4e8b\u7528\u306e\u4f4f\u6240\u306e\u90fd\u5e02 +userBusinessInfoPostalStateprov= \u4ed5\u4e8b\u7528\u306e\u4f4f\u6240\u306e\u5dde/\u770c +userBusinessInfoPostalPostalcode= \u4ed5\u4e8b\u7528\u306e\u4f4f\u6240\u306e\u90f5\u4fbf\u773c\u53f7 +userBusinessInfoPostalCountry= \u4ed5\u4e8b\u7528\u306e\u4f4f\u6240\u306e\u56fd +userBusinessInfoPostalOrganization= \u4ed5\u4e8b\u7528\u306e\u7d44\u7e54 +userBusinessInfoTelecomTelephoneIntcode= \u4ed5\u4e8b\u7528\u306e\u56fd\u969b\u30b3\u30fc\u30c9 +userBusinessInfoTelecomTelephoneLoccode= \u4ed5\u4e8b\u7528\u306e\u5e02\u5916\u5c40\u756a +userBusinessInfoTelecomTelephoneNumber= \u4ed5\u4e8b\u7528\u306e\u96fb\u8a71\u756a\u53f7 +userBusinessInfoTelecomTelephoneExt= \u4ed5\u4e8b\u7528\u306e\u5916\u7dda\u756a\u53f7 +userBusinessInfoTelecomTelephoneComment= \u4ed5\u4e8b\u7528\u306e\u96fb\u8a71\u306b\u95a2\u3059\u308b\u30b3\u30e1\u30f3\u30c8 +userBusinessInfoTelecomFaxIntcode= \u4ed5\u4e8b\u7528\u306eFAX\u306e\u56fd\u969b\u30b3\u30fc\u30c9 +userBusinessInfoTelecomFaxLoccode= \u4ed5\u4e8b\u7528\u306eFAX\u306e\u5e02\u5916\u5c40\u756a +userBusinessInfoTelecomFaxNumber= \u4ed5\u4e8b\u7528\u306eFAX\u306e\u96fb\u8a71\u756a\u53f7 +userBusinessInfoTelecomFaxExt= \u4ed5\u4e8b\u7528\u306eFAX\u306e\u5916\u7dda\u756a\u53f7 +userBusinessInfoTelecomFaxComment= \u4ed5\u4e8b\u7528\u306eFAX\u306b\u95a2\u3059\u308b\u30b3\u30e1\u30f3\u30c8 +userBusinessInfoTelecomMobileIntcode= \u4ed5\u4e8b\u7528\u306e\u643a\u5e2f\u96fb\u8a71\u306e\u56fd\u969b\u30b3\u30fc\u30c9 +userBusinessInfoTelecomMobileLoccode= \u4ed5\u4e8b\u7528\u306e\u643a\u5e2f\u96fb\u8a71\u306e\u5e02\u5916\u5c40\u756a +userBusinessInfoTelecomMobileNumber= \u4ed5\u4e8b\u7528\u306e\u643a\u5e2f\u96fb\u8a71\u306e\u96fb\u8a71\u756a\u53f7 +userBusinessInfoTelecomMobileExt= \u4ed5\u4e8b\u7528\u306e\u643a\u5e2f\u96fb\u8a71\u306e\u5916\u7dda\u756a\u53f7 +userBusinessInfoTelecomMobileComment= \u4ed5\u4e8b\u7528\u306e\u643a\u5e2f\u96fb\u8a71\u306b\u95a2\u3059\u308b\u30b3\u30e1\u30f3\u30c8 +userBusinessInfoTelecomPagerIntcode= \u4ed5\u4e8b\u7528\u306e\u30dd\u30b1\u30d9\u30eb\u306e\u56fd\u969b\u30b3\u30fc\u30c9 +userBusinessInfoTelecomPagerLoccode= \u4ed5\u4e8b\u7528\u306e\u30dd\u30b1\u30d9\u30eb\u306e\u5e02\u5916\u5c40\u756a +userBusinessInfoTelecomPagerNumber= \u4ed5\u4e8b\u7528\u306e\u30dd\u30b1\u30d9\u30eb\u306e\u96fb\u8a71\u756a\u53f7 +userBusinessInfoTelecomPagerExt= \u4ed5\u4e8b\u7528\u306e\u30dd\u30b1\u30d9\u30eb\u306e\u5916\u7dda\u756a\u53f7 +userBusinessInfoTelecomPagerComment= \u4ed5\u4e8b\u7528\u306e\u30dd\u30b1\u30d9\u30eb\u306b\u95a2\u3059\u308b\u30b3\u30e1\u30f3\u30c8 +userBusinessInfoOnlineEmail= \u4ed5\u4e8b\u7528\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9 +userBusinessInfoOnlineUri= \u4ed5\u4e8b\u7528\u306eURL +password=\u30d1\u30b9\u30ef\u30fc\u30c9 +verifyPassword=\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u518d\u5165\u529b +email=\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9 + +email.subject.registration=\u767b\u9332\u306e\u78ba\u8a8d Property changes on: pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label_ja.properties ___________________________________________________________________ Name: svn:eol-style + native Modified: pal-admin/trunk/src/main/webapp/WEB-INF/portlet.xml =================================================================== --- pal-admin/trunk/src/main/webapp/WEB-INF/portlet.xml 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/webapp/WEB-INF/portlet.xml 2007-05-20 12:21:48 UTC (rev 152) @@ -34,18 +34,18 @@ view-page /view/user/userList.html
      - text/html VIEW - + en ja - + User Management Management @@ -71,22 +71,95 @@ view-page /view/portletmanager/portletList.html - text/html VIEW - + en ja - + Portlet Management Management Portlet,Management + + Provides users with the ability register as a new user with the portal. + ユーザーにポータルの新規登録する機能を提供します。 + UserRegistrationPortlet + User Registration + ユーザー登録 + org.apache.portals.bridges.portletfilter.FilterPortlet + + portlet-class + org.seasar.teeda.core.portlet.FacesPortlet + + + portlet-filters + jp.sf.pal.admin.filter.UserRegistrationFilter,jp.sf.pal.facesresponse.FacesResponseFilter,jp.sf.pal.pooptimizer.OptimizerFilter,org.seasar.portlet.filter.S2PortletFilter,org.seasar.portlet.filter.HotdeployPortletFilter + + + view-page + /view/registration/userRegistration.html + + + This option will generate a new password for each user registration + jp.sf.pal.admin.ForceGeneratedPassword + false + + + This option will force email address to be system wide unique + jp.sf.pal.admin.ForceUniqueEmail + true + + + This option will use the email address as the username + jp.sf.pal.admin.ForceUseEmailAsUsername + false + + + This is the template in which you setup an email to be sent after user exists + jp.sf.pal.admin.EmailTemplateLocation + /WEB-INF/template/userreg/ + + + This is the template in which you setup an email to be sent after user exists + jp.sf.pal.admin.EmailTemplateName + userRegistrationEmail.vm + + + Profiling rules to be assigned at registration. + jp.sf.pal.admin.RuleNames + page + + + Profiling rules to be assigned at registration. + jp.sf.pal.admin.RuleValues + j2 + + + Profiling rules to be assigned at registration. + jp.sf.pal.admin.SendMail + true + + -1 + + text/html + VIEW + + en + ja + jp.sf.pal.admin.web.registration.label + + User Registration + Registration + Registration + + Added: pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/forgottenPasswdEmail.vm =================================================================== --- pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/forgottenPasswdEmail.vm 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/forgottenPasswdEmail.vm 2007-05-20 12:21:48 UTC (rev 152) @@ -0,0 +1,12 @@ +Hello $!{map.get("user.name.given")} $!{map.get("user.name.family")}: + +You have requested a new password for your account. +The account username: $!{map.get("username")} +The new password is : $!{map.get("password")} + +Thanks, + +--- +PAL Portal +http://sourceforge.jp/projects/pal/ + Added: pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/html/ja/forgottenPasswdEmail.vm =================================================================== --- pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/html/ja/forgottenPasswdEmail.vm 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/html/ja/forgottenPasswdEmail.vm 2007-05-20 12:21:48 UTC (rev 152) @@ -0,0 +1,12 @@ +こんにちは、$!{map.get("user.name.family")} $!{map.get("user.name.given")} さん + +ご利用のアカウントに関する新規パスワード作成依頼を受け付けました。 +アカウントユーザー名: $!{map.get("username")} +新規パスワード: $!{map.get("password")} + +以上をよろしくお願いいたします。 + +--- +PAL ポータル +http://sourceforge.jp/projects/pal/ + Added: pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/html/ja/userRegistrationEmail.vm =================================================================== --- pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/html/ja/userRegistrationEmail.vm 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/html/ja/userRegistrationEmail.vm 2007-05-20 12:21:48 UTC (rev 152) @@ -0,0 +1,17 @@ +こんにちは、$!{map.get("user.name.family")} $!{map.get("user.name.given")} さん + +PAL ポータルへようこそ! +登録していただきありがとうございます。PAL ポータルは JSR 168 に +合格したコンポーネントベースのポータルコンテナシステムです。 + +ユーザー名: $!{map.get("user.name")} +パスワード: $!{map.get("password")} + +パスワードは、ログインして変更できます。 + +以上をよろしくお願いいたします。 + +--- +PAL ポータル +http://sourceforge.jp/projects/pal/ + Added: pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/userRegistrationEmail.vm =================================================================== --- pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/userRegistrationEmail.vm 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/userRegistrationEmail.vm 2007-05-20 12:21:48 UTC (rev 152) @@ -0,0 +1,16 @@ +Hello $!{map.get("user.name.given")} $!{map.get("user.name.family")}: + +Welcome to PAL Portal! +Thanks you for registering. PAL Portal is a powerful component based +portlet container system conforming to JSR-168. + +Your username is: $!{map.get("user.name")} +Your password is: $!{map.get("password")} + +You may change your password online. + +--- +PAL Portal +http://sourceforge.jp/projects/pal/ + + Added: pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/forgottenPasswd.vm =================================================================== --- pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/forgottenPasswd.vm 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/forgottenPasswd.vm 2007-05-20 12:21:48 UTC (rev 152) @@ -0,0 +1,40 @@ +#* + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*# +#set ($MESSAGES = $portletConfig.getResourceBundle($renderRequest.Locale)) + +
      + #if($updatedPWMsg) +
      TitleTitle
      + +

      $updatedPWMsg

      + #else +
      + + + + + +
      + $MESSAGES.getString('page.message') + #if($MSG ) +
      +

      $!MSG

      + #end +
      $MESSAGES.getString('page.email')
      +
      + #end + Added: pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/userRegistration.vm =================================================================== --- pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/userRegistration.vm 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/userRegistration.vm 2007-05-20 12:21:48 UTC (rev 152) @@ -0,0 +1,61 @@ +#* + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*# +#set ($MESSAGES = $portletConfig.getResourceBundle($renderRequest.Locale)) +#set ($refreshLink = $renderResponse.createRenderURL()) +$refreshLink.setParameter("reset", "true") +
      + #if($registeredUserMsg) + + + +

      $registeredUserMsg

      Click here to start registration...

      + #else +
      + + + + #if($CTX_Option_Use_Email_As_Username) + #else + + #end + + + #if($CTX_Option_Generate_Passwords) + #else + + + #end + + #foreach( $fieldName in $fieldsInOrder ) + #set($pagestring = "page.${fieldName}") + #if( $optionalMap.get($fieldName) ) + + #else + + #end + #end + + +
      + $MESSAGES.getString('page.welcome') + #if($MSG ) +

      $!MSG

      + #end +
      $MESSAGES.getString('page.username')
      $MESSAGES.getString('page.email.address')
      $MESSAGES.getString('page.password')
      $MESSAGES.getString('page.passwordVerify')
      ${MESSAGES.getString($pagestring)} $MESSAGES.getString("page.optional")
      ${MESSAGES.getString($pagestring)}
      +
      + #end +
      Added: pal-admin/trunk/src/main/webapp/view/registration/userRegistration.html =================================================================== --- pal-admin/trunk/src/main/webapp/view/registration/userRegistration.html 2007-05-20 12:14:24 UTC (rev 151) +++ pal-admin/trunk/src/main/webapp/view/registration/userRegistration.html 2007-05-20 12:21:48 UTC (rev 152) @@ -0,0 +1,819 @@ + + + + + + + + +
      +
      + +
      + + + + + + + + + + + + + + + + + + + + + + + + + +
      + + + + + + +
      + + + + + +
      + + + + + +
      + + + + + +
      +
      + +
      + +
      + + Property changes on: pal-admin/trunk/src/main/webapp/view/registration/userRegistration.html ___________________________________________________________________ Name: svn:eol-style + native From svnnotify @ sourceforge.jp Mon May 21 18:15:34 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 21 May 2007 18:15:34 +0900 Subject: [pal-cvs 2421] [153] added forgotten password. Message-ID: <20070521091534.D83EA2AC159@users.sourceforge.jp> Revision: 153 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=153 Author: shinsuke Date: 2007-05-21 18:15:33 +0900 (Mon, 21 May 2007) Log Message: ----------- added forgotten password. Modified Paths: -------------- pal-admin/trunk/pom.xml pal-admin/trunk/src/main/java/jp/sf/pal/admin/PALAdminConstants.java pal-admin/trunk/src/main/java/jp/sf/pal/admin/filter/UserRegistrationFilter.java pal-admin/trunk/src/main/java/jp/sf/pal/admin/service/UserRegistrationService.java pal-admin/trunk/src/main/resources/PAMessages.properties pal-admin/trunk/src/main/resources/appMessages.properties pal-admin/trunk/src/main/resources/appMessages_ja.properties pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label.properties pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label_ja.properties pal-admin/trunk/src/main/webapp/WEB-INF/jetspeed-portlet.xml pal-admin/trunk/src/main/webapp/WEB-INF/portlet.xml pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/forgottenPasswdEmail.vm pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/html/ja/forgottenPasswdEmail.vm Added Paths: ----------- pal-admin/trunk/src/main/java/jp/sf/pal/admin/filter/AbstractUserRegistrationFilter.java pal-admin/trunk/src/main/java/jp/sf/pal/admin/filter/ForgottenPasswordFilter.java pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/ForgottenPasswordPage.java pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/ResetPasswordPage.java pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/ForgottenPassword.properties pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/ForgottenPassword_ja.properties pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/UserRegistration.properties pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/UserRegistration_ja.properties pal-admin/trunk/src/main/webapp/view/registration/forgottenPassword.html pal-admin/trunk/src/main/webapp/view/registration/resetPassword.html Removed Paths: ------------- pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/forgottenPasswd.vm pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/userRegistration.vm -------------- next part -------------- Modified: pal-admin/trunk/pom.xml =================================================================== --- pal-admin/trunk/pom.xml 2007-05-20 12:21:48 UTC (rev 152) +++ pal-admin/trunk/pom.xml 2007-05-21 09:15:33 UTC (rev 153) @@ -55,7 +55,7 @@ true - + org.apache.portals.jetspeed-2 jetspeed-api 2.2-dev_pal-1.0-beta5-dev - + provided - + org.apache.portals.jetspeed-2 @@ -259,11 +259,11 @@ org.apache.pluto pluto 1.0.1 - + provided - + - - - - - admin - - PAL Portal Administration Portlets - PAL Portal 管理ポートレット - PAL Team - - - - - - - - - - - - - - - - - - - - - - - - + + admin + PAL Portal Administration Portlets + PAL Portal 管理ポートレット + PAL Team + + ForgottenPasswordPortlet + public-view + true + true + + + UserRegistrationPortlet + public-view + true + true + + + + + + + + + + + + + + + + + + + + + + + Modified: pal-admin/trunk/src/main/webapp/WEB-INF/portlet.xml =================================================================== --- pal-admin/trunk/src/main/webapp/WEB-INF/portlet.xml 2007-05-20 12:21:48 UTC (rev 152) +++ pal-admin/trunk/src/main/webapp/WEB-INF/portlet.xml 2007-05-21 09:15:33 UTC (rev 153) @@ -111,7 +111,7 @@ This option will generate a new password for each user registration jp.sf.pal.admin.ForceGeneratedPassword - false + true This option will force email address to be system wide unique @@ -148,18 +148,65 @@ jp.sf.pal.admin.SendMail true - -1 + 0 text/html VIEW en ja - jp.sf.pal.admin.web.registration.label + jp.sf.pal.admin.web.registration.UserRegistration User Registration Registration Registration + + Provides users with the ability to request a new password to be sent to their email address. + ユーザーに新規パスワードをメールアドレスに送信要求をする機能を提供します。 + ForgottenPasswordPortlet + Forgotten Password + パスワード再発行ポートレット + org.apache.portals.bridges.portletfilter.FilterPortlet + + portlet-class + org.seasar.teeda.core.portlet.FacesPortlet + + + portlet-filters + jp.sf.pal.admin.filter.ForgottenPasswordFilter,jp.sf.pal.facesresponse.FacesResponseFilter,jp.sf.pal.pooptimizer.OptimizerFilter,org.seasar.portlet.filter.S2PortletFilter,org.seasar.portlet.filter.HotdeployPortletFilter + + + view-page + /view/registration/forgottenPassword.html + + + This is the template in which you setup an email to be sent after user exists + jp.sf.pal.admin.EmailTemplateLocation + /WEB-INF/template/userreg/ + + + This is the template in which you setup an email to be sent after user exists + jp.sf.pal.admin.EmailTemplateName + forgottenPasswdEmail.vm + + + jp.sf.pal.admin.ReturnPath + /forgot.psml + + 0 + + text/html + VIEW + + en + ja + jp.sf.pal.admin.web.registration.ForgottenPassword + + Forgotten Password + Forgotten Password + tools,users,password,forgotten,lost,passwd + + Modified: pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/forgottenPasswdEmail.vm =================================================================== --- pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/forgottenPasswdEmail.vm 2007-05-20 12:21:48 UTC (rev 152) +++ pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/forgottenPasswdEmail.vm 2007-05-21 09:15:33 UTC (rev 153) @@ -1,9 +1,17 @@ Hello $!{map.get("user.name.given")} $!{map.get("user.name.family")}: You have requested a new password for your account. + The account username: $!{map.get("username")} The new password is : $!{map.get("password")} +To activate the new password you MUST click on the following link: +$!{map.get("returnURL")} +If you have received this email in error, and do NOT want to update your password, +please do NOT click on the link above, and your account will remain using your +original password. + + Thanks, --- Modified: pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/html/ja/forgottenPasswdEmail.vm =================================================================== --- pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/html/ja/forgottenPasswdEmail.vm 2007-05-20 12:21:48 UTC (rev 152) +++ pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/email/html/ja/forgottenPasswdEmail.vm 2007-05-21 09:15:33 UTC (rev 153) @@ -1,9 +1,18 @@ こんにちは、$!{map.get("user.name.family")} $!{map.get("user.name.given")} さん ご利用のアカウントに関する新規パスワード作成依頼を受け付けました。 + アカウントユーザー名: $!{map.get("username")} 新規パスワード: $!{map.get("password")} +新規パスワードを有効にするためには、以下のリンクをクリックしてください。 + +$!{map.get("returnURL")} + +もし、謝ってこのメールを受け取った場合や、パスワードを更新したくない場合は、 +上のリンクをクリックしないでください。クリックしなければ、ご利用のアカウントで +現在のパスワードが保持されます。 + 以上をよろしくお願いいたします。 --- Deleted: pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/forgottenPasswd.vm =================================================================== --- pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/forgottenPasswd.vm 2007-05-20 12:21:48 UTC (rev 152) +++ pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/forgottenPasswd.vm 2007-05-21 09:15:33 UTC (rev 153) @@ -1,40 +0,0 @@ -#* - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*# -#set ($MESSAGES = $portletConfig.getResourceBundle($renderRequest.Locale)) - -
      - #if($updatedPWMsg) - - -

      $updatedPWMsg

      - #else -
      - - - - - -
      - $MESSAGES.getString('page.message') - #if($MSG ) -
      -

      $!MSG

      - #end -
      $MESSAGES.getString('page.email')
      -
      - #end -
      Deleted: pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/userRegistration.vm =================================================================== --- pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/userRegistration.vm 2007-05-20 12:21:48 UTC (rev 152) +++ pal-admin/trunk/src/main/webapp/WEB-INF/template/userreg/userRegistration.vm 2007-05-21 09:15:33 UTC (rev 153) @@ -1,61 +0,0 @@ -#* - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*# -#set ($MESSAGES = $portletConfig.getResourceBundle($renderRequest.Locale)) -#set ($refreshLink = $renderResponse.createRenderURL()) -$refreshLink.setParameter("reset", "true") -
      - #if($registeredUserMsg) - - - -

      $registeredUserMsg

      Click here to start registration...

      - #else -
      - - - - #if($CTX_Option_Use_Email_As_Username) - #else - - #end - - - #if($CTX_Option_Generate_Passwords) - #else - - - #end - - #foreach( $fieldName in $fieldsInOrder ) - #set($pagestring = "page.${fieldName}") - #if( $optionalMap.get($fieldName) ) - - #else - - #end - #end - - -
      - $MESSAGES.getString('page.welcome') - #if($MSG ) -

      $!MSG

      - #end -
      $MESSAGES.getString('page.username')
      $MESSAGES.getString('page.email.address')
      $MESSAGES.getString('page.password')
      $MESSAGES.getString('page.passwordVerify')
      ${MESSAGES.getString($pagestring)} $MESSAGES.getString("page.optional")
      ${MESSAGES.getString($pagestring)}
      -
      - #end -
      Added: pal-admin/trunk/src/main/webapp/view/registration/forgottenPassword.html =================================================================== --- pal-admin/trunk/src/main/webapp/view/registration/forgottenPassword.html 2007-05-20 12:21:48 UTC (rev 152) +++ pal-admin/trunk/src/main/webapp/view/registration/forgottenPassword.html 2007-05-21 09:15:33 UTC (rev 153) @@ -0,0 +1,27 @@ + + + + + + + + +
      +
      + +
      + +
      + +
      +
      + + + +
      + +
      + +
      + + Property changes on: pal-admin/trunk/src/main/webapp/view/registration/forgottenPassword.html ___________________________________________________________________ Name: svn:eol-style + native Added: pal-admin/trunk/src/main/webapp/view/registration/resetPassword.html =================================================================== --- pal-admin/trunk/src/main/webapp/view/registration/resetPassword.html 2007-05-20 12:21:48 UTC (rev 152) +++ pal-admin/trunk/src/main/webapp/view/registration/resetPassword.html 2007-05-21 09:15:33 UTC (rev 153) @@ -0,0 +1,21 @@ + + + + + + + + +
      +
      + +
      + + +
      + Back +
      + +
      + + Property changes on: pal-admin/trunk/src/main/webapp/view/registration/resetPassword.html ___________________________________________________________________ Name: svn:eol-style + native From svnnotify @ sourceforge.jp Tue May 22 15:45:42 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 22 May 2007 15:45:42 +0900 Subject: [pal-cvs 2422] [154] put translation messages Message-ID: <20070522064542.5CB6A2AC018@users.sourceforge.jp> Revision: 154 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=154 Author: shinsuke Date: 2007-05-22 15:45:41 +0900 (Tue, 22 May 2007) Log Message: ----------- put translation messages Modified Paths: -------------- pal-admin/trunk/src/main/java/jp/sf/pal/admin/service/UserRegistrationService.java pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/ForgottenPasswordPage.java pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/ResetPasswordPage.java pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/UserRegistrationPage.java pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label.properties pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label_ja.properties pal-admin/trunk/src/main/webapp/view/registration/resetPassword.html -------------- next part -------------- Modified: pal-admin/trunk/src/main/java/jp/sf/pal/admin/service/UserRegistrationService.java =================================================================== --- pal-admin/trunk/src/main/java/jp/sf/pal/admin/service/UserRegistrationService.java 2007-05-21 09:15:33 UTC (rev 153) +++ pal-admin/trunk/src/main/java/jp/sf/pal/admin/service/UserRegistrationService.java 2007-05-22 06:45:41 UTC (rev 154) @@ -289,7 +289,11 @@ { Map map = PortalComponentUtil.getPortalAdministration() .getNewLoginInfo(page.getGuid()); - + if (map == null) + { + throw new CommonException("forgotten.unable_to_update_pw", + "The login info is null. "); + } String userName = (String) map.get("user.name"); String newPassword = (String) map.get("password"); Modified: pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/ForgottenPasswordPage.java =================================================================== --- pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/ForgottenPasswordPage.java 2007-05-21 09:15:33 UTC (rev 153) +++ pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/ForgottenPasswordPage.java 2007-05-22 06:45:41 UTC (rev 154) @@ -149,4 +149,8 @@ return null; } + public String getDoFinishValue() + { + return getLabelHelper().getLabelValue("RequestNewPassword"); + } } Modified: pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/ResetPasswordPage.java =================================================================== --- pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/ResetPasswordPage.java 2007-05-21 09:15:33 UTC (rev 153) +++ pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/ResetPasswordPage.java 2007-05-22 06:45:41 UTC (rev 154) @@ -1,5 +1,10 @@ package jp.sf.pal.admin.web.registration; +import java.io.IOException; +import java.io.Serializable; + +import javax.faces.context.ExternalContext; +import javax.faces.context.FacesContext; import javax.faces.internal.FacesMessageUtil; import jp.sf.pal.admin.service.UserRegistrationService; @@ -8,9 +13,14 @@ import org.seasar.framework.log.Logger; import org.seasar.teeda.extension.util.LabelHelper; -public class ResetPasswordPage +public class ResetPasswordPage implements Serializable { /** + * + */ + private static final long serialVersionUID = -8378731734943234757L; + + /** * Logger for this class */ private static final Logger logger = Logger @@ -65,6 +75,23 @@ this.userRegistrationService = userRegistrationService; } + public Class doLogin() + { + ExternalContext externalContext = FacesContext.getCurrentInstance() + .getExternalContext(); + try + { + externalContext + .redirect(externalContext.getRequestContextPath() + + "/login/proxy?org.apache.jetspeed.login.username=&org.apache.jetspeed.login.password="); + } + catch (IOException e) + { + return ForgottenPasswordPage.class; + } + return null; + } + public String initialize() { return null; @@ -89,4 +116,13 @@ return null; } + public String getDoLoginValue() + { + return getLabelHelper().getLabelValue("login"); + } + + public String getGoForgottenPasswordValue() + { + return getLabelHelper().getLabelValue("sendNewPassword"); + } } Modified: pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/UserRegistrationPage.java =================================================================== --- pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/UserRegistrationPage.java 2007-05-21 09:15:33 UTC (rev 153) +++ pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/registration/UserRegistrationPage.java 2007-05-22 06:45:41 UTC (rev 154) @@ -1105,4 +1105,8 @@ } return null; } + + public String getDoFinishValue(){ + return getLabelHelper().getLabelValue("SignUp"); + } } Modified: pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label.properties =================================================================== --- pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label.properties 2007-05-21 09:15:33 UTC (rev 153) +++ pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label.properties 2007-05-22 06:45:41 UTC (rev 154) @@ -76,3 +76,9 @@ email.subject.registration=Registration Confirmation For Portal Account email.subject.forgotten.password=Password Notification For Portal Account + +login=Login +sendNewPassword=Send New Password +RequestNewPassword=Request New Password +SignUp=Sign Up + Modified: pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label_ja.properties =================================================================== --- pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label_ja.properties 2007-05-21 09:15:33 UTC (rev 153) +++ pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/registration/label_ja.properties 2007-05-22 06:45:41 UTC (rev 154) @@ -75,4 +75,9 @@ pageMessage=\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u304a\u5fd8\u308c\u306e\u65b9\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3078\u65b0\u898f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002\u767b\u9332\u3057\u305f\u6b63\u78ba\u306a\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002 email.subject.registration=\u30dd\u30fc\u30bf\u30eb\u30a2\u30ab\u30a6\u30f3\u30c8\u767b\u9332\u306e\u78ba\u8a8d -email.subject.forgotten.password=\u30dd\u30fc\u30bf\u30eb\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u65b0\u898f\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u901a\u77e5 \ No newline at end of file +email.subject.forgotten.password=\u30dd\u30fc\u30bf\u30eb\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u65b0\u898f\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u901a\u77e5 + +login=\u30ed\u30b0\u30a4\u30f3 +sendNewPassword=\u65b0\u898f\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u9001\u4fe1 +RequestNewPassword=\u65b0\u898f\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u7533\u8acb +SignUp=\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7 Modified: pal-admin/trunk/src/main/webapp/view/registration/resetPassword.html =================================================================== --- pal-admin/trunk/src/main/webapp/view/registration/resetPassword.html 2007-05-21 09:15:33 UTC (rev 153) +++ pal-admin/trunk/src/main/webapp/view/registration/resetPassword.html 2007-05-22 06:45:41 UTC (rev 154) @@ -13,7 +13,7 @@
      - Back +
      From svnnotify @ sourceforge.jp Tue May 22 17:12:12 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 22 May 2007 17:12:12 +0900 Subject: [pal-cvs 2423] [155] added overview. Message-ID: <20070522081212.1C69E2AC00F@users.sourceforge.jp> Revision: 155 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=155 Author: shinsuke Date: 2007-05-22 17:12:11 +0900 (Tue, 22 May 2007) Log Message: ----------- added overview. Modified Paths: -------------- pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/navigation.xml Added Paths: ----------- pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/before-development.xml pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/overview.xml -------------- next part -------------- Added: pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/before-development.xml =================================================================== --- pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/before-development.xml 2007-05-22 06:45:41 UTC (rev 154) +++ pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/before-development.xml 2007-05-22 08:12:11 UTC (rev 155) @@ -0,0 +1,58 @@ + + + + + PALポータル ポートレット開発者ガイド + ポートレット開発の前に + + + + + +
      +

      + JCP (http://www.jcp.org/) では、ポートレットを JSR 168 で定義しています。 + このドキュメントでは、JSR 168 に基づくポートレットの開発を説明します。 + 開発について、説明する前に理解しておくべき、用語などについて説明します。 +

      +
      +
      +

      + ポータルとは、ウェブベースのアプリケーションで、パーソナライズ機能、シングルサインオン、様々な情報発信元からのコンテンツ集約などの機能を提供します。コンテンツを集約することにより、異なる情報元を1つのページにまとめることができます。ポータルは、ユーザーごとに異なるポートレットを含むページを提供することもできます。 +

      +
      +
      +

      + JSR 168 で定義されるポートレットは、Java テクノロジベースのウェブコンポーネントで、リクエストの処理とコンテンツ生成を行います。ポートレットは、ポートレットコンテナにより管理され、情報システムの表示層において、取り替え可能なユーザーインタフェースコンポーネントとして使用されます。 +

      +

      + ポートレットに生成されるコンテンツは、フラグメントと呼ばれます。フラグメントは、HTML、XHTML、WML などのマークアップの一部であり、ほかのフラグメントと共にページに集約されることで、1つのドキュメントが生成されます。ポートレットのコンテンツは、通常、ほかのポートレットのコンテンツと共に集約され、ポータルのページを形成します。 +

      +

      + ブラウザなどのウェブクライアントは、ポータルによって実装されたリクエスト/レスポンス処理の枠組で、ポートレットにアクセスします。フォームの送信やリンクのクリックなどのユーザー操作は、ポータルに送られ、ポータルがポートレットへそれらのリクエストを転送します。ポートレットのライフサイクルは、ポータルコンテナによって管理されます。 +

      +
      +
      +

      + ポートレットコンテナは、ポートレットの実行環境を提供して、ポートレットを実行します。ですので、ポートレットコンテナはポートレットを保持して、それらのライフサイクルを管理します。また、ポートレットがデータを保存するためのポートレットプリファレンス用の永続的なストレージも提供します。ポートレットコンテナは、ポータルからリクエストを受け取り、ポートレットでそのリクエストを処理します。 +

      +

      + ポートレットコンテナでは、コンテンツ集約の機能を持っていません。ポータル上に表示するドキュメントを生成するためのコンテンツ集約の機能は、ポータルが処理します。 +

      +
      + +
      Property changes on: pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/before-development.xml ___________________________________________________________________ Name: svn:eol-style + native Modified: pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/navigation.xml =================================================================== --- pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/navigation.xml 2007-05-22 06:45:41 UTC (rev 154) +++ pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/navigation.xml 2007-05-22 08:12:11 UTC (rev 155) @@ -23,7 +23,11 @@ - + + + + + + + + PALポータル ポートレット開発者ガイド + ポートレット開発概要 + + + + + +
      +

      + ポートレットの開発は、JSR 168 に定義された仕様に基づいて、実装します。ポートレットで使用する API も JSR 168 で定義されています。基本的にはサーブレットと同じですが、ポートレットは独自のライフサイクルを持つため、その点において、サーブレットの開発スタイルとは異なります。 +

      +

      + ポートレットでは、JSF や Struts などのウェブアプリケーションのフレームワークも利用可能です。ウェブフレームワークを利用することで、ポートレット固有のライフサイクルを気にすることなく、サーブレットと同様の開発環境を実現することができます。ですので、ポートレット固有の学習コストなどを削減することができます。ウェブフレームワークの中でも、JSF では、仕様の中にポートレットに関しても記述しているので、サーブレットとポートレットの違いをフレームワークで吸収して、利用しやすいものになっています。ウェブフレームワークを利用せずに、ポートレット API を用いて、ポートレットを開発する場合は、以下の節のライフサイクルなどを理解する必要があります。 +

      +
      +
      +

      + サーブレットでは、1回のリクエストで呼ばれるメソッドは同一ですが (たとえば、doGet や doPost など)、ポートレットでは、アクションの処理と描画の処理が明確にわかれています。それぞれ呼ばれるメソッドは、Portlet インタフェースの processAction メソッドと render メソッドです。これは、ポータルのページ上に複数のポートレットが存在していたときに、アクションが呼ばれるポートレットは1つであり、アクションが呼ばれないポートレットでは、描画処理だけを行うためです。 +

      +
      +
      +

      + アクションの処理は、processAction メソッド内で行われます。processAction の引数として、ActionRequest と ActionResponse のインスタンスが渡されます。これらのリクエストとレスポンスは、アクション処理だけに使われます。描画処理に情報を渡したい場合は、ActionResponse#setRenderParameter(String, String) を利用します。 +

      +
      +
      +

      + 描画の処理は、render メソッド内で行われます。GenericPortlet クラスでは、各描画用に、表示モード時に呼ばれる doView メソッド、編集モード時に呼ばれる doEdit メソッドなどが実装されているので、render メソッドの代わりに利用することができます。これらの描画メソッドの引数として、RenderRequest と RenderResponse のインスタンスが渡されます。これらのリクエストとレスポンスは、描画処理だけに使われます。 +

      +
      + +
      Property changes on: pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/overview.xml ___________________________________________________________________ Name: svn:eol-style + native From svnnotify @ sourceforge.jp Fri May 25 12:26:45 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Fri, 25 May 2007 12:26:45 +0900 Subject: [pal-cvs 2424] [156] modified layout customization. Message-ID: <20070525032648.BF5C22AC014@users.sourceforge.jp> Revision: 156 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=156 Author: shinsuke Date: 2007-05-25 12:26:45 +0900 (Fri, 25 May 2007) Log Message: ----------- modified layout customization. Modified Paths: -------------- pal-portal/trunk/build.properties pal-portal/trunk/portal/patches/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm Added Paths: ----------- pal-portal/trunk/NOTICE.txt pal-portal/trunk/portal/files/src/webapp/decorations/images/ pal-portal/trunk/portal/files/src/webapp/decorations/images/edit.gif pal-portal/trunk/portal/files/src/webapp/decorations/images/help.gif pal-portal/trunk/portal/files/src/webapp/decorations/images/view.gif pal-portal/trunk/portal/patches/layout-portlets/src/java/ pal-portal/trunk/portal/patches/layout-portlets/src/java/org/ pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/ pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/ pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/ pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/ pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/MultiColumnPortlet.java pal-portal/trunk/portal/patches/src/webapp/WEB-INF/jetspeed_macros.vm -------------- next part -------------- Added: pal-portal/trunk/NOTICE.txt =================================================================== --- pal-portal/trunk/NOTICE.txt 2007-05-22 08:12:11 UTC (rev 155) +++ pal-portal/trunk/NOTICE.txt 2007-05-25 03:26:45 UTC (rev 156) @@ -0,0 +1,13 @@ +Web Content Management Portlet +Copyright 2005-2007 Portal Application Laboratory Project + +This product includes software developed at +The Apache Software Foundation (http://www.apache.org/). + +This software contains codes and resources derived from: + + Silk icon set 1.3 + Mark James + http://www.famfamfam.com/lab/icons/silk/ + Creative Commons Attribution 2.5 License + Property changes on: pal-portal/trunk/NOTICE.txt ___________________________________________________________________ Name: svn:eol-style + native Modified: pal-portal/trunk/build.properties =================================================================== --- pal-portal/trunk/build.properties 2007-05-22 08:12:11 UTC (rev 155) +++ pal-portal/trunk/build.properties 2007-05-25 03:26:45 UTC (rev 156) @@ -169,11 +169,14 @@ components/security/src/java/org/apache/jetspeed/security/spi/impl/SecurityAccessImpl.java,\ applications/j2-admin/src/java/org/apache/jetspeed/portlets/registration/UserRegistrationPortlet.java,\ applications/j2-admin/src/webapp/WEB-INF/portlet.xml,\ +layout-portlets/src/java/org/apache/jetspeed/portlets/layout/MultiColumnPortlet.java,\ layout-portlets/src/webapp/WEB-INF/portlet.xml,\ src/webapp/WEB-INF/assembly/jetspeed-services.xml,\ src/webapp/WEB-INF/assembly/portal-url-generation.xml,\ src/webapp/WEB-INF/assembly/pipelines.xml,\ +src/webapp/WEB-INF/jetspeed_macros.vm,\ src/webapp/WEB-INF/templates/login/html/login.jsp,\ +src/webapp/WEB-INF/templates/layout/html/columns/layout.vm,\ src/webapp/WEB-INF/templates/layout/html/maximized/layout.vm,\ src/webapp/decorations/portlet/decorator.vm,\ project.properties,\ @@ -187,8 +190,12 @@ portal.delete.files=\ src/webapp/WEB-INF/conf/override.properties,\ +src/webapp/decorations/images/edit.gif,\ +src/webapp/decorations/images/view.gif,\ +src/webapp/decorations/images/help.gif,\ + portal.delete.directories=\ src/webapp/WEB-INF/pages/,\ src/webapp/desktop-themes/sky/,\ Added: pal-portal/trunk/portal/files/src/webapp/decorations/images/edit.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/portal/files/src/webapp/decorations/images/edit.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/portal/files/src/webapp/decorations/images/help.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/portal/files/src/webapp/decorations/images/help.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/portal/files/src/webapp/decorations/images/view.gif =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/portal/files/src/webapp/decorations/images/view.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/MultiColumnPortlet.java =================================================================== --- pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/MultiColumnPortlet.java 2007-05-22 08:12:11 UTC (rev 155) +++ pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/MultiColumnPortlet.java 2007-05-25 03:26:45 UTC (rev 156) @@ -0,0 +1,1782 @@ +Index: layout-portlets/src/java/org/apache/jetspeed/portlets/layout/MultiColumnPortlet.java +=================================================================== +--- layout-portlets/src/java/org/apache/jetspeed/portlets/layout/MultiColumnPortlet.java (リビジョン 539124) ++++ layout-portlets/src/java/org/apache/jetspeed/portlets/layout/MultiColumnPortlet.java (作業コピー) +@@ -55,21 +55,32 @@ + protected final static Log log = LogFactory.getLog(MultiColumnPortlet.class); + + protected final static String PARAM_NUM_COLUMN = "columns"; ++ + protected final static int DEFAULT_NUM_COLUMN = 2; ++ + protected final static String PARAM_COLUMN_SIZES = "sizes"; ++ + protected final static String DEFAULT_ONE_COLUMN_SIZES = "100%"; ++ + protected final static String DEFAULT_TWO_COLUMN_SIZES = "50%,50%"; ++ + protected final static String DEFAULT_THREE_COLUMN_SIZES = "34%,33%,33%"; + + private int numColumns = 0; ++ + private String columnSizes = null; ++ + private String portletName = null; ++ + private String layoutType; ++ + private String editorType = null; ++ + protected DecorationFactory decorators; ++ + protected JetspeedDesktop desktop; + +- public void init( PortletConfig config ) throws PortletException ++ public void init(PortletConfig config) throws PortletException + { + super.init(config); + this.portletName = config.getPortletName(); +@@ -89,50 +100,57 @@ + { + switch (this.numColumns) + { +- case 1: this.columnSizes = DEFAULT_ONE_COLUMN_SIZES; break; +- case 2: this.columnSizes = DEFAULT_TWO_COLUMN_SIZES; break; +- case 3: this.columnSizes = DEFAULT_THREE_COLUMN_SIZES; break; +- default: this.columnSizes = null; break; ++ case 1: ++ this.columnSizes = DEFAULT_ONE_COLUMN_SIZES; ++ break; ++ case 2: ++ this.columnSizes = DEFAULT_TWO_COLUMN_SIZES; ++ break; ++ case 3: ++ this.columnSizes = DEFAULT_THREE_COLUMN_SIZES; ++ break; ++ default: ++ this.columnSizes = null; ++ break; + } + } + if (this.columnSizes == null) + { +- throw new PortletException("Column sizes cannot be defaulted for " + this.numColumns + " columns and are not specified for " + this.portletName); ++ throw new PortletException("Column sizes cannot be defaulted for " + this.numColumns ++ + " columns and are not specified for " + this.portletName); + } +- +- this.decorators = (DecorationFactory)getPortletContext().getAttribute(CommonPortletServices.CPS_DECORATION_FACTORY); ++ ++ this.decorators = (DecorationFactory) getPortletContext().getAttribute(CommonPortletServices.CPS_DECORATION_FACTORY); + if (null == this.decorators) + { + throw new PortletException("Failed to find the Decoration Factory on portlet initialization"); + } +- +- this.desktop = (JetspeedDesktop)getPortletContext().getAttribute(CommonPortletServices.CPS_DESKTOP); ++ ++ this.desktop = (JetspeedDesktop) getPortletContext().getAttribute(CommonPortletServices.CPS_DESKTOP); + } + +- public void doView( RenderRequest request, RenderResponse response ) throws PortletException, IOException ++ public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException + { + RequestContext context = getRequestContext(request); + +- ContentPage requestPage = context.getPage(); +- PageEditAccess pageEditAccess = (PageEditAccess)context.getAttribute(PortalReservedParameters.PAGE_EDIT_ACCESS_ATTRIBUTE); +- if ( requestPage == null || pageEditAccess == null ) ++ ContentPage requestPage = context.getPage(); ++ PageEditAccess pageEditAccess = (PageEditAccess) context.getAttribute(PortalReservedParameters.PAGE_EDIT_ACCESS_ATTRIBUTE); ++ if (requestPage == null || pageEditAccess == null) + { + // Targetting this portlet REQUIRES that the ProfilerValve has been invoked! + throw new PortletException("Current request page or PageEditAccess not available."); + } +- +- Boolean editing = ( pageEditAccess.isEditing() && +- PortletMode.VIEW.equals(request.getPortletMode()) && +- request.isPortletModeAllowed(PortletMode.EDIT)) +- ? Boolean.TRUE : Boolean.FALSE; +- ++ ++ Boolean editing = (pageEditAccess.isEditing() && PortletMode.VIEW.equals(request.getPortletMode()) && request ++ .isPortletModeAllowed(PortletMode.EDIT)) ? Boolean.TRUE : Boolean.FALSE; ++ + PortletWindow window = context.getPortalURL().getNavigationalState().getMaximizedWindow(); + if (window != null) + { + super.doView(request, response); + return; + } +- ++ + // get fragment column sizes + Fragment f = getFragment(request, false); + String fragmentColumnSizes = columnSizes; +@@ -141,7 +159,7 @@ + { + fragmentColumnSizes = fragmentColumnSizesProperty; + } +- String [] fragmentColumnSizesArray = fragmentColumnSizes.split("\\,"); ++ String[] fragmentColumnSizesArray = fragmentColumnSizes.split("\\,"); + List fragmentColumnSizesList = new ArrayList(fragmentColumnSizesArray.length); + for (int i = 0; (i < fragmentColumnSizesArray.length); i++) + { +@@ -157,16 +175,35 @@ + } + catch (LayoutEventException e1) + { +- throw new PortletException("Failed to build ColumnLayout "+e1.getMessage(), e1); ++ throw new PortletException("Failed to build ColumnLayout " + e1.getMessage(), e1); + } + ++ String prefName = request.getParameter("preferenceName"); ++ if (prefName != null) ++ { ++ request.setAttribute("preferenceName", prefName); ++ } ++ else ++ { ++ request.setAttribute("preferenceName", ""); ++ } ++ String prefState = request.getParameter("preferenceState"); ++ if (prefState != null) ++ { ++ request.setAttribute("preferenceState", prefState); ++ } ++ else ++ { ++ request.setAttribute("preferenceState", "hide"); ++ } ++ + // invoke the JSP associated with this portlet + request.setAttribute("columnLayout", layout); + request.setAttribute("numberOfColumns", new Integer(numColumns)); + request.setAttribute("decorationFactory", this.decorators); + request.setAttribute("columnSizes", fragmentColumnSizesList); +- request.setAttribute("editing",editing); +- request.setAttribute("fragmentNestingLevel",new Integer(getFragmentNestingLevel(requestPage,f.getId()))); ++ request.setAttribute("editing", editing); ++ request.setAttribute("fragmentNestingLevel", new Integer(getFragmentNestingLevel(requestPage, f.getId()))); + super.doView(request, response); + request.removeAttribute("decorationFactory"); + request.removeAttribute("columnLayout"); +@@ -176,794 +213,956 @@ + request.removeAttribute(("fragmentNestingLevel")); + } + +- public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException ++ protected void addLayout(ActionRequest request, ActionResponse response) throws PortletException + { +- RequestContext requestContext = (RequestContext)request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); +- +- ContentPage requestPage = requestContext.getPage(); +- PageEditAccess pageEditAccess = (PageEditAccess)requestContext.getAttribute(PortalReservedParameters.PAGE_EDIT_ACCESS_ATTRIBUTE); +- if ( requestPage == null || pageEditAccess == null ) ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ContentPage requestPage = requestContext.getPage(); ++ String layout = request.getParameter("layout"); ++ if (layout != null && layout.length() > 0) + { +- // Targetting this portlet with an ActionRequest REQUIRES that the ProfilerValve has been invoked! +- throw new PortletException("Current request page or PageEditAccess not available."); ++ PortletWindow window = requestContext.getActionWindow(); ++ ContentFragment targetFragment = requestPage.getContentFragmentById(window.getId().toString()); ++ ++ if (targetFragment == null) ++ { ++ // ignore no longer consistent page definition ++ return; ++ } ++ ++ try ++ { ++ Fragment fragment = pageManager.newFragment(); ++ fragment.setType(Fragment.LAYOUT); ++ fragment.setName(layout); ++ ++ targetFragment.getFragments().add(fragment); ++ pageManager.updatePage(requestPage); ++ } ++ catch (Exception e) ++ { ++ throw new PortletException("failed to add portlet " + layout + " to page: " + requestPage + ": " + e.getMessage(), ++ e); ++ } + } +- +- String pageMode = request.getParameter("pageMode"); +- if ( pageMode != null ) ++ ++ } ++ ++ protected void changeLayout(ActionRequest request, ActionResponse response) throws PortletException ++ { ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ContentPage requestPage = requestContext.getPage(); ++ String layout = request.getParameter("layout"); ++ if (layout != null && layout.length() > 0) + { +- if ( "view".equals(pageMode) ) ++ PortletWindow window = requestContext.getActionWindow(); ++ ContentFragment targetFragment = requestPage.getContentFragmentById(window.getId().toString()); ++ ++ if (targetFragment == null) + { +- pageEditAccess.setEditing(false); ++ // ignore no longer consistent page definition ++ return; + } +- else if ( "edit".equals(pageMode) && pageEditAccess.isEditAllowed() ) ++ ++ if (!layout.equals(targetFragment.getName())) + { +- if ( this.editorType != null && this.editorType.equals( "desktop" ) ) ++ try + { +- String redirectUrl = this.desktop.getPortalUrl( requestContext, requestContext.getPath() ); +- redirectUrl += "?editPage=true&portal=true"; +- response.sendRedirect( redirectUrl ); ++ // layout portlet change ++ targetFragment.setName(layout); ++ pageManager.updatePage(requestPage); ++ entityAccess.updatePortletEntity(window.getPortletEntity(), targetFragment); ++ entityAccess.storePortletEntity(window.getPortletEntity()); ++ ++ windowAccess.createPortletWindow(window.getPortletEntity(), targetFragment.getId()); ++ return; + } +- else ++ catch (Exception e) + { +- pageEditAccess.setEditing(true); ++ throw new PortletException("Unable to update page: " + e.getMessage(), e); + } + } +- return; + } +- +- if ( pageEditAccess.isEditAllowed() && request.isPortletModeAllowed(PortletMode.EDIT) ) ++ ++ } ++ ++ protected void addPage(ActionRequest request, ActionResponse response) throws PortletException ++ { ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ContentPage requestPage = requestContext.getPage(); ++ ++ String jsPageName = request.getParameter("jsNewPageName"); ++ String jsPageTitle = request.getParameter("jsNewPageTitle"); ++ String jsPageShortTitle = request.getParameter("jsNewPageShortTitle"); ++ if (jsPageName != null && jsPageName.length() > 0 && jsPageName.indexOf(Folder.PATH_SEPARATOR) == -1) + { +- String layout = null; +- +- boolean addLayout = request.getParameter("jsAddLayout") != null; +- if ( addLayout || request.getParameter("jsChangeLayout") != null ) ++ try + { +- layout = request.getParameter("layout"); +- if ( layout != null && layout.length() > 0 ) ++ Folder parent = (Folder) requestPage.getParent(); ++ if (parent != null) + { +- PortletWindow window = requestContext.getActionWindow(); +- ContentFragment targetFragment = requestPage.getContentFragmentById(window.getId().toString()); +- +- if ( targetFragment == null ) ++ String path = parent.getPath(); ++ if (path.endsWith(Folder.PATH_SEPARATOR)) + { +- // ignore no longer consistent page definition +- return; ++ path = path + getEscapedName(jsPageName); + } +- +- if ( addLayout ) ++ else + { +- try +- { +- Fragment fragment = pageManager.newFragment(); +- fragment.setType(Fragment.LAYOUT); +- fragment.setName(layout); +- +- targetFragment.getFragments().add(fragment); +- pageManager.updatePage(requestPage); +- } +- catch (Exception e) +- { +- throw new PortletException("failed to add portlet " + layout + " to page: " + requestPage+": "+e.getMessage(), e); +- } ++ path = path + Folder.PATH_SEPARATOR + getEscapedName(jsPageName); + } +- else if ( !layout.equals(targetFragment.getName()) ) ++ Page page = pageManager.newPage(path); ++ String layout = requestPage.getRootFragment().getName(); ++ page.getRootFragment().setName(layout); ++ page.setDefaultDecorator(requestPage.getDefaultDecorator(Fragment.LAYOUT), Fragment.LAYOUT); ++ page.setDefaultDecorator(requestPage.getDefaultDecorator(Fragment.PORTLET), Fragment.PORTLET); ++ page.setTitle(jsPageTitle != null && !jsPageTitle.equals("") ? jsPageTitle : jsPageName); ++ page.setShortTitle(jsPageShortTitle != null && !jsPageShortTitle.equals("") ? jsPageShortTitle : jsPageName); ++ pageManager.updatePage(page); ++ ++ List orderList = parent.getDocumentOrder(); ++ if (orderList != null) + { +- try ++ String name = page.getName(); ++ if (orderList.indexOf(name) < 0) + { +- // layout portlet change +- targetFragment.setName(layout); +- pageManager.updatePage(requestPage); +- entityAccess.updatePortletEntity(window.getPortletEntity(), targetFragment); +- entityAccess.storePortletEntity(window.getPortletEntity()); +- +- windowAccess.createPortletWindow(window.getPortletEntity(), targetFragment.getId()); +- return; ++ orderList.add(name); ++ parent.setDocumentOrder(orderList); ++ pageManager.updateFolder(parent); + } +- catch (Exception e) +- { +- throw new PortletException("Unable to update page: "+e.getMessage(), e); +- } + } + } +- return; + } ++ catch (Exception e) ++ { ++ throw new PortletException("Unable to access page for editing: " + e.getMessage(), e); ++ } ++ } + +- if ( request.getParameter("jsSubmitPage" ) != null ) ++ } ++ ++ protected void updatePage(ActionRequest request, ActionResponse response) throws PortletException ++ { ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ContentPage requestPage = requestContext.getPage(); ++ ++ String jsPageTitle = request.getParameter("jsPageTitle"); ++ String jsPageShortTitle = request.getParameter("jsPageShortTitle"); ++ try ++ { ++ if (jsPageTitle != null && !jsPageTitle.equals("")) + { +- String jsPageName = request.getParameter("jsPageName"); +- String jsPageTitle = request.getParameter("jsPageTitle"); +- String jsPageShortTitle = request.getParameter("jsPageShortTitle"); +- if ( jsPageName != null && jsPageName.length() > 0 && jsPageName.indexOf(Folder.PATH_SEPARATOR) == -1 ) +- { +- try +- { +- Folder parent = (Folder)requestPage.getParent(); +- if (parent != null) +- { +- String path = parent.getPath(); +- if (path.endsWith(Folder.PATH_SEPARATOR)) +- { +- path = path + getEscapedName(jsPageName); +- } +- else +- { +- path = path + Folder.PATH_SEPARATOR +- + getEscapedName(jsPageName); +- } +- Page page = pageManager.newPage(path); +- if ( layout == null || layout.length() == 0 ) +- { +- layout = requestPage.getRootFragment().getName(); +- } +- page.getRootFragment().setName(layout); +- page.setDefaultDecorator(requestPage.getDefaultDecorator(Fragment.LAYOUT), Fragment.LAYOUT); +- page.setDefaultDecorator(requestPage.getDefaultDecorator(Fragment.PORTLET), Fragment.PORTLET); +- page.setTitle(jsPageTitle != null && !jsPageTitle.equals("") ? jsPageTitle : jsPageName); +- page.setShortTitle(jsPageShortTitle != null +- && !jsPageShortTitle.equals("") ? jsPageShortTitle +- : jsPageName); +- pageManager.updatePage(page); +- +- List orderList = parent.getDocumentOrder(); +- if (orderList != null) +- { +- String name = page.getName(); +- if (orderList.indexOf(name) < 0) +- { +- orderList.add(name); +- parent.setDocumentOrder(orderList); +- pageManager.updateFolder(parent); +- } +- } +- } +- } +- catch (Exception e) +- { +- throw new PortletException("Unable to access page for editing: "+e.getMessage(), e); +- } +- } +- return; ++ requestPage.setTitle(jsPageTitle); + } ++ if (jsPageShortTitle != null && !jsPageShortTitle.equals("")) ++ { ++ requestPage.setShortTitle(jsPageShortTitle); ++ } ++ pageManager.updatePage(requestPage); ++ } ++ catch (Exception e) ++ { ++ throw new PortletException("Unable to access page for editing: " + e.getMessage(), e); ++ } + +- if (request.getParameter("jsChangePageName") != null) ++ } ++ ++ protected void deletePage(ActionRequest request, ActionResponse response) throws PortletException ++ { ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ContentPage requestPage = requestContext.getPage(); ++ ++ try ++ { ++ Folder parent = (Folder) requestPage.getParent(); ++ if (parent != null) + { +- String jsPageTitle = request.getParameter("jsPageTitle"); +- String jsPageShortTitle = request +- .getParameter("jsPageShortTitle"); +- try ++ List orderList = parent.getDocumentOrder(); ++ if (orderList != null) + { +- if (jsPageTitle != null && !jsPageTitle.equals("")) ++ String name = requestPage.getName(); ++ if (orderList.indexOf(name) > -1) + { +- requestPage.setTitle(jsPageTitle); ++ orderList.remove(name); ++ parent.setDocumentOrder(orderList); ++ pageManager.updateFolder(parent); + } +- if (jsPageShortTitle != null +- && !jsPageShortTitle.equals("")) +- { +- requestPage.setShortTitle(jsPageShortTitle); +- } +- pageManager.updatePage(requestPage); + } +- catch (Exception e) +- { +- throw new PortletException( +- "Unable to access page for editing: " +- + e.getMessage(), e); +- } +- return; + } + +- if ( request.getParameter("jsDeletePage" ) != null ) ++ pageManager.removePage(requestPage); ++ } ++ catch (Exception e) ++ { ++ throw new PortletException("Unable to access page for removing: " + e.getMessage(), e); ++ } ++ ++ } ++ ++ protected void movePageToLeft(ActionRequest request, ActionResponse response) throws PortletException ++ { ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ContentPage requestPage = requestContext.getPage(); ++ ++ try ++ { ++ Folder parent = (Folder) requestPage.getParent(); ++ if (parent != null) + { +- try ++ List orderList = parent.getDocumentOrder(); ++ String name = requestPage.getName(); ++ if (orderList != null) + { +- Folder parent = (Folder)requestPage.getParent(); +- if (parent != null) ++ int index = orderList.indexOf(name); ++ if (index > -1) + { +- List orderList = parent.getDocumentOrder(); +- if (orderList != null) ++ String type = requestPage.getType(); ++ int i = index - 1; ++ while (i >= 0) + { +- String name = requestPage.getName(); +- if (orderList.indexOf(name) > -1) ++ String value = (String) orderList.get(i); ++ if (value.endsWith(type)) + { +- orderList.remove(name); ++ orderList.remove(index); ++ orderList.add(i, name); + parent.setDocumentOrder(orderList); + pageManager.updateFolder(parent); ++ break; + } ++ i--; + } + } +- +- pageManager.removePage(requestPage); ++ else ++ { ++ orderList.add(name); ++ parent.setDocumentOrder(orderList); ++ pageManager.updateFolder(parent); ++ } + } +- catch (Exception e) ++ else + { +- throw new PortletException("Unable to access page for removing: "+e.getMessage(), e); ++ orderList = new ArrayList(4); ++ orderList.add(name); ++ parent.setDocumentOrder(orderList); ++ pageManager.updateFolder(parent); + } +- return; + } ++ } ++ catch (Exception e) ++ { ++ throw new PortletException("Unable to access page for changing the document order: " + e.getMessage(), e); ++ } + +- if (request.getParameter("jsMovePageLeft") != null) ++ } ++ ++ protected void movePageToRight(ActionRequest request, ActionResponse response) throws PortletException ++ { ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ContentPage requestPage = requestContext.getPage(); ++ ++ try ++ { ++ Folder parent = (Folder) requestPage.getParent(); ++ if (parent != null) + { +- try ++ List orderList = parent.getDocumentOrder(); ++ String name = requestPage.getName(); ++ if (orderList != null) + { +- Folder parent = (Folder) requestPage.getParent(); +- if (parent != null) ++ int index = orderList.indexOf(name); ++ if (index > -1) + { +- List orderList = parent.getDocumentOrder(); +- String name = requestPage.getName(); +- if (orderList != null) ++ String type = requestPage.getType(); ++ int i = index + 1; ++ while (i < orderList.size()) + { +- int index = orderList.indexOf(name); +- if (index > -1) ++ String value = (String) orderList.get(i); ++ if (value.endsWith(type)) + { +- String type = requestPage.getType(); +- int i = index - 1; +- while (i >= 0) +- { +- String value = (String) orderList.get(i); +- if (value.endsWith(type)) +- { +- orderList.remove(index); +- orderList.add(i, name); +- parent.setDocumentOrder(orderList); +- pageManager.updateFolder(parent); +- break; +- } +- i--; +- } +- } +- else +- { +- orderList.add(name); ++ orderList.remove(index); ++ orderList.add(i, name); + parent.setDocumentOrder(orderList); + pageManager.updateFolder(parent); ++ break; + } ++ i++; + } +- else +- { +- orderList = new ArrayList(4); +- orderList.add(name); +- parent.setDocumentOrder(orderList); +- pageManager.updateFolder(parent); +- } + } ++ else ++ { ++ orderList.add(name); ++ parent.setDocumentOrder(orderList); ++ pageManager.updateFolder(parent); ++ } + } +- catch (Exception e) ++ else + { +- throw new PortletException( +- "Unable to access page for changing the document order: " +- + e.getMessage(), e); ++ orderList = new ArrayList(4); ++ orderList.add(name); ++ parent.setDocumentOrder(orderList); ++ pageManager.updateFolder(parent); + } +- return; + } ++ } ++ catch (Exception e) ++ { ++ throw new PortletException("Unable to access page for changing the document order: " + e.getMessage(), e); ++ } + +- if (request.getParameter("jsMovePageRight") != null) ++ } ++ ++ protected void addFolder(ActionRequest request, ActionResponse response) throws PortletException ++ { ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ContentPage requestPage = requestContext.getPage(); ++ ++ String jsFolderName = request.getParameter("jsNewFolderName"); ++ String jsFolderTitle = request.getParameter("jsNewFolderTitle"); ++ String jsFolderShortTitle = request.getParameter("jsNewFolderShortTitle"); ++ if (jsFolderName != null && jsFolderName.length() > 0 && jsFolderName.indexOf(Folder.PATH_SEPARATOR) == -1) ++ { ++ try + { +- try ++ Folder parent = (Folder) requestPage.getParent(); ++ if (parent != null) + { +- Folder parent = (Folder) requestPage.getParent(); +- if (parent != null) ++ String path = parent.getPath(); ++ if (path.endsWith(Folder.PATH_SEPARATOR)) + { +- List orderList = parent.getDocumentOrder(); +- String name = requestPage.getName(); +- if (orderList != null) ++ path = path + getEscapedName(jsFolderName); ++ } ++ else ++ { ++ path = path + Folder.PATH_SEPARATOR + getEscapedName(jsFolderName); ++ } ++ Folder folder = pageManager.newFolder(path); ++ String layout = requestPage.getRootFragment().getName(); ++ folder.setDefaultDecorator(requestPage.getDefaultDecorator(Fragment.LAYOUT), Fragment.LAYOUT); ++ folder.setDefaultDecorator(requestPage.getDefaultDecorator(Fragment.PORTLET), Fragment.PORTLET); ++ folder.setTitle(jsFolderTitle != null && !jsFolderTitle.equals("") ? jsFolderTitle : jsFolderName); ++ folder.setShortTitle(jsFolderShortTitle != null && !jsFolderShortTitle.equals("") ? jsFolderShortTitle ++ : jsFolderName); ++ pageManager.updateFolder(folder); ++ ++ List orderList = parent.getDocumentOrder(); ++ if (orderList != null) ++ { ++ String name = folder.getName(); ++ if (orderList.indexOf(name) < 0) + { +- int index = orderList.indexOf(name); +- if (index > -1) +- { +- String type = requestPage.getType(); +- int i = index + 1; +- while (i < orderList.size()) +- { +- String value = (String) orderList.get(i); +- if (value.endsWith(type)) +- { +- orderList.remove(index); +- orderList.add(i, name); +- parent.setDocumentOrder(orderList); +- pageManager.updateFolder(parent); +- break; +- } +- i++; +- } +- } +- else +- { +- orderList.add(name); +- parent.setDocumentOrder(orderList); +- pageManager.updateFolder(parent); +- } +- } +- else +- { +- orderList = new ArrayList(4); + orderList.add(name); + parent.setDocumentOrder(orderList); + pageManager.updateFolder(parent); + } + } +- } +- catch (Exception e) +- { +- throw new PortletException( +- "Unable to access page for changing the document order: " +- + e.getMessage(), e); +- } +- return; +- } + +- if (request.getParameter("jsSubmitFolder") != null) +- { +- String jsFolderName = request.getParameter("jsFolderName"); +- String jsFolderTitle = request.getParameter("jsFolderTitle"); +- String jsFolderShortTitle = request.getParameter("jsFolderShortTitle"); +- if (jsFolderName != null && jsFolderName.length() > 0 +- && jsFolderName.indexOf(Folder.PATH_SEPARATOR) == -1) +- { +- try ++ // add default page ++ path = folder.getPath(); ++ if (path.endsWith(Folder.PATH_SEPARATOR)) + { +- Folder parent = (Folder) requestPage.getParent(); +- if (parent != null) ++ path = path + getEscapedName("default-page"); ++ } ++ else ++ { ++ path = path + Folder.PATH_SEPARATOR + getEscapedName("default-page"); ++ } ++ Page page = pageManager.newPage(path); ++ if (layout == null || layout.length() == 0) ++ { ++ layout = requestPage.getRootFragment().getName(); ++ } ++ page.getRootFragment().setName(layout); ++ page.setDefaultDecorator(requestPage.getDefaultDecorator(Fragment.LAYOUT), Fragment.LAYOUT); ++ page.setDefaultDecorator(requestPage.getDefaultDecorator(Fragment.PORTLET), Fragment.PORTLET); ++ page.setTitle(jsFolderName); ++ pageManager.updatePage(page); ++ ++ orderList = folder.getDocumentOrder(); ++ if (orderList != null) ++ { ++ String name = page.getName(); ++ if (orderList.indexOf(name) < 0) + { +- String path = parent.getPath(); +- if (path.endsWith(Folder.PATH_SEPARATOR)) +- { +- path = path + getEscapedName(jsFolderName); +- } +- else +- { +- path = path + Folder.PATH_SEPARATOR +- + getEscapedName(jsFolderName); +- } +- Folder folder = pageManager.newFolder(path); +- if (layout == null || layout.length() == 0) +- { +- layout = requestPage.getRootFragment() +- .getName(); +- } +- folder.setDefaultDecorator(requestPage +- .getDefaultDecorator(Fragment.LAYOUT), +- Fragment.LAYOUT); +- folder.setDefaultDecorator(requestPage +- .getDefaultDecorator(Fragment.PORTLET), +- Fragment.PORTLET); +- folder +- .setTitle(jsFolderTitle != null +- && !jsFolderTitle.equals("") ? jsFolderTitle +- : jsFolderName); +- folder +- .setShortTitle(jsFolderShortTitle != null +- && !jsFolderShortTitle.equals("") ? jsFolderShortTitle +- : jsFolderName); ++ orderList.add(name); ++ folder.setDocumentOrder(orderList); + pageManager.updateFolder(folder); +- +- List orderList = parent.getDocumentOrder(); +- if (orderList != null) +- { +- String name = folder.getName(); +- if (orderList.indexOf(name) < 0) +- { +- orderList.add(name); +- parent.setDocumentOrder(orderList); +- pageManager.updateFolder(parent); +- } +- } +- +- // add default page +- path = folder.getPath(); +- if (path.endsWith(Folder.PATH_SEPARATOR)) +- { +- path = path + getEscapedName("default-page"); +- } +- else +- { +- path = path + Folder.PATH_SEPARATOR +- + getEscapedName("default-page"); +- } +- Page page = pageManager.newPage(path); +- if (layout == null || layout.length() == 0) +- { +- layout = requestPage.getRootFragment() +- .getName(); +- } +- page.getRootFragment().setName(layout); +- page.setDefaultDecorator(requestPage +- .getDefaultDecorator(Fragment.LAYOUT), +- Fragment.LAYOUT); +- page.setDefaultDecorator(requestPage +- .getDefaultDecorator(Fragment.PORTLET), +- Fragment.PORTLET); +- page.setTitle(jsFolderName); +- pageManager.updatePage(page); +- +- orderList = folder.getDocumentOrder(); +- if (orderList != null) +- { +- String name = page.getName(); +- if (orderList.indexOf(name) < 0) +- { +- orderList.add(name); +- folder.setDocumentOrder(orderList); +- pageManager.updateFolder(folder); +- } +- } + } + } +- catch (Exception e) +- { +- throw new PortletException( +- "Unable to access folder for editing: " +- + e.getMessage(), e); +- } + } +- return; + } ++ catch (Exception e) ++ { ++ throw new PortletException("Unable to access folder for editing: " + e.getMessage(), e); ++ } ++ } + +- if (request.getParameter("jsChangeFolderName") != null) ++ } ++ ++ protected void updateFolder(ActionRequest request, ActionResponse response) throws PortletException ++ { ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ContentPage requestPage = requestContext.getPage(); ++ ++ String jsFolderTitle = request.getParameter("jsFolderTitle"); ++ String jsFolderShortTitle = request.getParameter("jsFolderShortTitle"); ++ try ++ { ++ Folder parent = (Folder) requestPage.getParent(); ++ if (parent != null) + { +- String jsFolderTitle = request.getParameter("jsFolderTitle"); +- String jsFolderShortTitle = request +- .getParameter("jsFolderShortTitle"); +- try ++ if (jsFolderTitle != null && !jsFolderTitle.equals("")) + { +- Folder parent = (Folder) requestPage.getParent(); +- if (parent != null) +- { +- if (jsFolderTitle != null && !jsFolderTitle.equals("")) +- { +- parent.setTitle(jsFolderTitle); +- } +- if (jsFolderShortTitle != null +- && !jsFolderShortTitle.equals("")) +- { +- parent.setShortTitle(jsFolderShortTitle); +- } +- pageManager.updateFolder(parent); +- } +- ++ parent.setTitle(jsFolderTitle); + } +- catch (Exception e) ++ if (jsFolderShortTitle != null && !jsFolderShortTitle.equals("")) + { +- throw new PortletException( +- "Unable to access folder for editing: " +- + e.getMessage(), e); ++ parent.setShortTitle(jsFolderShortTitle); + } +- return; ++ pageManager.updateFolder(parent); + } +- +- if (request.getParameter("jsDeleteFolder") != null) ++ ++ } ++ catch (Exception e) ++ { ++ throw new PortletException("Unable to access folder for editing: " + e.getMessage(), e); ++ } ++ ++ } ++ ++ protected void deleteFolder(ActionRequest request, ActionResponse response) throws PortletException ++ { ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ContentPage requestPage = requestContext.getPage(); ++ ++ try ++ { ++ Folder targetFolder = (Folder) requestPage.getParent(); ++ Folder parent = (Folder) targetFolder.getParent(); ++ if (parent != null) + { +- try ++ List orderList = parent.getDocumentOrder(); ++ if (orderList != null) + { +- Folder targetFolder = (Folder) requestPage.getParent(); +- Folder parent = (Folder) targetFolder.getParent(); +- if (parent != null) ++ String name = targetFolder.getName(); ++ if (orderList.indexOf(name) > -1) + { +- List orderList = parent.getDocumentOrder(); +- if (orderList != null) +- { +- String name = targetFolder.getName(); +- if (orderList.indexOf(name) > -1) +- { +- orderList.remove(name); +- parent.setDocumentOrder(orderList); +- pageManager.updateFolder(parent); +- } +- } +- +- // do not remove if the folder is root. +- pageManager.removeFolder(targetFolder); ++ orderList.remove(name); ++ parent.setDocumentOrder(orderList); ++ pageManager.updateFolder(parent); + } + } +- catch (Exception e) +- { +- throw new PortletException( +- "Unable to access folder for removing: " +- + e.getMessage(), e); +- } +- return; ++ ++ // do not remove if the folder is root. ++ pageManager.removeFolder(targetFolder); + } ++ } ++ catch (Exception e) ++ { ++ throw new PortletException("Unable to access folder for removing: " + e.getMessage(), e); ++ } + +- if (request.getParameter("jsMoveFolderLeft") != null) ++ } ++ ++ protected void moveFolderToLeft(ActionRequest request, ActionResponse response) throws PortletException ++ { ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ContentPage requestPage = requestContext.getPage(); ++ ++ try ++ { ++ Folder targetFolder = (Folder) requestPage.getParent(); ++ Folder parent = (Folder) targetFolder.getParent(); ++ if (parent != null) + { +- try ++ List orderList = parent.getDocumentOrder(); ++ String name = targetFolder.getName(); ++ if (orderList != null) + { +- Folder targetFolder = (Folder) requestPage.getParent(); +- Folder parent = (Folder) targetFolder.getParent(); +- if (parent != null) ++ int index = orderList.indexOf(name); ++ if (index > -1) + { +- List orderList = parent.getDocumentOrder(); +- String name = targetFolder.getName(); +- if (orderList != null) ++ int i = index - 1; ++ while (i >= 0) + { +- int index = orderList.indexOf(name); +- if (index > -1) ++ String value = (String) orderList.get(i); ++ if (!value.endsWith(".psml") && !value.endsWith(".link")) + { +- int i = index - 1; +- while (i >= 0) +- { +- String value = (String) orderList.get(i); +- if (!value.endsWith(".psml") +- && !value.endsWith(".link")) +- { +- orderList.remove(index); +- orderList.add(i, name); +- parent.setDocumentOrder(orderList); +- pageManager.updateFolder(parent); +- break; +- } +- i--; +- } +- } +- else +- { +- orderList.add(name); ++ orderList.remove(index); ++ orderList.add(i, name); + parent.setDocumentOrder(orderList); + pageManager.updateFolder(parent); ++ break; + } ++ i--; + } +- else +- { +- orderList = new ArrayList(4); +- orderList.add(name); +- parent.setDocumentOrder(orderList); +- pageManager.updateFolder(parent); +- } + } ++ else ++ { ++ orderList.add(name); ++ parent.setDocumentOrder(orderList); ++ pageManager.updateFolder(parent); ++ } + } +- catch (Exception e) ++ else + { +- throw new PortletException( +- "Unable to access folder for changing the document order: " +- + e.getMessage(), e); ++ orderList = new ArrayList(4); ++ orderList.add(name); ++ parent.setDocumentOrder(orderList); ++ pageManager.updateFolder(parent); + } +- return; + } ++ } ++ catch (Exception e) ++ { ++ throw new PortletException("Unable to access folder for changing the document order: " + e.getMessage(), e); ++ } + +- if (request.getParameter("jsMoveFolderRight") != null) ++ } ++ ++ protected void moveFolderToRight(ActionRequest request, ActionResponse response) throws PortletException ++ { ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ContentPage requestPage = requestContext.getPage(); ++ ++ try ++ { ++ Folder targetFolder = (Folder) requestPage.getParent(); ++ Folder parent = (Folder) targetFolder.getParent(); ++ if (parent != null) + { +- try ++ List orderList = parent.getDocumentOrder(); ++ String name = targetFolder.getName(); ++ if (orderList != null) + { +- Folder targetFolder = (Folder) requestPage.getParent(); +- Folder parent = (Folder) targetFolder.getParent(); +- if (parent != null) ++ int index = orderList.indexOf(name); ++ if (index > -1) + { +- List orderList = parent.getDocumentOrder(); +- String name = targetFolder.getName(); +- if (orderList != null) ++ int i = index + 1; ++ while (i < orderList.size()) + { +- int index = orderList.indexOf(name); +- if (index > -1) ++ String value = (String) orderList.get(i); ++ if (!value.endsWith(".psml") && !value.endsWith(".link")) + { +- int i = index + 1; +- while (i < orderList.size()) +- { +- String value = (String) orderList.get(i); +- if (!value.endsWith(".psml") +- && !value.endsWith(".link")) +- { +- orderList.remove(index); +- orderList.add(i, name); +- parent.setDocumentOrder(orderList); +- pageManager.updateFolder(parent); +- break; +- } +- i++; +- } +- } +- else +- { +- orderList.add(name); ++ orderList.remove(index); ++ orderList.add(i, name); + parent.setDocumentOrder(orderList); + pageManager.updateFolder(parent); ++ break; + } ++ i++; + } +- else +- { +- orderList = new ArrayList(4); +- orderList.add(name); +- parent.setDocumentOrder(orderList); +- pageManager.updateFolder(parent); +- } + } ++ else ++ { ++ orderList.add(name); ++ parent.setDocumentOrder(orderList); ++ pageManager.updateFolder(parent); ++ } + } +- catch (Exception e) ++ else + { +- throw new PortletException( +- "Unable to access folder for changing the document order: " +- + e.getMessage(), e); ++ orderList = new ArrayList(4); ++ orderList.add(name); ++ parent.setDocumentOrder(orderList); ++ pageManager.updateFolder(parent); + } ++ } ++ } ++ catch (Exception e) ++ { ++ throw new PortletException("Unable to access folder for changing the document order: " + e.getMessage(), e); ++ } ++ ++ } ++ ++ protected void updateDefaultLayoutDecorator(ActionRequest request, ActionResponse response) throws PortletException ++ { ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ContentPage requestPage = requestContext.getPage(); ++ ++ String theme = request.getParameter("theme"); ++ ++ requestPage.setDefaultDecorator(theme, Fragment.LAYOUT); ++ try ++ { ++ pageManager.updatePage(requestPage); ++ } ++ catch (Exception e) ++ { ++ throw new PortletException("Unable to update page: " + e.getMessage(), e); ++ } ++ } ++ ++ protected void moveFragment(ActionRequest request, ActionResponse response) throws PortletException ++ { ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ContentPage requestPage = requestContext.getPage(); ++ ++ String fragmentId = request.getParameter("fragment"); ++ String move = request.getParameter("move"); ++ ++ int moveCode = Integer.parseInt(move); ++ PortletWindow window = requestContext.getActionWindow(); ++ Fragment currentFragment = requestPage.getFragmentById(window.getId().toString()); ++ Fragment fragmentToMove = requestPage.getFragmentById(fragmentId); ++ ++ if (currentFragment == null || fragmentToMove == null) ++ { ++ // ignore no longer consistent page definition ++ return; ++ } ++ ++ ColumnLayout columnLayout; ++ try ++ { ++ columnLayout = new ColumnLayout(numColumns, layoutType, currentFragment.getFragments(), null); ++ columnLayout.addLayoutEventListener(new PageManagerLayoutEventListener(pageManager, requestPage, layoutType)); ++ } ++ catch (LayoutEventException e1) ++ { ++ throw new PortletException("Failed to build ColumnLayout " + e1.getMessage(), e1); ++ } ++ ++ try ++ { ++ switch (moveCode) ++ { ++ case LayoutEvent.MOVED_UP: ++ columnLayout.moveUp(fragmentToMove); ++ break; ++ case LayoutEvent.MOVED_DOWN: ++ columnLayout.moveDown(fragmentToMove); ++ break; ++ case LayoutEvent.MOVED_RIGHT: ++ columnLayout.moveRight(fragmentToMove); ++ break; ++ case LayoutEvent.MOVED_LEFT: ++ columnLayout.moveLeft(fragmentToMove); ++ break; ++ default: ++ throw new PortletException("Invalid movement code " + moveCode); ++ } ++ ++ } ++ catch (SecurityException se) ++ { ++ // ignore page security constraint violations, only ++ // permitted users can edit managed pages; page ++ // update will remain transient ++ log.info("Unable to update page " + requestPage.getId() + " layout due to security permission/constraint.", se); ++ } ++ catch (Exception e) ++ { ++ if (e instanceof PortletException) ++ { ++ throw (PortletException) e; ++ } ++ else ++ { ++ throw new PortletException("Unable to process layout for page " + requestPage.getId() + " layout: " + e.toString(), ++ e); ++ } ++ } ++ ++ } ++ ++ protected void removeFragment(ActionRequest request, ActionResponse response) throws PortletException ++ { ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ContentPage requestPage = requestContext.getPage(); ++ ++ String fragmentId = request.getParameter("fragment"); ++ ++ Page page = null; ++ try ++ { ++ // TODO: for now retrieve the real Page instead of ContentPage ++ // because removing fragments isn't working through the ContentFragment wrapping ++ page = pageManager.getPage(requestPage.getPath()); ++ } ++ catch (Exception e) ++ { ++ throw new PortletException("Unable to retrieve page " + requestPage.getId(), e); ++ } ++ ++ PortletWindow window = requestContext.getActionWindow(); ++ Fragment currentFragment = page.getFragmentById(window.getId().toString()); ++ ++ if (currentFragment == null) ++ { ++ // ignore no longer consistent page definition ++ return; ++ } ++ ++ removeFragment(page, currentFragment, fragmentId); ++ ++ } ++ ++ protected void updateFragmentDecorator(ActionRequest request, ActionResponse response) throws PortletException ++ { ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ContentPage requestPage = requestContext.getPage(); ++ ++ String fragmentId = request.getParameter("fragment"); ++ String decorator = request.getParameter("decorator"); ++ ++ Fragment fragment = requestPage.getFragmentById(fragmentId); ++ ++ if (fragment == null) ++ { ++ // ignore no longer consistent page definition ++ return; ++ } ++ ++ if (decorator.trim().length() == 0) ++ fragment.setDecorator(null); ++ else ++ fragment.setDecorator(decorator); ++ try ++ { ++ pageManager.updatePage(requestPage); ++ } ++ catch (Exception e) ++ { ++ throw new PortletException("Unable to update page for fragment decorator: " + e.getMessage(), e); ++ } ++ ++ } ++ ++ protected void updateFragmentDecorators(ActionRequest request, ActionResponse response) throws PortletException ++ { ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ContentPage requestPage = requestContext.getPage(); ++ ++ String decorators = request.getParameter("decorators"); ++ ++ Iterator fragmentsIter = requestPage.getRootFragment().getFragments().iterator(); ++ while (fragmentsIter.hasNext()) ++ { ++ Fragment fragment = (Fragment) fragmentsIter.next(); ++ if (fragment == null) ++ { ++ // ignore no longer consistent page definition + return; + } + +- String theme = request.getParameter("theme"); +- if ( theme != null && theme.length() > 0 && !theme.equals(requestPage.getDefaultDecorator(Fragment.LAYOUT)) ) ++ if (decorators.trim().length() == 0) ++ fragment.setDecorator(null); ++ else ++ fragment.setDecorator(decorators); ++ } ++ try ++ { ++ pageManager.updatePage(requestPage); ++ } ++ catch (Exception e) ++ { ++ throw new PortletException("Unable to update page for fragment decorator: " + e.getMessage(), e); ++ } ++ ++ } ++ ++ protected void updatePreferenceWindowState(ActionRequest request, ActionResponse response) ++ { ++ String prefName = request.getParameter("preferenceName"); ++ if (prefName != null) ++ { ++ response.setRenderParameter("preferenceName", prefName); ++ } ++ String prefState = request.getParameter("preferenceState"); ++ if (prefState != null) ++ { ++ response.setRenderParameter("preferenceState", prefState); ++ } ++ } ++ ++ public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException ++ { ++ // pass preferenceName and preferenceState to render ++ updatePreferenceWindowState(request, response); ++ ++ RequestContext requestContext = (RequestContext) request.getAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE); ++ ++ ContentPage requestPage = requestContext.getPage(); ++ PageEditAccess pageEditAccess = (PageEditAccess) requestContext ++ .getAttribute(PortalReservedParameters.PAGE_EDIT_ACCESS_ATTRIBUTE); ++ if (requestPage == null || pageEditAccess == null) ++ { ++ // Targetting this portlet with an ActionRequest REQUIRES that the ProfilerValve has been invoked! ++ throw new PortletException("Current request page or PageEditAccess not available."); ++ } ++ ++ String pageMode = request.getParameter("pageMode"); ++ if (pageMode != null) ++ { ++ if ("view".equals(pageMode)) + { +- requestPage.setDefaultDecorator(theme, Fragment.LAYOUT); +- try ++ pageEditAccess.setEditing(false); ++ } ++ else if ("edit".equals(pageMode) && pageEditAccess.isEditAllowed()) ++ { ++ if (this.editorType != null && this.editorType.equals("desktop")) + { +- pageManager.updatePage(requestPage); ++ String redirectUrl = this.desktop.getPortalUrl(requestContext, requestContext.getPath()); ++ redirectUrl += "?editPage=true&portal=true"; ++ response.sendRedirect(redirectUrl); + } +- catch (Exception e) ++ else + { +- throw new PortletException("Unable to update page: "+e.getMessage(), e); ++ pageEditAccess.setEditing(true); + } ++ } ++ return; ++ } ++ ++ if (pageEditAccess.isEditAllowed() && request.isPortletModeAllowed(PortletMode.EDIT)) ++ { ++ ++ // Add Layout ++ if (request.getParameter("jsAddLayout") != null) ++ { ++ addLayout(request, response); + return; + } +- ++ ++ // Change Layout ++ if (request.getParameter("jsChangeLayout") != null) ++ { ++ changeLayout(request, response); ++ return; ++ } ++ ++ // Add Page ++ if (request.getParameter("jsSubmitPage") != null) ++ { ++ addPage(request, response); ++ return; ++ } ++ ++ // Update Page ++ if (request.getParameter("jsChangePageName") != null) ++ { ++ updatePage(request, response); ++ return; ++ } ++ ++ // Delete Page ++ if (request.getParameter("jsDeletePage") != null) ++ { ++ deletePage(request, response); ++ return; ++ } ++ ++ // Move Page To Left ++ if (request.getParameter("jsMovePageLeft") != null) ++ { ++ movePageToLeft(request, response); ++ return; ++ } ++ ++ // Move Page To Right ++ if (request.getParameter("jsMovePageRight") != null) ++ { ++ movePageToRight(request, response); ++ return; ++ } ++ ++ // Add Folder ++ if (request.getParameter("jsSubmitFolder") != null) ++ { ++ addFolder(request, response); ++ return; ++ } ++ ++ // Update Folder ++ if (request.getParameter("jsChangeFolderName") != null) ++ { ++ updateFolder(request, response); ++ return; ++ } ++ ++ // Delete Folder ++ if (request.getParameter("jsDeleteFolder") != null) ++ { ++ deleteFolder(request, response); ++ return; ++ } ++ ++ // Move Folder To Left ++ if (request.getParameter("jsMoveFolderLeft") != null) ++ { ++ moveFolderToLeft(request, response); ++ return; ++ } ++ ++ // Move Folder To Right ++ if (request.getParameter("jsMoveFolderRight") != null) ++ { ++ moveFolderToRight(request, response); ++ return; ++ } ++ ++ // Update Default Layout Decorator ++ String theme = request.getParameter("theme"); ++ if (theme != null && theme.length() > 0 && !theme.equals(requestPage.getDefaultDecorator(Fragment.LAYOUT))) ++ { ++ updateDefaultLayoutDecorator(request, response); ++ return; ++ } ++ + String fragmentId = request.getParameter("fragment"); +- if ( fragmentId != null && fragmentId.length() > 0 ) ++ if (fragmentId != null && fragmentId.length() > 0) + { + String move = request.getParameter("move"); +- if ( move != null && move.length() > 0 ) ++ if (move != null && move.length() > 0) + { +- int moveCode = Integer.parseInt(move); +- PortletWindow window = requestContext.getActionWindow(); +- Fragment currentFragment = requestPage.getFragmentById(window.getId().toString()); +- Fragment fragmentToMove = requestPage.getFragmentById(fragmentId); +- +- if ( currentFragment == null || fragmentToMove == null ) +- { +- // ignore no longer consistent page definition +- return; +- } +- +- ColumnLayout columnLayout; +- try +- { +- columnLayout = new ColumnLayout(numColumns, layoutType, currentFragment.getFragments(), null); +- columnLayout.addLayoutEventListener(new PageManagerLayoutEventListener(pageManager, requestPage, layoutType)); +- } +- catch (LayoutEventException e1) +- { +- throw new PortletException("Failed to build ColumnLayout "+e1.getMessage(), e1); +- } +- +- try +- { +- switch (moveCode) +- { +- case LayoutEvent.MOVED_UP: +- columnLayout.moveUp(fragmentToMove); +- break; +- case LayoutEvent.MOVED_DOWN: +- columnLayout.moveDown(fragmentToMove); +- break; +- case LayoutEvent.MOVED_RIGHT: +- columnLayout.moveRight(fragmentToMove); +- break; +- case LayoutEvent.MOVED_LEFT: +- columnLayout.moveLeft(fragmentToMove); +- break; +- default: +- throw new PortletException("Invalid movement code " + moveCode); +- } +- +- } +- catch (SecurityException se) +- { +- // ignore page security constraint violations, only +- // permitted users can edit managed pages; page +- // update will remain transient +- log.info("Unable to update page " + requestPage.getId() + " layout due to security permission/constraint.", se); +- } +- catch (Exception e) +- { +- if (e instanceof PortletException) +- { +- throw (PortletException)e; +- } +- else +- { +- throw new PortletException("Unable to process layout for page " + requestPage.getId() + " layout: " + e.toString(), e); +- } +- } ++ // Move Fragment ++ moveFragment(request, response); + return; + } +- ++ + String remove = request.getParameter("remove"); +- if ( remove != null && remove.length() > 0 ) ++ if (remove != null && remove.length() > 0) + { +- Page page = null; +- try +- { +- // TODO: for now retrieve the real Page instead of ContentPage +- // because removing fragments isn't working through the ContentFragment wrapping +- page = pageManager.getPage(requestPage.getPath()); +- } +- catch (Exception e) +- { +- throw new PortletException("Unable to retrieve page "+requestPage.getId(),e); +- } +- +- PortletWindow window = requestContext.getActionWindow(); +- Fragment currentFragment = page.getFragmentById(window.getId().toString()); +- +- if ( currentFragment == null ) +- { +- // ignore no longer consistent page definition +- return; +- } +- +- removeFragment(page, currentFragment, fragmentId); ++ // Remove Fragment ++ removeFragment(request, response); + return; + } +- ++ + String decorator = request.getParameter("decorator"); +- if ( decorator != null ) ++ if (decorator != null) + { +- Fragment fragment = requestPage.getFragmentById(fragmentId); +- +- if ( fragment == null ) +- { +- // ignore no longer consistent page definition +- return; +- } +- +- if (decorator.trim().length() == 0) +- fragment.setDecorator(null); +- else +- fragment.setDecorator(decorator); +- try +- { +- pageManager.updatePage(requestPage); +- } +- catch (Exception e) +- { +- throw new PortletException("Unable to update page for fragment decorator: "+e.getMessage(), e); +- } ++ // Update Fragment Decorator ++ updateFragmentDecorator(request, response); + return; + } + // evlach + String decorators = request.getParameter("decorators"); +- if ( decorators != null ) ++ if (decorators != null) + { +- Iterator fragmentsIter = requestPage.getRootFragment().getFragments().iterator(); +- while(fragmentsIter.hasNext()) +- { +- Fragment fragment = (Fragment) fragmentsIter.next(); +- if ( fragment == null ) +- { +- // ignore no longer consistent page definition +- return; +- } +- +- if (decorators.trim().length() == 0) +- fragment.setDecorator(null); +- else +- fragment.setDecorator(decorators); +- } +- try +- { +- pageManager.updatePage(requestPage); +- } +- catch (Exception e) +- { +- throw new PortletException("Unable to update page for fragment decorator: "+e.getMessage(), e); +- } ++ updateFragmentDecorators(request, response); + return; +- } ++ } + //end evlach + } +- ++ + String portlets = request.getParameter("portlets"); +- if ( portlets != null && portlets.length() > 0 ) ++ if (portlets != null && portlets.length() > 0) + { + PortletWindow window = requestContext.getActionWindow(); + Fragment targetFragment = requestPage.getFragmentById(window.getId().toString()); + +- if ( targetFragment == null ) ++ if (targetFragment == null) + { + // ignore no longer consistent page definition + return; + } +- +- StringTokenizer tokenizer = new StringTokenizer(portlets, ","); ++ ++ StringTokenizer tokenizer = new StringTokenizer(portlets, ","); + while (tokenizer.hasMoreTokens()) + { + String portlet = tokenizer.nextToken(); + if (portlet.startsWith("box_")) + { +- portlet = portlet.substring("box_".length()); ++ portlet = portlet.substring("box_".length()); + addPortletToPage(requestPage, targetFragment, portlet); + } + } +@@ -971,11 +1170,11 @@ + } + } + } +- ++ + protected int getFragmentNestingLevel(Page page, String fragmentId) + { + Fragment root = page.getRootFragment(); +- if ( root.getId().equals(fragmentId) ) ++ if (root.getId().equals(fragmentId)) + { + return 0; + } +@@ -984,23 +1183,23 @@ + return getFragmentNestingLevel(root, 1, fragmentId); + } + } +- ++ + protected int getFragmentNestingLevel(Fragment parent, int level, String fragmentId) + { + Iterator iter = parent.getFragments().iterator(); + Fragment child; + int childLevel; +- while ( iter.hasNext() ) ++ while (iter.hasNext()) + { +- child = (Fragment)iter.next(); ++ child = (Fragment) iter.next(); + if (child.getId().equals(fragmentId)) + { + return level; + } + else + { +- childLevel = getFragmentNestingLevel(child, level+1, fragmentId); +- if ( childLevel != -1 ) ++ childLevel = getFragmentNestingLevel(child, level + 1, fragmentId); ++ if (childLevel != -1) + { + return childLevel; + } Property changes on: pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/MultiColumnPortlet.java ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/portal/patches/src/webapp/WEB-INF/jetspeed_macros.vm =================================================================== --- pal-portal/trunk/portal/patches/src/webapp/WEB-INF/jetspeed_macros.vm 2007-05-22 08:12:11 UTC (rev 155) +++ pal-portal/trunk/portal/patches/src/webapp/WEB-INF/jetspeed_macros.vm 2007-05-25 03:26:45 UTC (rev 156) @@ -0,0 +1,29 @@ +Index: src/webapp/WEB-INF/jetspeed_macros.vm +=================================================================== +--- src/webapp/WEB-INF/jetspeed_macros.vm (リビジョン 539124) ++++ src/webapp/WEB-INF/jetspeed_macros.vm (作業コピー) +@@ -134,13 +134,18 @@ + Dispalys the standard action bar for this page. + *# + #macro (PageActionBar) +- #set($_actions = $layoutDecoration.actions) +-
      +- #if($_actions.size() >0) +- #foreach ($_action in $_actions) +- ${_action.Alt} ++ #set($_actions = $layoutDecoration.actions) ++
      ++ #if($_actions.size() >0) ++ ++ #if($allowAddPortlet) ++#set ($chooser = "${jetspeed.basePath}/system/customizer/selector.psml?jspage=${profiledPage}&jslayoutid=$myFragment.id") ++ $messages.getString("portal.page.editing.addportlet") ++ #end ++ #foreach ($_action in $_actions) ++ ${_action.Alt}${_action.Name} + #end +- #end ++ #end +
      + #end + Modified: pal-portal/trunk/portal/patches/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm =================================================================== --- pal-portal/trunk/portal/patches/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm 2007-05-22 08:12:11 UTC (rev 155) +++ pal-portal/trunk/portal/patches/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm 2007-05-25 03:26:45 UTC (rev 156) @@ -1,30 +1,559 @@ Index: src/webapp/WEB-INF/templates/layout/html/columns/layout.vm =================================================================== ---- src/webapp/WEB-INF/templates/layout/html/columns/layout.vm (リビジョン 453273) +--- src/webapp/WEB-INF/templates/layout/html/columns/layout.vm (リビジョン 539124) +++ src/webapp/WEB-INF/templates/layout/html/columns/layout.vm (作業コピー) -@@ -1,4 +1,3 @@ -- - #* - Copyright 2004 The Apache Software Foundation +@@ -23,6 +23,8 @@ + #set($actions = $myFragment.decoration.actions) + #set($messages = $portletConfig.getResourceBundle($renderRequest.Locale)) + #set($rootDecorator = $myPage.getRootFragment().decoration) ++#set($namespace="${renderResponse.namespace}") ++#getBoolProperty($allowAddPortlet $rootDecorator "allow.add.portlet" true) -@@ -87,6 +86,7 @@ -
      +- #end +- +- +-
      +-
      +- #if($allowAddPage||$allowChangePageName||$allowDeletePage) +-
      $messages.getString("portal.page.editing.pageConfiguration")
      +-
      +- #end +- #if($allowAddPage||$allowChangePageName) +-
      +- +- +-
      +-
      +- +- +-
      +-
      +- +- +-
      +-
      +- #end +- #if($allowAddPage) +- +- #end +- #if($allowChangePageName) +- +- #end +- #if($allowAddPage||$allowChangePageName) +-
      +- #end +- #if($allowNavigatePage) +-
      +- +- +- +-
      +- #end +- #if($allowDeletePage) +-
      +- +- +-
      +- #end +- #if($allowAddPage||$allowChangePageName||$allowDeletePage) +-
      +- #end +-
      +-
      +-
      +-
      +- #if($allowAddFolder||$allowChangeFolderName||$allowDeleteFolder) +-
      $messages.getString("portal.folder.editing.folderConfiguration")
      +-
      +- #end +- #if($allowAddFolder||$allowChangeFolderName) +-
      +- +- +-
      +-
      +- +- +-
      +-
      +- +- +-
      +-
      +- #end +- #if($allowAddFolder) +- +- #end +- #if($allowChangeFolderName) +- +- #end +- #if($allowAddFolder||$allowChangeFolderName) +-
      +- #end +- #if($allowNavigateFolder) +-
      +- +- +- +-
      +- #end +- #if($allowDeleteFolder) +-
      +- +- +-
      +- #end +- #if($allowAddFolder||$allowChangeFolderName||$allowDeleteFolder) +-
      +- #end ++#end ++ ++ ++ ++ ++ +
      +-
      +-
      +- ++
      ++#set($_actions = $layoutDecoration.actions) ++ #if($_actions.size() >0) ++ #foreach ($_action in $_actions) ++ ++ #end ++ #end ++
      ++ ++ + ++ + ## end edit mode + #end + From svnnotify @ sourceforge.jp Fri May 25 12:34:31 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Fri, 25 May 2007 12:34:31 +0900 Subject: [pal-cvs 2425] [157] replaced with pal-admin. Message-ID: <20070525033431.9CE232AC011@users.sourceforge.jp> Revision: 157 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=157 Author: shinsuke Date: 2007-05-25 12:34:31 +0900 (Fri, 25 May 2007) Log Message: ----------- replaced with pal-admin. Modified Paths: -------------- pal-portal/trunk/portal/resources/psml/default/_role/site/forgot.psml pal-portal/trunk/portal/resources/psml/default/_role/site/register.psml -------------- next part -------------- Modified: pal-portal/trunk/portal/resources/psml/default/_role/site/forgot.psml =================================================================== --- pal-portal/trunk/portal/resources/psml/default/_role/site/forgot.psml 2007-05-25 03:26:45 UTC (rev 156) +++ pal-portal/trunk/portal/resources/psml/default/_role/site/forgot.psml 2007-05-25 03:34:31 UTC (rev 157) @@ -4,7 +4,7 @@ Password Recovery - + Register - + From svnnotify @ sourceforge.jp Fri May 25 18:26:28 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Fri, 25 May 2007 18:26:28 +0900 Subject: [pal-cvs 2426] [158] added portlet development for portlet api. Message-ID: <20070525092628.39E782AC011@users.sourceforge.jp> Revision: 158 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=158 Author: shinsuke Date: 2007-05-25 18:26:27 +0900 (Fri, 25 May 2007) Log Message: ----------- added portlet development for portlet api. Modified Paths: -------------- pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/navigation.xml Added Paths: ----------- pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/guide-api-based-portlet.xml -------------- next part -------------- Added: pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/guide-api-based-portlet.xml =================================================================== --- pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/guide-api-based-portlet.xml 2007-05-25 03:34:31 UTC (rev 157) +++ pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/guide-api-based-portlet.xml 2007-05-25 09:26:27 UTC (rev 158) @@ -0,0 +1,411 @@ + + + + + PALポータル ポートレット開発者ガイド + ポートレット API を用いたポートレット開発方法 + + + + + +
      +

      +ここでは、JSR 168 のポートレット API を利用して、JSR 168 に準拠したポートレットの作成を説明します。 +HelloWorld的なポートレットを作成して、作成したものを PALポータルに配備します。 +

      +

      +今回、作成するポートレットは、入力フォームを持ち、値を入力すると、その入力された値を表示するポートレットです。 +開発するにあたり、javac や ant などで説明を進めると、依存関係の解決などを行わなければならないので、簡単にするために、maven 2 でビルドするプロジェクトを作成します。 +

      +

      +まずは、ディレクトリを作成します。 + +この helloworld ポートレットプロジェクトでは、次のファイルを作成します。 + +pom.xml は、Maven 2 のプロジェクトファイルです。 +そして、それ以外のファイルが、ポートレットを構築・実行する上で必要になるファイルになります。 +

      +
      +
      +

      +それでは、順に構成ファイルについてみていきましょう。 +

      +

      +まずは、プロジェクトを Maven 2 で利用できるようにするための pom.xml です。 +このファイルについては、通常の Maven 2 プロジェクトと同様に作成しています。 +ですので、ポートレット用に特殊な設定などはしていません。 +

      +

      +ポートレット用にビルドするために、依存関係に portlet-api を指定しておけば、ポートレットを作成することができます。 +今回の helloworld ポートレットでは、ビューに JSP を利用して、JSTL を利用しているので、それに必要な依存関係を追加します。 +もし、独自にポートレットを作成する場合には、必要なライブラリがあれば、追加してください。 + + + 4.0.0 + jp.sf.pal.sample + helloworld + 1.0 + war + Helloworld Portlet + + helloworld + + + + portlet-api + portlet-api + 1.0 + provided + + + jstl + jstl + 1.1.2 + + + taglibs + standard + 1.1.2 + + + commons-logging + commons-logging + 1.0.4 + + + +]]> +

      +
      +
      +

      +この節で説明するものが、ポートレットを作成する上で必要になってくるファイルです。 +基本的には、Servlet Specification 2.3, SRV.9 で定義されている Web アプリケーションの構成と同じで、サーブレット、JSP、HTMLページ、クラスなどのファイルを含み、それらに加えて、ポートレットのクラスファイルとポートレット配備記述子 (portlet.xml) を含みます。 +ですので、通常通りに、Java で Web アプリケーションを作成し、portlet.xml を追加する点だけが異なります。 +ポートレットアプリケーションについては、JSR 168 の PLT.19 で定義されています。 +

      +

      +まず、portlet.xml について、説明します。 +portlet.xml は、ポートレットのリソースについて定義しています。 +ですので、ポートレットの構成情報などがいろいろと記述されています。 +portlet.xml のスキーマなどの詳細の情報は、JSR 168 の PLT.21.5 や PLT.21.6 を参照してください。 +

      +

      +portlet.xml では、ルートノードに portlet-app 要素があり、その下に portlet 要素を複数定義できます。 +1つのポートレットの定義が1つの portlet 要素に対応しているので、portlet.xml に portlet 要素を複数記述することで、複数のポートレットを定義することもできます。 +

      +

      +次に、portlet 要素の下にある要素について説明します。 +portlet-name 要素は、ポートレットの名前になります。 +これは、このポートレットアプリケーション内でユニークな値である必要があります。 +display-name 要素と、次の description 要素は、ポートレットに関する簡単な名前と説明になります。 +これらの値は、たとえば、ポータルサーバーのポートレット管理ツールなどで表示される値になります。 +そのツール上で日本語の名前を出したいような場合には、xml:lang 属性を追加して、記述します。 +たとえば、日本語であれば、xml:lang="ja" として、属性を追加します。 +portlet.xml では、display-name と description については、xml:lang 属性を用いて、複数定義することができます。 +

      +

      +portlet-class 要素は、実行するポートレットのクラス指定します。 +

      +

      +expiration-cache 要素は、キャッシュの有効期限を秒単位で指定します。 +-1 は無期限を意味します。 +

      +

      +supports 要素では、サポートする MIME タイプやポートレットモードを指定しています。 +

      +

      +supported-locale 要素は、サポートしているロケールを記述します。 +

      +

      +resource-bundle 要素では、ポートレットで利用するリソースバンドルを指定します。 +指定したリソースバンドルは、PortletConfig#getResourceBundle() で取得することができます。 +

      +

      +portlet-info 要素では、ポートレットで表示されるタイトルなどを指定しています。 +タイトルを国際化するためには、resource-bundle +要素で指定したリソースバンドル内に記述する必要があります。 +

      +

      +src/main/webapp/WEB-INF/portlet.xml は以下のとおりです。 + + + + HelloWorld + Hello World + ハローワールド + HelloWorld is a portlet for testing + HelloWorld はテスト用ポートレットです + com.marevol.portlet.helloworld.HelloWorldPortlet + -1 + + text/html + VIEW + + en + ja + com.marevol.portlet.helloworld.resources.HelloWorldResources + + Hello World + This is a portlet for testing + Hello,Test + + + +]]> +

      +

      +web.xml は、通常の Web アプリケーションと同様に、Web アプリケーションのリソースなどを指定しています。 +今回は、特に指定することもないので、display-name と description 要素にこのポートレットについてを記述するだけになっています。 +src/main/webapp/WEB-INF/web.xml は以下のようになります。 + + + + HelloWorld Portlet + HelloWorld Portlet + +]]> +

      +

      +HelloWorldPortlet は、portlet.xml で portlet-class 要素で指定したポートレットのクラスです。 +ポートレットにアクセスすると、このクラスが呼ばれ、必要な処理を実行します。 +ポートレットは、 javax.portlet.Portlet インターフェース実装したクラスになります。 +今回は、そのインターフェースを実装した javax.portlet.GenericPortlet を継承して作成します。 +

      +

      +この HelloWorldPortlet は、init, doView, processAction3つのメソッドを持っています。 +まず、init はその名の通り、ポートレットの初期化を行います。 +たとえば、portlet.xml で値を与えている場合などには、ここで取得するのが適切です。 +今回は、特に何もすることがないため、スーパークラスに渡しているだけにしています。 +

      +

      +次に doView と processAction ですが、Portlet インターフェースには、processAction と render メソッドが定義されています。 +つまり、ポートレットの処理は、アクションの処理と表示の処理が完全に分かれていて、processAction でアクションの処理を行い、表示などは、render メソッドで行われます。 +GenericPortlet の render メソッドでは、ポートレットのタイトルを設定して、doDispatchメソッドに渡されています。 +そして、GenericPortlet の doDispatch メソッドでポートレットのモードによって、処理を振り分けています。 +たとえば、表示モードでは doView、ポートレットの右上にある編集ボタンを押したときなどになる編集モードの描画処理を行う場合は doEdit などです。 +今回のポートレットでは、表示モードしか扱わないため、doView だけを追加しておきます。 +

      +

      +doView メソッドでは、RenderRequest と RenderResponse を利用し、まず、コンテンツタイプを設定してから(コンテンツタイプを指定しないと Exception が投げられます)、与えられた YOUR_NAME_KEY キーの値を取得して、helloworld.jsp に渡す処理をしています。 +

      +

      +processAction の引数は、ActionRequest と ActionResponse になります。 +今回、このメソッドでは、helloworld.jsp で送信された値を ActionResponse に渡しています。 +

      +

      +ここで、このRender〜やAction〜について説明します。これらは、名前の通り、表示のためのRender〜であり、アクションを処理するためのAction〜です。 +processAction で jsp などからの様々な入力値を処理して、ActionResponse の setRenderParameter で RenderRequest に渡します。 +つまり、jsp からの入力は、doView の RenderRequest で取得できないということになります。 +ですので、doView などでは、本当に表示だけの処理に専念することになります。 +この意味を考えるためには、次のような状況を考えてください。 +ポートレットは、1つのページに複数のポートレットを表示することになります。 +各ポートレットは独立していて、ほとんどの場合、複数の中の 1 つのポートレットだけに入力データなどを送信して処理することになります。 +その対象のポートレットでは、processAction が呼ばれ、doView が呼ばれることになります。 +一方、それ以外のポートレットでは、ページが更新されますが、表示内容はその更新に関係なく、同じ内容を表示する必要があります(たとえば、他のページで一覧を表示し、他のポートレットで処理したらメニューに戻るなどの動作は良くありません)。 +ですので、ページが更新されたとしても、アクションの処理の対象でなければ、表示の内容を維持する必要があるので、アクションに関係なく、Render〜で独立したパラメータを持つことになります。 +こういうことから、processAction の Action〜からデータを取得して処理し、表示用のパラメータを設定して、setRenderParameterなどで、Render〜に渡すという処理の流れになります。 +

      +

      +src/main/java/com/marevol/portlet/helloworld/HelloWorldPortlet.java は以下のとおりです。 + +

      +

      +helloworld.jsp は、今回のポートレットのビューの部分にあたります。 +この JSP ファイルは、HelloWorldPortlet クラスから呼ばれて、実行されます。 +ここでは、入力フォームを表示して、送信ボタンをクリックすると、そのメッセージが表示される処理を実行します。 +

      +

      +この helloworld.jsp では、2つのタグライブラリを読み込んでいますが、ポートレットで利用されるのが http://java.sun.com/portlet のタグライブラリです。 +taglib uri=... でこのタブライブラリを宣言し、<portlet:defineObjects/> を記述すると、それ以降で、renderRequest などのパラメータを利用することができるようになります。 +また、このタグライブラリには、<portlet:actionURL /> などの URL を作成するタグもあるので、ビューで JSP を利用するときには、通常、このタブライブラリは使うことになります。 +このタグライブラリに関する詳細は、PLT.22 を参照してください。 +

      +

      +fmt のタグライブラリは、一般的な JSTL のものですので、そちらの方のドキュメントなどを参照してください。 +今回は、メッセージを国際化するためだけに利用しています。 +ポートレット用に特別に何かをする必要はありません。 +

      +

      +src/main/webapp/WEB-INF/view/helloworld.jsp は以下のとおりです。 + +<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %> + + + +

      + + + + + + + + + + + + +
      <%= renderRequest.getAttribute("yourName") %>
      + "/> +
      +
      +]]> +ポートレットでは、ポータル上の 1 つのページで、その中の一部のフラグメントとして表示されるため、htmlタグ、headタグや body タグなどは記述する必要はありません。 +

      +

      +最後に、HelloWorldResources プロパティファイルについてです。 +今回は、デフォルトのもの (_ja がないもの) と、..._ja.properties の日本語用のものを作成しています。 +このリソースは、portlet.xml と helloworld.jsp で指定して、利用されています。 +

      +

      +デフォルトのものと日本語用を比べると、日本語用には、javax.portlet で始まるプロパティが追加されているのがわかります。 +これらは、portlet.xml の portlet-info 要素以下にあったものにそれぞれが対応しています。 +たとえば、ポートレットの上部に表示されるタイトルで日本語のタイトルを表示したいといった場合などは、javax.portlet.title プロパティを portlet.xml の resouce-bundle 要素で指定したプロパティファイルに追加しておけば、このタイトルが表示されます。 +short-title と keywordsも同様に、日本語が表示したい場合には、プロパティファイルに加えておきます(short-title はその名の通り、本来は、短いタイトルです。これはたとえば、携帯電話などで通常より短いタイトルが必要な場合に利用されることになります)。 +

      +

      +src/main/java/com/marevol/portlet/helloworld/resources/HelloWorldResources_ja.properties は以下のとおりです。 + + +src/main/java/com/marevol/portlet/helloworld/resources/HelloWorldResources.properties は以下のとおりです。 + +

      +
      +
      +

      +必要なものが一通り用意できたので、次にビルドして、ポートレットアプリケーションの war ファイルを作成します。 +ビルド方法は、非常に簡単です。 +ここでは、Maven 2 を実行できる環境が用意済みであることを想定しています。 +Maven 2 のインストール方法については、http://maven.apache.org/ を参照してください。 + +通常の Maven 2 のビルドと同様、mvn install を実行します。 +このことからも、基本的には、普通の Web アプリケーションと同じであることがわかると思います。 +ビルドに成功していると、target ディレクトリの下に helloworld.war が作成されます。 + +

      +

      +これで、JSR 168 に準拠しているポートレットを作成できたことになります。 +これを、JSR 168 に準拠しているポータルサーバー上に持っていき、そのポータルサーバーの配備手順に従って、配備すれば、動作させることができます。 +

      +
      + + +
      Property changes on: pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/guide-api-based-portlet.xml ___________________________________________________________________ Name: svn:eol-style + native Modified: pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/navigation.xml =================================================================== --- pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/navigation.xml 2007-05-25 03:34:31 UTC (rev 157) +++ pal-portal/trunk/docs/ja/portlet-developers-guide/xdocs/navigation.xml 2007-05-25 09:26:27 UTC (rev 158) @@ -28,6 +28,7 @@
      + - + From svnnotify @ sourceforge.jp Sun May 27 08:16:57 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 27 May 2007 08:16:57 +0900 Subject: [pal-cvs 2430] [162] i18ned messages. Message-ID: <20070526231657.802282AC02D@users.sourceforge.jp> Revision: 162 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=162 Author: shinsuke Date: 2007-05-27 08:16:57 +0900 (Sun, 27 May 2007) Log Message: ----------- i18ned messages. Modified Paths: -------------- pal-portal/trunk/build.properties pal-portal/trunk/portal/patches/src/webapp/WEB-INF/jetspeed_macros.vm pal-portal/trunk/portal/patches/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm Added Paths: ----------- pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/ pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource.properties pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_en.properties pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_ja.properties -------------- next part -------------- Modified: pal-portal/trunk/build.properties =================================================================== --- pal-portal/trunk/build.properties 2007-05-26 23:15:42 UTC (rev 161) +++ pal-portal/trunk/build.properties 2007-05-26 23:16:57 UTC (rev 162) @@ -170,6 +170,9 @@ applications/j2-admin/src/java/org/apache/jetspeed/portlets/registration/UserRegistrationPortlet.java,\ applications/j2-admin/src/webapp/WEB-INF/portlet.xml,\ layout-portlets/src/java/org/apache/jetspeed/portlets/layout/MultiColumnPortlet.java,\ +layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource.properties,\ +layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_en.properties,\ +layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_ja.properties,\ layout-portlets/src/webapp/WEB-INF/portlet.xml,\ src/webapp/WEB-INF/assembly/jetspeed-services.xml,\ src/webapp/WEB-INF/assembly/portal-url-generation.xml,\ @@ -190,21 +193,17 @@ portal.delete.files=\ src/webapp/WEB-INF/conf/override.properties,\ -src/webapp/decorations/images/edit.gif,\ -src/webapp/decorations/images/view.gif,\ -src/webapp/decorations/images/help.gif,\ - - portal.delete.directories=\ src/webapp/WEB-INF/pages/,\ src/webapp/desktop-themes/sky/,\ applications/j2-admin/src/webapp/WEB-INF/view/userreg/email,\ +src/webapp/decorations/layout/jetspeed/,\ +src/webapp/decorations/layout/jscookmenu/,\ + src/webapp/decorations/layout/blueocean/,\ src/webapp/decorations/layout/sunflower/,\ -src/webapp/decorations/layout/jetspeed/,\ src/webapp/decorations/layout/thesolution/,\ -src/webapp/decorations/layout/jscookmenu/,\ src/webapp/decorations/layout/tigris/ Added: pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource.properties =================================================================== --- pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource.properties 2007-05-26 23:15:42 UTC (rev 161) +++ pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource.properties 2007-05-26 23:16:57 UTC (rev 162) @@ -0,0 +1,23 @@ +Index: layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource.properties +=================================================================== +--- layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource.properties (リビジョン 539124) ++++ layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource.properties (作業コピー) +@@ -103,4 +103,18 @@ + portal.folder.editing.deleteFolder=Delete + portal.folder.editing.confirmDeleteThisFolder=Do you want to delete this folder? + ++portal.preference.window.title=Preferences ++portal.preference.pageproperties.title=Page Properties ++portal.preference.addpage.title=Add Page ++portal.preference.folderproperties.title=Folder Properties ++portal.preference.addfolder.title=Add Folder ++portal.preference.changelayout.title=Change Layout ++portal.preference.addlayout.title=Add Layout ++portal.preference.changetheme.title=Change Theme ++portal.page.position=Page Position ++portal.page.delete=Delete Page ++portal.folder.position=Folder Position ++portal.folder.delete=Delete Folder ++portal.preference.window.close=Close ++portal.preference.show.preference=Show Preference + Property changes on: pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource.properties ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_en.properties =================================================================== --- pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_en.properties 2007-05-26 23:15:42 UTC (rev 161) +++ pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_en.properties 2007-05-26 23:16:57 UTC (rev 162) @@ -0,0 +1,23 @@ +Index: layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_en.properties +=================================================================== +--- layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_en.properties (リビジョン 539124) ++++ layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_en.properties (作業コピー) +@@ -103,4 +103,18 @@ + portal.folder.editing.deleteFolder=Delete + portal.folder.editing.confirmDeleteThisFolder=Do you want to delete this folder? + ++portal.preference.window.title=Preferences ++portal.preference.pageproperties.title=Page Properties ++portal.preference.addpage.title=Add Page ++portal.preference.folderproperties.title=Folder Properties ++portal.preference.addfolder.title=Add Folder ++portal.preference.changelayout.title=Change Layout ++portal.preference.addlayout.title=Add Layout ++portal.preference.changetheme.title=Change Theme ++portal.page.position=Page Position ++portal.page.delete=Delete Page ++portal.folder.position=Folder Position ++portal.folder.delete=Delete Folder ++portal.preference.window.close=Close ++portal.preference.show.preference=Show Preference + Property changes on: pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_en.properties ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_ja.properties =================================================================== --- pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_ja.properties 2007-05-26 23:15:42 UTC (rev 161) +++ pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_ja.properties 2007-05-26 23:16:57 UTC (rev 162) @@ -0,0 +1,22 @@ +Index: layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_ja.properties +=================================================================== +--- layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_ja.properties (リビジョン 539124) ++++ layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_ja.properties (作業コピー) +@@ -103,3 +103,17 @@ + portal.folder.editing.deleteFolder=\u524a\u9664 + portal.folder.editing.confirmDeleteThisFolder=\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u524a\u9664\u3057\u3066\u3082\u3088\u308d\u3057\u3044\u3067\u3059\u304b? + ++portal.preference.window.title=\u8a2d\u5b9a ++portal.preference.pageproperties.title=\u30da\u30fc\u30b8\u30d7\u30ed\u30d1\u30c6\u30a3 ++portal.preference.addpage.title=\u30da\u30fc\u30b8\u306e\u8ffd\u52a0 ++portal.preference.folderproperties.title=\u30d5\u30a9\u30eb\u30c0\u30d7\u30ed\u30d1\u30c6\u30a3 ++portal.preference.addfolder.title=\u30d5\u30a9\u30eb\u30c0\u306e\u8ffd\u52a0 ++portal.preference.changelayout.title=\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u5909\u66f4 ++portal.preference.addlayout.title=\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u8ffd\u52a0 ++portal.preference.changetheme.title=\u30c6\u30fc\u30de\u306e\u5909\u66f4 ++portal.page.position=\u30da\u30fc\u30b8\u4f4d\u7f6e ++portal.page.delete=\u30da\u30fc\u30b8\u306e\u524a\u9664 ++portal.folder.position=\u30d5\u30a9\u30eb\u30c0\u4f4d\u7f6e ++portal.folder.delete=\u30d5\u30a9\u30eb\u30c0\u306e\u524a\u9664 ++portal.preference.window.close=\u9589\u3058\u308b ++portal.preference.show.preference=\u8a2d\u5b9a\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u8868\u793a Property changes on: pal-portal/trunk/portal/patches/layout-portlets/src/java/org/apache/jetspeed/portlets/layout/resources/LayoutResource_ja.properties ___________________________________________________________________ Name: svn:eol-style + native Modified: pal-portal/trunk/portal/patches/src/webapp/WEB-INF/jetspeed_macros.vm =================================================================== --- pal-portal/trunk/portal/patches/src/webapp/WEB-INF/jetspeed_macros.vm 2007-05-26 23:15:42 UTC (rev 161) +++ pal-portal/trunk/portal/patches/src/webapp/WEB-INF/jetspeed_macros.vm 2007-05-26 23:16:57 UTC (rev 162) @@ -14,7 +14,7 @@ + #set($_actions = $layoutDecoration.actions) +
      + #if($_actions.size() >0) -+ ++ + #if($allowAddPortlet) +#set ($chooser = "${jetspeed.basePath}/system/customizer/selector.psml?jspage=${profiledPage}&jslayoutid=$myFragment.id") + $messages.getString("portal.page.editing.addportlet") Modified: pal-portal/trunk/portal/patches/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm =================================================================== --- pal-portal/trunk/portal/patches/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm 2007-05-26 23:15:42 UTC (rev 161) +++ pal-portal/trunk/portal/patches/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm 2007-05-26 23:16:57 UTC (rev 162) @@ -43,7 +43,7 @@ #if($isRoot) #getBoolProperty($allowChangePageTheme $rootDecorator "allow.change.page.theme" true) #getBoolProperty($allowAddPage $rootDecorator "allow.add.page" true) -@@ -89,68 +90,321 @@ +@@ -89,68 +90,316 @@ #end #getBoolProperty($allowChangeLayout $rootDecorator "allow.change.layout" true) @@ -84,7 +84,7 @@ +#* Preferences *# +
      +
      -+ Preferences ++ $messages.getString("portal.preference.window.title") +
      +
      + +#* Menu *# + + + + + + + +
      +
      @@ -211,7 +211,7 @@ +
      +#if($allowNavigatePage) +
      -+ Page Navigation ++ $messages.getString("portal.page.position") +
      + + @@ -222,7 +222,7 @@ +
      +#if($allowDeletePage) +
      -+ Delete Page ++ $messages.getString("portal.page.delete") +
      + + @@ -286,7 +286,7 @@ +
      +#if($allowNavigateFolder) +
      -+ Folder Navigation ++ $messages.getString("portal.folder.position") +
      + + @@ -297,7 +297,7 @@ +
      +#if($allowDeleteFolder) +
      -+ Delete Folder ++ $messages.getString("portal.folder.delete") +
      + + @@ -351,11 +351,6 @@ + + +
      -+
      -+
      -+ Portlet Layout -+ -+
      +
      +#end + @@ -413,7 +408,7 @@ @@ -543,10 +538,11 @@ -
      - +
      ++ +#set($_actions = $layoutDecoration.actions) + #if($_actions.size() >0) + #foreach ($_action in $_actions) -+ ++ + #end + #end +
      From svnnotify @ sourceforge.jp Mon May 28 10:36:52 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 28 May 2007 10:36:52 +0900 Subject: [pal-cvs 2431] [163] added overwrite option to copy files to portal. Message-ID: <20070528013652.B26322AC023@users.sourceforge.jp> Revision: 163 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=163 Author: shinsuke Date: 2007-05-28 10:36:52 +0900 (Mon, 28 May 2007) Log Message: ----------- added overwrite option to copy files to portal. Modified Paths: -------------- pal-portal/trunk/portal/build.xml -------------- next part -------------- Modified: pal-portal/trunk/portal/build.xml =================================================================== --- pal-portal/trunk/portal/build.xml 2007-05-26 23:16:57 UTC (rev 162) +++ pal-portal/trunk/portal/build.xml 2007-05-28 01:36:52 UTC (rev 163) @@ -131,7 +131,7 @@ - + From svnnotify @ sourceforge.jp Tue May 29 10:18:36 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 29 May 2007 10:18:36 +0900 Subject: [pal-cvs 2432] [164] removed security constraints. Message-ID: <20070529011836.D3AC72AC01E@users.sourceforge.jp> Revision: 164 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=164 Author: shinsuke Date: 2007-05-29 10:18:36 +0900 (Tue, 29 May 2007) Log Message: ----------- removed security constraints. Modified Paths: -------------- pal-portal/trunk/portal/resources/psml/default/_role/site/default-page.psml -------------- next part -------------- Modified: pal-portal/trunk/portal/resources/psml/default/_role/site/default-page.psml =================================================================== --- pal-portal/trunk/portal/resources/psml/default/_role/site/default-page.psml 2007-05-28 01:36:52 UTC (rev 163) +++ pal-portal/trunk/portal/resources/psml/default/_role/site/default-page.psml 2007-05-29 01:18:36 UTC (rev 164) @@ -1,9 +1,5 @@
      #end - + - +
      -
      -
      - -#set($_actions = $layoutDecoration.actions) - #if($_actions.size() >0) - #foreach ($_action in $_actions) - - #end - #end -
      - -
      -
      - ## end edit mode #end @@ -453,10 +290,6 @@ #set($columnFloat = $columnLayout.getColumnFloat($columnIndex)) #set($columnWidth = $columnLayout.getColumnWidth($columnIndex)) -
      - #foreach($f in $column) ## Set up coordinates for this fragment #set($coords = $columnLayout.getCoordinate($f)) @@ -465,59 +298,68 @@ #set($row = $coords.y) ## get the decorated Portlet content -
      +
      ## editing block #if($editing) -
      +
      #set ($dcnt = $dcnt + 1) -
      - - - + + #if($f.type == "portlet") #set($fragmentType="Portlet") #if($allowChangePortletDecorator) - +
      ## Move portlet left #if($lastColumn > 0 && $col > 0) - - - +
      + + + +
      #end ## Move portlet up #if($row > 0) - - - +
      + + + +
      #end ## Remove portlet from page - - - +
      + + + +
      ## Move portlet down #if($row < $lastRow) - - - +
      + + + +
      #end ## Move portlet right #if($lastColumn > 0 && $col < $lastColumn) - - - +
      + + + +
      #end - -
      +
      #end ## Now get the real content @@ -527,21 +369,12 @@ #else $f.renderedContent #end -
      +
      #end -
      #set ($columnIndex = $columnIndex + 1) #end - - - -
      - + #if ($isRoot) -
      - - -
      #parse($myFragment.decoration.footer) #end Modified: pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/docomo-html/maximized/layout.vm =================================================================== --- pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/docomo-html/maximized/layout.vm 2007-05-29 01:34:13 UTC (rev 165) +++ pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/docomo-html/maximized/layout.vm 2007-05-29 04:35:27 UTC (rev 166) @@ -24,10 +24,10 @@ #end ## get the decorated Portlet content -
      +
      $jetspeed.setCurrentFragment($f) #parse($f.decoration.template) -
      +
      #if ($rootFragment.decoration.footer) #parse($rootFragment.decoration.footer) Modified: pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/docomo-wap2/columns/layout-help.vm =================================================================== --- pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/docomo-wap2/columns/layout-help.vm 2007-05-29 01:34:13 UTC (rev 165) +++ pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/docomo-wap2/columns/layout-help.vm 2007-05-29 04:35:27 UTC (rev 166) @@ -1,67 +1,69 @@ -#* + + +#* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*# - -#set($theme = $request.getAttribute("org.apache.jetspeed.theme")) -#set ($messages = $portletConfig.getResourceBundle($renderRequest.Locale)) - - - -#parse($theme.pageLayoutDecoration.header) - - - -
      - - - - -
      -

      $messages.getString("portal.help.title")

      -

      $messages.getString("portal.page.help.title")

      -

      view $messages.getString("portal.page.help.view")

      -

      help $messages.getString("portal.page.help.help")

      -

      edit $messages.getString("portal.page.help.edit")

      -

      select - $messages.getString("portal.portlet.help.title")

      -

      $messages.getString("portal.help.title")

      -

      minimize - $messages.getString("portal.portlet.help.minimize")

      -

      maximize - $messages.getString("portal.portlet.help.maximize")

      -

      restore - $messages.getString("portal.portlet.help.restore")

      -

      edit - $messages.getString("portal.portlet.help.edit")

      -

      print - $messages.getString("portal.portlet.help.print")

      -

      $messages.getString("portal.portlet.help.edit.title")

      -

      close - $messages.getString("portal.portlet.help.close")

      -

      move up - $messages.getString("portal.portlet.help.movePortletUp")

      -

      move down - $messages.getString("portal.portlet.help.movePortletDown")

      -

      move left - $messages.getString("portal.portlet.help.movePortletLeft")

      -

      move right - $messages.getString("portal.portlet.help.movePortletRight")

      -
      -
      - - - -#parse($theme.pageLayoutDecoration.footer) +the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*# + +#set($theme = $request.getAttribute("org.apache.jetspeed.theme")) +#set ($messages = $portletConfig.getResourceBundle($renderRequest.Locale)) + + + +#parse($theme.pageLayoutDecoration.header) + + + +
      + + + + +
      +

      $messages.getString("portal.help.title")

      +

      $messages.getString("portal.page.help.title")

      +

      view $messages.getString("portal.page.help.view")

      +

      help $messages.getString("portal.page.help.help")

      +

      edit $messages.getString("portal.page.help.edit")

      +

      select + $messages.getString("portal.portlet.help.title")

      +

      $messages.getString("portal.help.title")

      +

      minimize + $messages.getString("portal.portlet.help.minimize")

      +

      maximize + $messages.getString("portal.portlet.help.maximize")

      +

      restore + $messages.getString("portal.portlet.help.restore")

      +

      edit + $messages.getString("portal.portlet.help.edit")

      +

      print + $messages.getString("portal.portlet.help.print")

      +

      $messages.getString("portal.portlet.help.edit.title")

      +

      close + $messages.getString("portal.portlet.help.close")

      +

      move up + $messages.getString("portal.portlet.help.movePortletUp")

      +

      move down + $messages.getString("portal.portlet.help.movePortletDown")

      +

      move left + $messages.getString("portal.portlet.help.movePortletLeft")

      +

      move right + $messages.getString("portal.portlet.help.movePortletRight")

      +
      +
      + + + +#parse($theme.pageLayoutDecoration.footer) Modified: pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/docomo-wap2/columns/layout.vm =================================================================== --- pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/docomo-wap2/columns/layout.vm 2007-05-29 01:34:13 UTC (rev 165) +++ pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/docomo-wap2/columns/layout.vm 2007-05-29 04:35:27 UTC (rev 166) @@ -1,4 +1,5 @@ - + + #* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with @@ -25,184 +26,67 @@ #set($rootDecorator = $myPage.getRootFragment().decoration) #set($namespace="${renderResponse.namespace}") #getBoolProperty($allowAddPortlet $rootDecorator "allow.add.portlet" true) - -#if($myFragment.getDecorator()) - #set($decorator = $myFragment.getDecorator()) -#end - -#if($myFragment == $myPage.getRootFragment()) - #set($isRoot=true) -#end - -#if($request.getAttribute("editing") == true) - #set($editing = true) - #set($lastColumn = $renderRequest.getAttribute("numberOfColumns") - 1) -#end - +#if($myFragment.getDecorator())#set($decorator = $myFragment.getDecorator())#end +#if($myFragment == $myPage.getRootFragment())#set($isRoot=true)#end +#if($request.getAttribute("editing") == true)#set($editing = true)#set($lastColumn = $renderRequest.getAttribute("numberOfColumns") - 1)#end #set($layoutType =$portletConfig.getInitParameter("layoutType")) #set($columnLayout = $renderRequest.getAttribute("columnLayout")) #set($decorationFactory = $renderRequest.getAttribute("decorationFactory")) #set($rc = $renderRequest.getAttribute("org.apache.jetspeed.request.RequestContext")) #set($psrc = $rc.getAttribute("org.apache.jetspeed.portalsite.PortalSiteRequestContext")) #set($profiledPage = $psrc.Page.Path) - -#if ($isRoot) - #parse($myFragment.decoration.header) - #set($layoutClass = "portal-nested-layout") +#if ($isRoot)#parse($myFragment.decoration.header)#set($layoutClass = "portal-nested-layout") +#else#defineLayoutObjects()#set($layoutClass = "portal-layout")#end +
      +#if($editing) +#if($isRoot) +#getBoolProperty($allowChangePageTheme $rootDecorator "allow.change.page.theme" true) +#getBoolProperty($allowAddPage $rootDecorator "allow.add.page" true) +#getBoolProperty($allowChangePageName $rootDecorator "allow.change.page.name" true) +#getBoolProperty($allowNavigatePage $rootDecorator "allow.navigate.page" true) +#getBoolProperty($allowDeletePage $rootDecorator "allow.delete.page" true) +#getBoolProperty($allowChangeFolderTheme $rootDecorator "allow.change.folder.theme" true) +#getBoolProperty($allowAddFolder $rootDecorator "allow.add.folder" true) +#getBoolProperty($allowChangeFolderName $rootDecorator "allow.change.folder.name" true) +#getBoolProperty($allowNavigateFolder $rootDecorator "allow.navigate.folder" true) +#getBoolProperty($allowDeleteFolder $rootDecorator "allow.delete.folder" true) #else - #defineLayoutObjects() - #set($layoutClass = "portal-layout") +#set($allowChangePageTheme=false) +#set($allowAddPage=false) +#set($allowChangePageName=false) +#set($allowNavigatePage=false) +#set($allowDeletePage=false) +#set($allowChangeFolderTheme=false) +#set($allowAddFolder=false) +#set($allowChangeFolderName=false) +#set($allowNavigateFolder=false) +#set($allowDeleteFolder=false) #end -
      - -#if($editing) - #if($isRoot) - #getBoolProperty($allowChangePageTheme $rootDecorator "allow.change.page.theme" true) - #getBoolProperty($allowAddPage $rootDecorator "allow.add.page" true) - #getBoolProperty($allowChangePageName $rootDecorator "allow.change.page.name" true) - #getBoolProperty($allowNavigatePage $rootDecorator "allow.navigate.page" true) - #getBoolProperty($allowDeletePage $rootDecorator "allow.delete.page" true) - #getBoolProperty($allowChangeFolderTheme $rootDecorator "allow.change.folder.theme" true) - #getBoolProperty($allowAddFolder $rootDecorator "allow.add.folder" true) - #getBoolProperty($allowChangeFolderName $rootDecorator "allow.change.folder.name" true) - #getBoolProperty($allowNavigateFolder $rootDecorator "allow.navigate.folder" true) - #getBoolProperty($allowDeleteFolder $rootDecorator "allow.delete.folder" true) - #else - #set($allowChangePageTheme=false) - #set($allowAddPage=false) - #set($allowChangePageName=false) - #set($allowNavigatePage=false) - #set($allowDeletePage=false) - #set($allowChangeFolderTheme=false) - #set($allowAddFolder=false) - #set($allowChangeFolderName=false) - #set($allowNavigateFolder=false) - #set($allowDeleteFolder=false) - #end - - #getIntProperty($maxLayoutNesting $rootDecorator "max.layout.nesting" 2) - #if($request.getAttribute("fragmentNestingLevel") < $maxLayoutNesting) - #set($allowAddLayout=true) - #else - #set($allowAddLayout=false) - #end +#getIntProperty($maxLayoutNesting $rootDecorator "max.layout.nesting" 2) +#if($request.getAttribute("fragmentNestingLevel") < $maxLayoutNesting) +#set($allowAddLayout=true) +#else +#set($allowAddLayout=false) +#end - #getBoolProperty($allowChangeLayout $rootDecorator "allow.change.layout" true) +#getBoolProperty($allowChangeLayout $rootDecorator "allow.change.layout" true) - #set($form="f${renderResponse.namespace}") - #set($formAction = "$renderResponse.createActionURL()") - #set($submit = ".submit()") +#set($form="f${renderResponse.namespace}") +#set($formAction = "$renderResponse.createActionURL()") +#set($submit = ".submit()") - #* Preferences *# -
      -
      - $messages.getString("portal.preference.window.title") -
      -
      - -#* Menu *# - - - - - - - -
      -
      -
      - Title -
      - +
      +
      - - - #* Page Properties *# #if($allowChangePageName||$allowNavigatePage||$allowDeletePage) -
      +
      #if($allowChangePageName) -
      - $messages.getString("portal.page.editing.pageConfiguration") +
      +
      $messages.getString("portal.page.editing.pageConfiguration")
      @@ -221,37 +105,39 @@
      -
      +
      #end
      #if($allowNavigatePage) -
      - $messages.getString("portal.page.position") +
      +
      $messages.getString("portal.page.position")
      -
      +
      #end
      #if($allowDeletePage) -
      - $messages.getString("portal.page.delete") +
      +
      $messages.getString("portal.page.delete")
      - +
      -
      +
      +
      #end
      +
      #end #* Add Page *# #if($allowAddPage) -
      -
      - $messages.getString("portal.page.editing.pageConfiguration") +
      +
      +
      $messages.getString("portal.page.editing.pageConfiguration")
      @@ -269,16 +155,17 @@
      -
      +
      +
      #end #* Folder Properties *# #if($allowChangeFolderName||$allowNavigateFolder||$allowDeleteFolder) -
      +
      #if($allowChangeFolderName) -
      - $messages.getString("portal.folder.editing.folderConfiguration") +
      +
      $messages.getString("portal.folder.editing.folderConfiguration")
      @@ -296,37 +183,38 @@
      -
      +
      #end
      #if($allowNavigateFolder) -
      - $messages.getString("portal.folder.position") +
      +
      $messages.getString("portal.folder.position")
      -
      +
      #end
      #if($allowDeleteFolder) -
      - $messages.getString("portal.folder.delete") +
      +
      $messages.getString("portal.folder.delete")
      - +
      -
      +
      #end
      +
      #end #* Add Folder *# #if($allowAddFolder) -
      -
      - $messages.getString("portal.folder.editing.folderConfiguration") +
      +
      +
      $messages.getString("portal.folder.editing.folderConfiguration")
      @@ -344,103 +232,83 @@
      -
      +
      +
      #end #* Change Layout *# #if($allowChangeLayout) -
      -
      - $messages.getString("portal.page.editing.layout") +
      +
      +
      $messages.getString("portal.page.editing.layout")
      -
      +
      +
      #end #* Add Layout *# #if($allowAddLayout) -
      -
      - $messages.getString("portal.page.editing.layout") +
      +
      +
      $messages.getString("portal.page.editing.layout")
      -
      +
      +
      #end - #* Change Theme *# #if ($allowChangePageTheme||$allowChangePortletDecorator) -
      +
      #if ($allowChangePageTheme) -
      - $messages.getString("portal.page.editing.theme") +
      +
      $messages.getString("portal.page.editing.theme")
      -
      + +

      #end #getBoolProperty($allowChangePortletDecorator $rootDecorator "allow.change.portlet.decorator" true) ####### Take all fragments and apply style #if($allowChangePortletDecorator) -
      - $messages.getString("portal.page.editing.portlet.decorator") +
      +
      $messages.getString("portal.page.editing.portlet.decorator")
      -
      +
      #end #end - - -
      - -#set($_actions = $layoutDecoration.actions) - #if($_actions.size() >0) - #foreach ($_action in $_actions) - - #end - #end -
      - - + +
      ## end edit mode #end @@ -453,9 +321,7 @@ #set($columnFloat = $columnLayout.getColumnFloat($columnIndex)) #set($columnWidth = $columnLayout.getColumnWidth($columnIndex)) -
      +
      #foreach($f in $column) ## Set up coordinates for this fragment @@ -472,51 +338,61 @@
      #set ($dcnt = $dcnt + 1)
      - + #if($f.type == "portlet") #set($fragmentType="Portlet") #if($allowChangePortletDecorator) #end #else #set($fragmentType="Layout") #end +
      ## Move portlet left #if($lastColumn > 0 && $col > 0) - - - +
      + + + +
      #end ## Move portlet up #if($row > 0) - - - +
      + + + +
      #end ## Remove portlet from page - - - +
      + + + +
      ## Move portlet down #if($row < $lastRow) - - - +
      + + + +
      #end ## Move portlet right #if($lastColumn > 0 && $col < $lastColumn) - - - +
      + + + +
      #end -
      #end @@ -532,16 +408,9 @@
      #set ($columnIndex = $columnIndex + 1) #end - +
      - -
      #if ($isRoot) -
      - - -
      #parse($myFragment.decoration.footer) #end - Modified: pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/docomo-wap2/maximized/layout.vm =================================================================== --- pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/docomo-wap2/maximized/layout.vm 2007-05-29 01:34:13 UTC (rev 165) +++ pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/docomo-wap2/maximized/layout.vm 2007-05-29 04:35:27 UTC (rev 166) @@ -1,3 +1,5 @@ + + #* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with Modified: pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/kddi-hdml/columns/layout-help.vm =================================================================== --- pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/kddi-hdml/columns/layout-help.vm 2007-05-29 01:34:13 UTC (rev 165) +++ pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/kddi-hdml/columns/layout-help.vm 2007-05-29 04:35:27 UTC (rev 166) @@ -1,67 +1,21 @@ -#* +#* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*# - -#set($theme = $request.getAttribute("org.apache.jetspeed.theme")) -#set ($messages = $portletConfig.getResourceBundle($renderRequest.Locale)) - - - -#parse($theme.pageLayoutDecoration.header) - - - -
      - - - - -
      -

      $messages.getString("portal.help.title")

      -

      $messages.getString("portal.page.help.title")

      -

      view $messages.getString("portal.page.help.view")

      -

      help $messages.getString("portal.page.help.help")

      -

      edit $messages.getString("portal.page.help.edit")

      -

      select - $messages.getString("portal.portlet.help.title")

      -

      $messages.getString("portal.help.title")

      -

      minimize - $messages.getString("portal.portlet.help.minimize")

      -

      maximize - $messages.getString("portal.portlet.help.maximize")

      -

      restore - $messages.getString("portal.portlet.help.restore")

      -

      edit - $messages.getString("portal.portlet.help.edit")

      -

      print - $messages.getString("portal.portlet.help.print")

      -

      $messages.getString("portal.portlet.help.edit.title")

      -

      close - $messages.getString("portal.portlet.help.close")

      -

      move up - $messages.getString("portal.portlet.help.movePortletUp")

      -

      move down - $messages.getString("portal.portlet.help.movePortletDown")

      -

      move left - $messages.getString("portal.portlet.help.movePortletLeft")

      -

      move right - $messages.getString("portal.portlet.help.movePortletRight")

      -
      -
      - - - -#parse($theme.pageLayoutDecoration.footer) +the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*# + + +
      Your device is not supported. + + Modified: pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/kddi-hdml/columns/layout.vm =================================================================== --- pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/kddi-hdml/columns/layout.vm 2007-05-29 01:34:13 UTC (rev 165) +++ pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/kddi-hdml/columns/layout.vm 2007-05-29 04:35:27 UTC (rev 166) @@ -1,4 +1,3 @@ - #* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with @@ -15,533 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. *# -#set($theme = $request.getAttribute("org.apache.jetspeed.theme")) -#set($sizes = $jetspeed.columnSizes) -#set($myPage = $jetspeed.page) -#set($myFragment = $jetspeed.currentFragment) -#set($decorator = $myPage.getDefaultDecorator($myFragment.getType())) -#set($actions = $myFragment.decoration.actions) -#set($messages = $portletConfig.getResourceBundle($renderRequest.Locale)) -#set($rootDecorator = $myPage.getRootFragment().decoration) -#set($namespace="${renderResponse.namespace}") -#getBoolProperty($allowAddPortlet $rootDecorator "allow.add.portlet" true) - -#if($myFragment.getDecorator()) - #set($decorator = $myFragment.getDecorator()) -#end - -#if($myFragment == $myPage.getRootFragment()) - #set($isRoot=true) -#end - -#if($request.getAttribute("editing") == true) - #set($editing = true) - #set($lastColumn = $renderRequest.getAttribute("numberOfColumns") - 1) -#end - -#set($layoutType =$portletConfig.getInitParameter("layoutType")) -#set($columnLayout = $renderRequest.getAttribute("columnLayout")) -#set($decorationFactory = $renderRequest.getAttribute("decorationFactory")) -#set($rc = $renderRequest.getAttribute("org.apache.jetspeed.request.RequestContext")) -#set($psrc = $rc.getAttribute("org.apache.jetspeed.portalsite.PortalSiteRequestContext")) -#set($profiledPage = $psrc.Page.Path) - - -#if ($isRoot) - #parse($myFragment.decoration.header) - #set($layoutClass = "portal-nested-layout") -#else - #defineLayoutObjects() - #set($layoutClass = "portal-layout") -#end - -
      - -#if($editing) - #if($isRoot) - #getBoolProperty($allowChangePageTheme $rootDecorator "allow.change.page.theme" true) - #getBoolProperty($allowAddPage $rootDecorator "allow.add.page" true) - #getBoolProperty($allowChangePageName $rootDecorator "allow.change.page.name" true) - #getBoolProperty($allowNavigatePage $rootDecorator "allow.navigate.page" true) - #getBoolProperty($allowDeletePage $rootDecorator "allow.delete.page" true) - #getBoolProperty($allowChangeFolderTheme $rootDecorator "allow.change.folder.theme" true) - #getBoolProperty($allowAddFolder $rootDecorator "allow.add.folder" true) - #getBoolProperty($allowChangeFolderName $rootDecorator "allow.change.folder.name" true) - #getBoolProperty($allowNavigateFolder $rootDecorator "allow.navigate.folder" true) - #getBoolProperty($allowDeleteFolder $rootDecorator "allow.delete.folder" true) - #else - #set($allowChangePageTheme=false) - #set($allowAddPage=false) - #set($allowChangePageName=false) - #set($allowNavigatePage=false) - #set($allowDeletePage=false) - #set($allowChangeFolderTheme=false) - #set($allowAddFolder=false) - #set($allowChangeFolderName=false) - #set($allowNavigateFolder=false) - #set($allowDeleteFolder=false) - #end - - #getIntProperty($maxLayoutNesting $rootDecorator "max.layout.nesting" 2) - #if($request.getAttribute("fragmentNestingLevel") < $maxLayoutNesting) - #set($allowAddLayout=true) - #else - #set($allowAddLayout=false) - #end - - #getBoolProperty($allowChangeLayout $rootDecorator "allow.change.layout" true) - - #set($form="f${renderResponse.namespace}") - #set($formAction = "$renderResponse.createActionURL()") - #set($submit = ".submit()") - - -#* Preferences *# -
      -
      - $messages.getString("portal.preference.window.title") -
      -
      - -#* Menu *# - - - - - - - -
      -
      -
      - Title -
      - -
      - - - -#* Page Properties *# -#if($allowChangePageName||$allowNavigatePage||$allowDeletePage) -
      -#if($allowChangePageName) -
      - $messages.getString("portal.page.editing.pageConfiguration") -
      -
      - - -
      -
      - - -
      -
      - - -
      - -
      - -
      -
      -
      -#end -
      -#if($allowNavigatePage) -
      - $messages.getString("portal.page.position") -
      - - - -
      -
      -#end -
      -#if($allowDeletePage) -
      - $messages.getString("portal.page.delete") -
      - - -
      -
      -#end -
      -#end - -#* Add Page *# -#if($allowAddPage) -
      -
      - $messages.getString("portal.page.editing.pageConfiguration") -
      -
      - - -
      -
      - - -
      -
      - - -
      -
      - -
      -
      -
      -
      -#end - -#* Folder Properties *# -#if($allowChangeFolderName||$allowNavigateFolder||$allowDeleteFolder) -
      -#if($allowChangeFolderName) -
      - $messages.getString("portal.folder.editing.folderConfiguration") -
      -
      - - -
      -
      - - -
      -
      - - -
      -
      - -
      -
      -
      -#end -
      -#if($allowNavigateFolder) -
      - $messages.getString("portal.folder.position") -
      - - - -
      -
      -#end -
      -#if($allowDeleteFolder) -
      - $messages.getString("portal.folder.delete") -
      - - -
      -
      -#end -
      -#end - -#* Add Folder *# -#if($allowAddFolder) -
      -
      - $messages.getString("portal.folder.editing.folderConfiguration") -
      -
      - - -
      -
      - - -
      -
      - - -
      -
      - -
      -
      -
      -
      -#end - -#* Change Layout *# -#if($allowChangeLayout) -
      -
      - $messages.getString("portal.page.editing.layout") - - -
      -
      -#end - -#* Add Layout *# -#if($allowAddLayout) -
      -
      - $messages.getString("portal.page.editing.layout") - - -
      -
      -#end - -#* Change Theme *# -#if ($allowChangePageTheme||$allowChangePortletDecorator) -
      -#if ($allowChangePageTheme) -
      - $messages.getString("portal.page.editing.theme") - -
      -
      -#end -#getBoolProperty($allowChangePortletDecorator $rootDecorator "allow.change.portlet.decorator" true) -####### Take all fragments and apply style -#if($allowChangePortletDecorator) -
      - $messages.getString("portal.page.editing.portlet.decorator") - - - - - -
      -#end -
      -#end - - - -
      - -
      -
      - -#set($_actions = $layoutDecoration.actions) - #if($_actions.size() >0) - #foreach ($_action in $_actions) - - #end - #end -
      - -
      -
      - -## end edit mode -#end - -#set ($dcnt = 0) -#set ($columnIndex = 0) - -#foreach($column in $columnLayout.columns) - - #set($columnFloat = $columnLayout.getColumnFloat($columnIndex)) - #set($columnWidth = $columnLayout.getColumnWidth($columnIndex)) - -
      - - #foreach($f in $column) - ## Set up coordinates for this fragment - #set($coords = $columnLayout.getCoordinate($f)) - #set($col = $coords.x) - #set($lastRow = $columnLayout.getLastRowNumber($col)) - #set($row = $coords.y) - - ## get the decorated Portlet content -
      - - ## editing block - #if($editing) -
      - #set ($dcnt = $dcnt + 1) -
      - - - - #if($f.type == "portlet") - #set($fragmentType="Portlet") - #if($allowChangePortletDecorator) - - #end - #else - #set($fragmentType="Layout") - #end - ## Move portlet left - #if($lastColumn > 0 && $col > 0) - - - - #end - ## Move portlet up - #if($row > 0) - - - - #end - ## Remove portlet from page - - - - ## Move portlet down - #if($row < $lastRow) - - - - #end - ## Move portlet right - #if($lastColumn > 0 && $col < $lastColumn) - - - - #end -
      -
      - #end - - ## Now get the real content - $jetspeed.setCurrentFragment($f) - #if($f.type == "portlet") - #parse($f.decoration.template) - #else - $f.renderedContent - #end -
      - #end -
      - #set ($columnIndex = $columnIndex + 1) -#end - - - -
      - -#if ($isRoot) -
      - - -
      - #parse($myFragment.decoration.footer) -#end - + + +
      Your device is not supported. + + Modified: pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/kddi-hdml/maximized/layout.vm =================================================================== --- pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/kddi-hdml/maximized/layout.vm 2007-05-29 01:34:13 UTC (rev 165) +++ pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/kddi-hdml/maximized/layout.vm 2007-05-29 04:35:27 UTC (rev 166) @@ -14,21 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. *# -#set($myPage = $jetspeed.page) -#set($f = $request.getAttribute("org.apache.jetspeed.maximized.Fragment")) -#set($rootFragment = $myPage.rootFragment) -#set($messages = $portletConfig.getResourceBundle($renderRequest.Locale)) - -#if ($rootFragment.decoration.header) - #parse($rootFragment.decoration.header) -#end - - ## get the decorated Portlet content -
      - $jetspeed.setCurrentFragment($f) - #parse($f.decoration.template) -
      - -#if ($rootFragment.decoration.footer) - #parse($rootFragment.decoration.footer) -#end + + +
      Your device is not supported. + + Modified: pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/kddi-wap2/columns/layout.vm =================================================================== --- pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/kddi-wap2/columns/layout.vm 2007-05-29 01:34:13 UTC (rev 165) +++ pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/kddi-wap2/columns/layout.vm 2007-05-29 04:35:27 UTC (rev 166) @@ -124,16 +124,18 @@
      $messages.getString("portal.page.delete")
      - +
      +
      #end +
      #end #* Add Page *# #if($allowAddPage) -
      +
      $messages.getString("portal.page.editing.pageConfiguration")
      @@ -155,11 +157,12 @@
      +
      #end #* Folder Properties *# #if($allowChangeFolderName||$allowNavigateFolder||$allowDeleteFolder) -
      +
      #if($allowChangeFolderName)
      $messages.getString("portal.folder.editing.folderConfiguration")
      @@ -199,16 +202,17 @@
      $messages.getString("portal.folder.delete")
      - +
      #end
      +
      #end #* Add Folder *# #if($allowAddFolder) -
      +
      $messages.getString("portal.folder.editing.folderConfiguration")
      @@ -230,49 +234,52 @@
      +
      #end #* Change Layout *# #if($allowChangeLayout) -
      +
      $messages.getString("portal.page.editing.layout")
      +
      #end #* Add Layout *# #if($allowAddLayout) -
      +
      $messages.getString("portal.page.editing.layout")
      +
      #end - #* Change Theme *# #if ($allowChangePageTheme||$allowChangePortletDecorator) -
      +
      #if ($allowChangePageTheme)
      $messages.getString("portal.page.editing.theme")
      +

      #end @@ -285,9 +292,9 @@ @@ -299,16 +306,9 @@
      -
      -#set($_actions = $layoutDecoration.actions) -#if($_actions.size() >0) -#foreach ($_action in $_actions) - -#end -#end -
      +
      ## end edit mode #end @@ -338,51 +338,61 @@
      #set ($dcnt = $dcnt + 1)
      - + #if($f.type == "portlet") #set($fragmentType="Portlet") #if($allowChangePortletDecorator) #end #else #set($fragmentType="Layout") #end +
      ## Move portlet left #if($lastColumn > 0 && $col > 0) - - - +
      + + + +
      #end ## Move portlet up #if($row > 0) - - - +
      + + + +
      #end ## Remove portlet from page - - - +
      + + + +
      ## Move portlet down #if($row < $lastRow) - - - +
      + + + +
      #end ## Move portlet right #if($lastColumn > 0 && $col < $lastColumn) - - - +
      + + + +
      #end -
      #end @@ -398,15 +408,9 @@
      #set ($columnIndex = $columnIndex + 1) #end - +
      - #if ($isRoot) -
      - - -
      #parse($myFragment.decoration.footer) #end - Modified: pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/kddi-wap2/maximized/layout.vm =================================================================== --- pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/kddi-wap2/maximized/layout.vm 2007-05-29 01:34:13 UTC (rev 165) +++ pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/kddi-wap2/maximized/layout.vm 2007-05-29 04:35:27 UTC (rev 166) @@ -1,3 +1,5 @@ + + #* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with Modified: pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-html/columns/layout-help.vm =================================================================== --- pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-html/columns/layout-help.vm 2007-05-29 01:34:13 UTC (rev 165) +++ pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-html/columns/layout-help.vm 2007-05-29 04:35:27 UTC (rev 166) @@ -1,67 +1,50 @@ -#* +#* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*# - -#set($theme = $request.getAttribute("org.apache.jetspeed.theme")) -#set ($messages = $portletConfig.getResourceBundle($renderRequest.Locale)) - - - -#parse($theme.pageLayoutDecoration.header) - - - -
      - - - - -
      -

      $messages.getString("portal.help.title")

      -

      $messages.getString("portal.page.help.title")

      -

      view $messages.getString("portal.page.help.view")

      -

      help $messages.getString("portal.page.help.help")

      -

      edit $messages.getString("portal.page.help.edit")

      -

      select - $messages.getString("portal.portlet.help.title")

      -

      $messages.getString("portal.help.title")

      -

      minimize - $messages.getString("portal.portlet.help.minimize")

      -

      maximize - $messages.getString("portal.portlet.help.maximize")

      -

      restore - $messages.getString("portal.portlet.help.restore")

      -

      edit - $messages.getString("portal.portlet.help.edit")

      -

      print - $messages.getString("portal.portlet.help.print")

      -

      $messages.getString("portal.portlet.help.edit.title")

      -

      close - $messages.getString("portal.portlet.help.close")

      -

      move up - $messages.getString("portal.portlet.help.movePortletUp")

      -

      move down - $messages.getString("portal.portlet.help.movePortletDown")

      -

      move left - $messages.getString("portal.portlet.help.movePortletLeft")

      -

      move right - $messages.getString("portal.portlet.help.movePortletRight")

      -
      -
      - - - -#parse($theme.pageLayoutDecoration.footer) +the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*# + +#set($theme = $request.getAttribute("org.apache.jetspeed.theme")) +#set ($messages = $portletConfig.getResourceBundle($renderRequest.Locale)) + + + +#parse($theme.pageLayoutDecoration.header) + + + +
      +

      $messages.getString("portal.help.title")

      +

      $messages.getString("portal.page.help.title")

      +

      view $messages.getString("portal.page.help.view")

      +

      help $messages.getString("portal.page.help.help")

      +

      edit $messages.getString("portal.page.help.edit")

      +

      select$messages.getString("portal.portlet.help.title")

      +

      $messages.getString("portal.help.title")

      +

      minimize$messages.getString("portal.portlet.help.minimize")

      +

      maximize$messages.getString("portal.portlet.help.maximize")

      +

      restore$messages.getString("portal.portlet.help.restore")

      +

      edit$messages.getString("portal.portlet.help.edit")

      +

      print$messages.getString("portal.portlet.help.print")

      +

      $messages.getString("portal.portlet.help.edit.title")

      +

      close$messages.getString("portal.portlet.help.close")

      +

      move up$messages.getString("portal.portlet.help.movePortletUp")

      +

      move down$messages.getString("portal.portlet.help.movePortletDown")

      +

      move left$messages.getString("portal.portlet.help.movePortletLeft")

      +

      move right$messages.getString("portal.portlet.help.movePortletRight")

      +
      + + + +#parse($theme.pageLayoutDecoration.footer) Modified: pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-html/columns/layout.vm =================================================================== --- pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-html/columns/layout.vm 2007-05-29 01:34:13 UTC (rev 165) +++ pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-html/columns/layout.vm 2007-05-29 04:35:27 UTC (rev 166) @@ -1,8 +1,7 @@ - #* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. +this work for additional inFORMation regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -25,38 +24,19 @@ #set($rootDecorator = $myPage.getRootFragment().decoration) #set($namespace="${renderResponse.namespace}") #getBoolProperty($allowAddPortlet $rootDecorator "allow.add.portlet" true) - -#if($myFragment.getDecorator()) - #set($decorator = $myFragment.getDecorator()) -#end - -#if($myFragment == $myPage.getRootFragment()) - #set($isRoot=true) -#end - -#if($request.getAttribute("editing") == true) - #set($editing = true) - #set($lastColumn = $renderRequest.getAttribute("numberOfColumns") - 1) -#end - +#if($myFragment.getDecorator())#set($decorator = $myFragment.getDecorator())#end +#if($myFragment == $myPage.getRootFragment())#set($isRoot=true)#end +#if($request.getAttribute("editing") == true)#set($editing = true)#set($lastColumn = $renderRequest.getAttribute("numberOfColumns") - 1)#end #set($layoutType =$portletConfig.getInitParameter("layoutType")) #set($columnLayout = $renderRequest.getAttribute("columnLayout")) #set($decorationFactory = $renderRequest.getAttribute("decorationFactory")) #set($rc = $renderRequest.getAttribute("org.apache.jetspeed.request.RequestContext")) #set($psrc = $rc.getAttribute("org.apache.jetspeed.portalsite.PortalSiteRequestContext")) #set($profiledPage = $psrc.Page.Path) - -#if ($isRoot) - #parse($myFragment.decoration.header) - #set($layoutClass = "portal-nested-layout") -#else - #defineLayoutObjects() - #set($layoutClass = "portal-layout") -#end - -
      - +#if ($isRoot)#parse($myFragment.decoration.header)#set($layoutClass = "portal-nested-layout") +#else#defineLayoutObjects()#set($layoutClass = "portal-layout")#end +
      #if($editing) #if($isRoot) #getBoolProperty($allowChangePageTheme $rootDecorator "allow.change.page.theme" true) @@ -95,353 +75,210 @@ #set($formAction = "$renderResponse.createActionURL()") #set($submit = ".submit()") - #* Preferences *# -
      -
      - $messages.getString("portal.preference.window.title") -
      -
      - -#* Menu *# - - - - - - - -
      -
      -
      - Title -
      +
      - - - - #* Page Properties *# #if($allowChangePageName||$allowNavigatePage||$allowDeletePage) -
      #if($allowChangePageName) -
      - $messages.getString("portal.page.editing.pageConfiguration") -
      -
      - - -
      -
      - - -
      -
      - - -
      +
      +

      $messages.getString("portal.page.editing.pageConfiguration")

      +
      + $messages.getString("portal.page.editing.page") + +
      +
      + $messages.getString("portal.page.editing.page.title") + +
      +
      + $messages.getString("portal.page.editing.page.shorttitle") + +
      -
      - -
      -
      -
      +
      + +
      +
      #end -
      +
      #if($allowNavigatePage) -
      - $messages.getString("portal.page.position") -
      - - - -
      -
      +
      +

      $messages.getString("portal.page.position")

      +
      + $messages.getString("portal.page.editing.pagenavigation") + + +
      +
      #end -
      +
      #if($allowDeletePage) -
      - $messages.getString("portal.page.delete") -
      - - -
      -
      +
      +

      $messages.getString("portal.page.delete")

      +
      + $messages.getString("portal.page.editing.deleteThisPage") + +
      +
      #end -
      #end #* Add Page *# #if($allowAddPage) -
      -
      - $messages.getString("portal.page.editing.pageConfiguration") -
      -
      - - -
      -
      - - -
      -
      - - -
      -
      - -
      -
      -
      -
      +
      +

      $messages.getString("portal.page.editing.pageConfiguration")

      +
      +
      + $messages.getString("portal.page.editing.page") + +
      +
      + $messages.getString("portal.page.editing.page.title") + +
      +
      + $messages.getString("portal.page.editing.page.shorttitle") + +
      +
      + +
      +
      +
      #end #* Folder Properties *# #if($allowChangeFolderName||$allowNavigateFolder||$allowDeleteFolder) -
      #if($allowChangeFolderName) -
      - $messages.getString("portal.folder.editing.folderConfiguration") -
      -
      - - -
      -
      - - -
      -
      - - -
      -
      - -
      -
      -
      +
      +

      $messages.getString("portal.folder.editing.folderConfiguration")

      +
      + $messages.getString("portal.folder.editing.folder") + +
      +
      + $messages.getString("portal.folder.editing.folder.title") + +
      +
      + $messages.getString("portal.folder.editing.folder.shorttitle") + +
      +
      + +
      +
      #end -
      +
      #if($allowNavigateFolder) -
      - $messages.getString("portal.folder.position") -
      - - - -
      -
      +
      +

      $messages.getString("portal.folder.position")

      +
      + $messages.getString("portal.folder.editing.foldernavigation") + + +
      +
      #end -
      +
      #if($allowDeleteFolder) -
      - $messages.getString("portal.folder.delete") -
      - - -
      -
      +
      +

      $messages.getString("portal.folder.delete")

      +
      + $messages.getString("portal.folder.editing.deleteThisFolder") + +
      +
      #end -
      #end #* Add Folder *# #if($allowAddFolder) -
      -
      - $messages.getString("portal.folder.editing.folderConfiguration") -
      -
      - - -
      -
      - - -
      -
      - - -
      -
      - -
      -
      -
      -
      +
      +

      $messages.getString("portal.folder.editing.folderConfiguration")

      +
      +
      + $messages.getString("portal.folder.editing.folder") + +
      +
      + $messages.getString("portal.folder.editing.folder.title") + +
      +
      + $messages.getString("portal.folder.editing.folder.shorttitle") + +
      +
      + +
      +
      +
      #end #* Change Layout *# #if($allowChangeLayout) -
      -
      - $messages.getString("portal.page.editing.layout") - #foreach($ld in $decorationFactory.getLayouts($rc)) -
      -
      + + +
      #end #* Add Layout *# #if($allowAddLayout) -
      -
      - $messages.getString("portal.page.editing.layout") - #foreach($ld in $decorationFactory.getLayouts($rc)) -
      -
      + + +
      #end #* Change Theme *# #if ($allowChangePageTheme||$allowChangePortletDecorator) -
      #if ($allowChangePageTheme) -
      - $messages.getString("portal.page.editing.theme") - #foreach($td in $decorationFactory.getPageDecorations($rc)) -
      -
      + +
      +
      #end #getBoolProperty($allowChangePortletDecorator $rootDecorator "allow.change.portlet.decorator" true) ####### Take all fragments and apply style #if($allowChangePortletDecorator) -
      - $messages.getString("portal.page.editing.portlet.decorator") - - - - + + + - -
      + + +
      #end -
      #end - + - +
      -
      -
      - -#set($_actions = $layoutDecoration.actions) - #if($_actions.size() >0) - #foreach ($_action in $_actions) - - #end - #end -
      - - - - ## end edit mode #end @@ -453,10 +290,6 @@ #set($columnFloat = $columnLayout.getColumnFloat($columnIndex)) #set($columnWidth = $columnLayout.getColumnWidth($columnIndex)) -
      - #foreach($f in $column) ## Set up coordinates for this fragment #set($coords = $columnLayout.getCoordinate($f)) @@ -465,59 +298,68 @@ #set($row = $coords.y) ## get the decorated Portlet content -
      +
      ## editing block #if($editing) -
      +
      #set ($dcnt = $dcnt + 1) -
      - - - + + #if($f.type == "portlet") #set($fragmentType="Portlet") #if($allowChangePortletDecorator) - +
      ## Move portlet left #if($lastColumn > 0 && $col > 0) - - - +
      + + + +
      #end ## Move portlet up #if($row > 0) - - - +
      + + + +
      #end ## Remove portlet from page - - - +
      + + + +
      ## Move portlet down #if($row < $lastRow) - - - +
      + + + +
      #end ## Move portlet right #if($lastColumn > 0 && $col < $lastColumn) - - - +
      + + + +
      #end - -
      +
      #end ## Now get the real content @@ -527,21 +369,12 @@ #else $f.renderedContent #end -
      +
      #end -
      #set ($columnIndex = $columnIndex + 1) #end - - - -
      - + #if ($isRoot) -
      - - -
      #parse($myFragment.decoration.footer) #end Modified: pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-html/maximized/layout.vm =================================================================== --- pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-html/maximized/layout.vm 2007-05-29 01:34:13 UTC (rev 165) +++ pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-html/maximized/layout.vm 2007-05-29 04:35:27 UTC (rev 166) @@ -24,10 +24,10 @@ #end ## get the decorated Portlet content -
      +
      $jetspeed.setCurrentFragment($f) #parse($f.decoration.template) -
      +
      #if ($rootFragment.decoration.footer) #parse($rootFragment.decoration.footer) Modified: pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-wap2/columns/layout-help.vm =================================================================== --- pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-wap2/columns/layout-help.vm 2007-05-29 01:34:13 UTC (rev 165) +++ pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-wap2/columns/layout-help.vm 2007-05-29 04:35:27 UTC (rev 166) @@ -1,67 +1,69 @@ -#* + + +#* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*# - -#set($theme = $request.getAttribute("org.apache.jetspeed.theme")) -#set ($messages = $portletConfig.getResourceBundle($renderRequest.Locale)) - - - -#parse($theme.pageLayoutDecoration.header) - - - -
      - - - - -
      -

      $messages.getString("portal.help.title")

      -

      $messages.getString("portal.page.help.title")

      -

      view $messages.getString("portal.page.help.view")

      -

      help $messages.getString("portal.page.help.help")

      -

      edit $messages.getString("portal.page.help.edit")

      -

      select - $messages.getString("portal.portlet.help.title")

      -

      $messages.getString("portal.help.title")

      -

      minimize - $messages.getString("portal.portlet.help.minimize")

      -

      maximize - $messages.getString("portal.portlet.help.maximize")

      -

      restore - $messages.getString("portal.portlet.help.restore")

      -

      edit - $messages.getString("portal.portlet.help.edit")

      -

      print - $messages.getString("portal.portlet.help.print")

      -

      $messages.getString("portal.portlet.help.edit.title")

      -

      close - $messages.getString("portal.portlet.help.close")

      -

      move up - $messages.getString("portal.portlet.help.movePortletUp")

      -

      move down - $messages.getString("portal.portlet.help.movePortletDown")

      -

      move left - $messages.getString("portal.portlet.help.movePortletLeft")

      -

      move right - $messages.getString("portal.portlet.help.movePortletRight")

      -
      -
      - - - -#parse($theme.pageLayoutDecoration.footer) +the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*# + +#set($theme = $request.getAttribute("org.apache.jetspeed.theme")) +#set ($messages = $portletConfig.getResourceBundle($renderRequest.Locale)) + + + +#parse($theme.pageLayoutDecoration.header) + + + +
      + + + + +
      +

      $messages.getString("portal.help.title")

      +

      $messages.getString("portal.page.help.title")

      +

      view $messages.getString("portal.page.help.view")

      +

      help $messages.getString("portal.page.help.help")

      +

      edit $messages.getString("portal.page.help.edit")

      +

      select + $messages.getString("portal.portlet.help.title")

      +

      $messages.getString("portal.help.title")

      +

      minimize + $messages.getString("portal.portlet.help.minimize")

      +

      maximize + $messages.getString("portal.portlet.help.maximize")

      +

      restore + $messages.getString("portal.portlet.help.restore")

      +

      edit + $messages.getString("portal.portlet.help.edit")

      +

      print + $messages.getString("portal.portlet.help.print")

      +

      $messages.getString("portal.portlet.help.edit.title")

      +

      close + $messages.getString("portal.portlet.help.close")

      +

      move up + $messages.getString("portal.portlet.help.movePortletUp")

      +

      move down + $messages.getString("portal.portlet.help.movePortletDown")

      +

      move left + $messages.getString("portal.portlet.help.movePortletLeft")

      +

      move right + $messages.getString("portal.portlet.help.movePortletRight")

      +
      +
      + + + +#parse($theme.pageLayoutDecoration.footer) Modified: pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-wap2/columns/layout.vm =================================================================== --- pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-wap2/columns/layout.vm 2007-05-29 01:34:13 UTC (rev 165) +++ pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-wap2/columns/layout.vm 2007-05-29 04:35:27 UTC (rev 166) @@ -1,4 +1,5 @@ - + + #* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with @@ -25,184 +26,67 @@ #set($rootDecorator = $myPage.getRootFragment().decoration) #set($namespace="${renderResponse.namespace}") #getBoolProperty($allowAddPortlet $rootDecorator "allow.add.portlet" true) - -#if($myFragment.getDecorator()) - #set($decorator = $myFragment.getDecorator()) -#end - -#if($myFragment == $myPage.getRootFragment()) - #set($isRoot=true) -#end - -#if($request.getAttribute("editing") == true) - #set($editing = true) - #set($lastColumn = $renderRequest.getAttribute("numberOfColumns") - 1) -#end - +#if($myFragment.getDecorator())#set($decorator = $myFragment.getDecorator())#end +#if($myFragment == $myPage.getRootFragment())#set($isRoot=true)#end +#if($request.getAttribute("editing") == true)#set($editing = true)#set($lastColumn = $renderRequest.getAttribute("numberOfColumns") - 1)#end #set($layoutType =$portletConfig.getInitParameter("layoutType")) #set($columnLayout = $renderRequest.getAttribute("columnLayout")) #set($decorationFactory = $renderRequest.getAttribute("decorationFactory")) #set($rc = $renderRequest.getAttribute("org.apache.jetspeed.request.RequestContext")) #set($psrc = $rc.getAttribute("org.apache.jetspeed.portalsite.PortalSiteRequestContext")) #set($profiledPage = $psrc.Page.Path) - -#if ($isRoot) - #parse($myFragment.decoration.header) - #set($layoutClass = "portal-nested-layout") +#if ($isRoot)#parse($myFragment.decoration.header)#set($layoutClass = "portal-nested-layout") +#else#defineLayoutObjects()#set($layoutClass = "portal-layout")#end +
      +#if($editing) +#if($isRoot) +#getBoolProperty($allowChangePageTheme $rootDecorator "allow.change.page.theme" true) +#getBoolProperty($allowAddPage $rootDecorator "allow.add.page" true) +#getBoolProperty($allowChangePageName $rootDecorator "allow.change.page.name" true) +#getBoolProperty($allowNavigatePage $rootDecorator "allow.navigate.page" true) +#getBoolProperty($allowDeletePage $rootDecorator "allow.delete.page" true) +#getBoolProperty($allowChangeFolderTheme $rootDecorator "allow.change.folder.theme" true) +#getBoolProperty($allowAddFolder $rootDecorator "allow.add.folder" true) +#getBoolProperty($allowChangeFolderName $rootDecorator "allow.change.folder.name" true) +#getBoolProperty($allowNavigateFolder $rootDecorator "allow.navigate.folder" true) +#getBoolProperty($allowDeleteFolder $rootDecorator "allow.delete.folder" true) #else - #defineLayoutObjects() - #set($layoutClass = "portal-layout") +#set($allowChangePageTheme=false) +#set($allowAddPage=false) +#set($allowChangePageName=false) +#set($allowNavigatePage=false) +#set($allowDeletePage=false) +#set($allowChangeFolderTheme=false) +#set($allowAddFolder=false) +#set($allowChangeFolderName=false) +#set($allowNavigateFolder=false) +#set($allowDeleteFolder=false) #end -
      - -#if($editing) - #if($isRoot) - #getBoolProperty($allowChangePageTheme $rootDecorator "allow.change.page.theme" true) - #getBoolProperty($allowAddPage $rootDecorator "allow.add.page" true) - #getBoolProperty($allowChangePageName $rootDecorator "allow.change.page.name" true) - #getBoolProperty($allowNavigatePage $rootDecorator "allow.navigate.page" true) - #getBoolProperty($allowDeletePage $rootDecorator "allow.delete.page" true) - #getBoolProperty($allowChangeFolderTheme $rootDecorator "allow.change.folder.theme" true) - #getBoolProperty($allowAddFolder $rootDecorator "allow.add.folder" true) - #getBoolProperty($allowChangeFolderName $rootDecorator "allow.change.folder.name" true) - #getBoolProperty($allowNavigateFolder $rootDecorator "allow.navigate.folder" true) - #getBoolProperty($allowDeleteFolder $rootDecorator "allow.delete.folder" true) - #else - #set($allowChangePageTheme=false) - #set($allowAddPage=false) - #set($allowChangePageName=false) - #set($allowNavigatePage=false) - #set($allowDeletePage=false) - #set($allowChangeFolderTheme=false) - #set($allowAddFolder=false) - #set($allowChangeFolderName=false) - #set($allowNavigateFolder=false) - #set($allowDeleteFolder=false) - #end - - #getIntProperty($maxLayoutNesting $rootDecorator "max.layout.nesting" 2) - #if($request.getAttribute("fragmentNestingLevel") < $maxLayoutNesting) - #set($allowAddLayout=true) - #else - #set($allowAddLayout=false) - #end +#getIntProperty($maxLayoutNesting $rootDecorator "max.layout.nesting" 2) +#if($request.getAttribute("fragmentNestingLevel") < $maxLayoutNesting) +#set($allowAddLayout=true) +#else +#set($allowAddLayout=false) +#end - #getBoolProperty($allowChangeLayout $rootDecorator "allow.change.layout" true) +#getBoolProperty($allowChangeLayout $rootDecorator "allow.change.layout" true) - #set($form="f${renderResponse.namespace}") - #set($formAction = "$renderResponse.createActionURL()") - #set($submit = ".submit()") +#set($form="f${renderResponse.namespace}") +#set($formAction = "$renderResponse.createActionURL()") +#set($submit = ".submit()") - #* Preferences *# -
      -
      - $messages.getString("portal.preference.window.title") -
      -
      - -#* Menu *# - - - - - - - -
      -
      -
      - Title -
      - +
      +
      - - - #* Page Properties *# #if($allowChangePageName||$allowNavigatePage||$allowDeletePage) -
      +
      #if($allowChangePageName) -
      - $messages.getString("portal.page.editing.pageConfiguration") +
      +
      $messages.getString("portal.page.editing.pageConfiguration")
      @@ -221,37 +105,39 @@
      -
      +
      #end
      #if($allowNavigatePage) -
      - $messages.getString("portal.page.position") +
      +
      $messages.getString("portal.page.position")
      -
      +
      #end
      #if($allowDeletePage) -
      - $messages.getString("portal.page.delete") +
      +
      $messages.getString("portal.page.delete")
      - +
      -
      +
      +
      #end
      +
      #end #* Add Page *# #if($allowAddPage) -
      -
      - $messages.getString("portal.page.editing.pageConfiguration") +
      +
      +
      $messages.getString("portal.page.editing.pageConfiguration")
      @@ -269,16 +155,17 @@
      -
      +
      +
      #end #* Folder Properties *# #if($allowChangeFolderName||$allowNavigateFolder||$allowDeleteFolder) -
      +
      #if($allowChangeFolderName) -
      - $messages.getString("portal.folder.editing.folderConfiguration") +
      +
      $messages.getString("portal.folder.editing.folderConfiguration")
      @@ -296,37 +183,38 @@
      -
      +
      #end
      #if($allowNavigateFolder) -
      - $messages.getString("portal.folder.position") +
      +
      $messages.getString("portal.folder.position")
      -
      +
      #end
      #if($allowDeleteFolder) -
      - $messages.getString("portal.folder.delete") +
      +
      $messages.getString("portal.folder.delete")
      - +
      -
      +
      #end
      +
      #end #* Add Folder *# #if($allowAddFolder) -
      -
      - $messages.getString("portal.folder.editing.folderConfiguration") +
      +
      +
      $messages.getString("portal.folder.editing.folderConfiguration")
      @@ -344,103 +232,83 @@
      -
      +
      +
      #end #* Change Layout *# #if($allowChangeLayout) -
      -
      - $messages.getString("portal.page.editing.layout") +
      +
      +
      $messages.getString("portal.page.editing.layout")
      -
      +
      +
      #end #* Add Layout *# #if($allowAddLayout) -
      -
      - $messages.getString("portal.page.editing.layout") +
      +
      +
      $messages.getString("portal.page.editing.layout")
      -
      +
      +
      #end - #* Change Theme *# #if ($allowChangePageTheme||$allowChangePortletDecorator) -
      +
      #if ($allowChangePageTheme) -
      - $messages.getString("portal.page.editing.theme") +
      +
      $messages.getString("portal.page.editing.theme")
      -
      + +

      #end #getBoolProperty($allowChangePortletDecorator $rootDecorator "allow.change.portlet.decorator" true) ####### Take all fragments and apply style #if($allowChangePortletDecorator) -
      - $messages.getString("portal.page.editing.portlet.decorator") +
      +
      $messages.getString("portal.page.editing.portlet.decorator")
      -
      +
      #end #end - - -
      - -#set($_actions = $layoutDecoration.actions) - #if($_actions.size() >0) - #foreach ($_action in $_actions) - - #end - #end -
      - - + +
      ## end edit mode #end @@ -453,9 +321,7 @@ #set($columnFloat = $columnLayout.getColumnFloat($columnIndex)) #set($columnWidth = $columnLayout.getColumnWidth($columnIndex)) -
      +
      #foreach($f in $column) ## Set up coordinates for this fragment @@ -472,51 +338,61 @@
      #set ($dcnt = $dcnt + 1)
      - + #if($f.type == "portlet") #set($fragmentType="Portlet") #if($allowChangePortletDecorator) #end #else #set($fragmentType="Layout") #end +
      ## Move portlet left #if($lastColumn > 0 && $col > 0) - - - +
      + + + +
      #end ## Move portlet up #if($row > 0) - - - +
      + + + +
      #end ## Remove portlet from page - - - +
      + + + +
      ## Move portlet down #if($row < $lastRow) - - - +
      + + + +
      #end ## Move portlet right #if($lastColumn > 0 && $col < $lastColumn) - - - +
      + + + +
      #end -
      #end @@ -532,16 +408,9 @@
      #set ($columnIndex = $columnIndex + 1) #end - +
      - -
      #if ($isRoot) -
      - - -
      #parse($myFragment.decoration.footer) #end - Modified: pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-wap2/maximized/layout.vm =================================================================== --- pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-wap2/maximized/layout.vm 2007-05-29 01:34:13 UTC (rev 165) +++ pal-portal/trunk/portal/files/src/webapp/WEB-INF/templates/layout/softbank-wap2/maximized/layout.vm 2007-05-29 04:35:27 UTC (rev 166) @@ -1,3 +1,5 @@ + + #* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with From svnnotify @ sourceforge.jp Tue May 29 16:45:41 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 29 May 2007 16:45:41 +0900 Subject: [pal-cvs 2435] [167] added serializer tool to export/import j2 data. Message-ID: <20070529074541.271002AC033@users.sourceforge.jp> Revision: 167 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=167 Author: shinsuke Date: 2007-05-29 16:45:40 +0900 (Tue, 29 May 2007) Log Message: ----------- added serializer tool to export/import j2 data. Added Paths: ----------- pal-portal/trunk/portal/tools/ pal-portal/trunk/portal/tools/serializer/ pal-portal/trunk/portal/tools/serializer/build.properties pal-portal/trunk/portal/tools/serializer/build.xml pal-portal/trunk/portal/tools/serializer/lib/ pal-portal/trunk/portal/tools/serializer/lib/tyrex-1.0.1.jar -------------- next part -------------- Added: pal-portal/trunk/portal/tools/serializer/build.properties =================================================================== --- pal-portal/trunk/portal/tools/serializer/build.properties 2007-05-29 04:35:27 UTC (rev 166) +++ pal-portal/trunk/portal/tools/serializer/build.properties 2007-05-29 07:45:40 UTC (rev 167) @@ -0,0 +1,16 @@ +build.dir=${basedir}/target + +# +# Properties +# +org.apache.jetspeed.import.file=${build.dir}/j2-import.xml +org.apache.jetspeed.export.file=${build.dir}/j2-export.xml + +org.apache.jetspeed.server.home = __TOMCAT_HOME__ +org.apache.jetspeed.derbydatabase.path = /tmp +org.apache.jetspeed.production.database.url = jdbc:derby:${org.apache.jetspeed.derbydatabase.path}/productiondb;create=true +org.apache.jetspeed.production.database.driver = org.apache.derby.jdbc.EmbeddedDriver +org.apache.jetspeed.production.database.user = +org.apache.jetspeed.production.database.password = +org.apache.jetspeed.portal.home = ${org.apache.jetspeed.server.home}/webapps/palportal + Property changes on: pal-portal/trunk/portal/tools/serializer/build.properties ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/portal/tools/serializer/build.xml =================================================================== --- pal-portal/trunk/portal/tools/serializer/build.xml 2007-05-29 04:35:27 UTC (rev 166) +++ pal-portal/trunk/portal/tools/serializer/build.xml 2007-05-29 07:45:40 UTC (rev 167) @@ -0,0 +1,148 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Property changes on: pal-portal/trunk/portal/tools/serializer/build.xml ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/trunk/portal/tools/serializer/lib/tyrex-1.0.1.jar =================================================================== (Binary files differ) Property changes on: pal-portal/trunk/portal/tools/serializer/lib/tyrex-1.0.1.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream From svnnotify @ sourceforge.jp Wed May 30 21:39:34 2007 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Wed, 30 May 2007 21:39:34 +0900 Subject: [pal-cvs 2436] [168] changed id Message-ID: <20070530123934.1037A2AC014@users.sourceforge.jp> Revision: 168 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=168 Author: shinsuke Date: 2007-05-30 21:39:33 +0900 (Wed, 30 May 2007) Log Message: ----------- changed id Modified Paths: -------------- pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/docomo-html/default-page.psml pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/docomo-html/forgot.psml pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/docomo-html/register.psml pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/docomo-wap2/default-page.psml pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/docomo-wap2/forgot.psml pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/docomo-wap2/register.psml pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/kddi-hdml/default-page.psml pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/kddi-hdml/forgot.psml pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/kddi-hdml/register.psml pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/kddi-wap2/default-page.psml pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/kddi-wap2/forgot.psml pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/kddi-wap2/register.psml pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/softbank-html/default-page.psml pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/softbank-html/forgot.psml pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/softbank-html/register.psml pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/softbank-wap2/default-page.psml pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/softbank-wap2/forgot.psml pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/softbank-wap2/register.psml -------------- next part -------------- Modified: pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/docomo-html/default-page.psml =================================================================== --- pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/docomo-html/default-page.psml 2007-05-29 07:45:40 UTC (rev 167) +++ pal-portal/trunk/portal/resources/psml/default/_role/site/_mediatype/docomo-html/default-page.psml 2007-05-30 12:39:33 UTC (rev 168) @@ -1,10 +1,10 @@ -