svnno****@sourc*****
svnno****@sourc*****
2007年 5月 12日 (土) 22:56:38 JST
Revision: 123 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=123 Author: shinsuke Date: 2007-05-12 22:56:37 +0900 (Sat, 12 May 2007) Log Message: ----------- moved to svn. Added Paths: ----------- wiki/trunk/.classpath wiki/trunk/.project wiki/trunk/.settings/ wiki/trunk/.settings/org.eclipse.core.resources.prefs wiki/trunk/.settings/org.eclipse.jdt.core.prefs wiki/trunk/.settings/org.eclipse.jdt.ui.prefs wiki/trunk/.settings/org.seasar.dblauncher.prefs wiki/trunk/.tomcatplugin wiki/trunk/LICENSE.TXT wiki/trunk/build.xml wiki/trunk/pom.xml wiki/trunk/src/ wiki/trunk/src/main/ wiki/trunk/src/main/java/ wiki/trunk/src/main/java/jp/ wiki/trunk/src/main/java/jp/sf/ wiki/trunk/src/main/java/jp/sf/pal/ wiki/trunk/src/main/java/jp/sf/pal/wiki/ wiki/trunk/src/main/java/jp/sf/pal/wiki/WikiConstants.java wiki/trunk/src/main/java/jp/sf/pal/wiki/callback/ wiki/trunk/src/main/java/jp/sf/pal/wiki/callback/WikiLinkGeneratorCallback.java wiki/trunk/src/main/java/jp/sf/pal/wiki/entity/ wiki/trunk/src/main/java/jp/sf/pal/wiki/entity/WikiPage.java wiki/trunk/src/main/java/jp/sf/pal/wiki/portlet/ wiki/trunk/src/main/java/jp/sf/pal/wiki/portlet/WikiPortletFilter.java wiki/trunk/src/main/java/jp/sf/pal/wiki/service/ wiki/trunk/src/main/java/jp/sf/pal/wiki/service/WikiContentService.java wiki/trunk/src/main/java/jp/sf/pal/wiki/util/ wiki/trunk/src/main/java/jp/sf/pal/wiki/util/WikiUtil.java wiki/trunk/src/main/java/jp/sf/pal/wiki/web/ wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/ 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/resources/ wiki/trunk/src/main/resources/app.dicon wiki/trunk/src/main/resources/appMessages.properties wiki/trunk/src/main/resources/appMessages_ja.properties wiki/trunk/src/main/resources/app_aop.dicon wiki/trunk/src/main/resources/convention.dicon wiki/trunk/src/main/resources/creator.dicon wiki/trunk/src/main/resources/customizer.dicon wiki/trunk/src/main/resources/env.txt wiki/trunk/src/main/resources/jdbc.dicon wiki/trunk/src/main/resources/s2container.dicon wiki/trunk/src/main/resources/streamconverter.dicon wiki/trunk/src/main/resources/teedaCustomize.dicon wiki/trunk/src/main/resources/teedaErrorPage.dicon wiki/trunk/src/main/webapp/ wiki/trunk/src/main/webapp/WEB-INF/ wiki/trunk/src/main/webapp/WEB-INF/faces-config.xml wiki/trunk/src/main/webapp/WEB-INF/portlet.xml wiki/trunk/src/main/webapp/WEB-INF/web.xml wiki/trunk/src/main/webapp/WEB-INF/wiki/ wiki/trunk/src/main/webapp/WEB-INF/wiki/data/ wiki/trunk/src/main/webapp/WEB-INF/wiki/data/FrontPage.txt wiki/trunk/src/main/webapp/view/ wiki/trunk/src/main/webapp/view/error/ wiki/trunk/src/main/webapp/view/error/error.html wiki/trunk/src/main/webapp/view/viewer/ 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 -------------- Added: wiki/trunk/.classpath =================================================================== --- wiki/trunk/.classpath 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/.classpath 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,33 @@ +<classpath> + <classpathentry kind="src" path="src/main/java"/> + <classpathentry kind="src" path="src/main/resources"/> + <classpathentry kind="output" path="target/classes"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="var" path="M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0.jar" sourcepath="M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar" sourcepath="M2_REPO/junit/junit/3.8.1/junit-3.8.1-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar" sourcepath="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/portlet-api/portlet-api/1.0/portlet-api-1.0.jar"/> + <classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.1/commons-lang-2.1.jar" sourcepath="M2_REPO/commons-lang/commons-lang/2.1/commons-lang-2.1-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/poi/poi/2.5.1-final-20040804/poi-2.5.1-final-20040804.jar"/> + <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13.jar" sourcepath="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/javax/servlet/jstl/1.1.2/jstl-1.1.2.jar" sourcepath="M2_REPO/javax/servlet/jstl/1.1.2/jstl-1.1.2-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/jp/sf/pal/portlet-output-optimizer/0.2/portlet-output-optimizer-0.2.jar" sourcepath="M2_REPO/jp/sf/pal/portlet-output-optimizer/0.2/portlet-output-optimizer-0.2-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/org/seasar/teeda/teeda-ajax/1.0.7-20070510/teeda-ajax-1.0.7-20070510.jar" sourcepath="M2_REPO/org/seasar/teeda/teeda-ajax/1.0.7-20070510/teeda-ajax-1.0.7-20070510-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/jp/sf/pal/faces-response-filter/0.2/faces-response-filter-0.2.jar" sourcepath="M2_REPO/jp/sf/pal/faces-response-filter/0.2/faces-response-filter-0.2-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar"/> + <classpathentry kind="var" path="M2_REPO/jboss/javassist/3.4.ga/javassist-3.4.ga.jar"/> + <classpathentry kind="var" path="M2_REPO/org/seasar/container/s2-framework/2.4.11/s2-framework-2.4.11.jar"/> + <classpathentry kind="var" path="M2_REPO/jp/sf/streamconverter/streamconverter-wiki/0.2/streamconverter-wiki-0.2.jar" sourcepath="M2_REPO/jp/sf/streamconverter/streamconverter-wiki/0.2/streamconverter-wiki-0.2-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/jp/sf/pal/faces-utils/0.3.1/faces-utils-0.3.1.jar" sourcepath="M2_REPO/jp/sf/pal/faces-utils/0.3.1/faces-utils-0.3.1-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/org/seasar/container/s2-extension/2.4.11/s2-extension-2.4.11.jar"/> + <classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar" sourcepath="M2_REPO/javax/servlet/servlet-api/2.3/servlet-api-2.3-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar"/> + <classpathentry kind="var" path="M2_REPO/org/seasar/teeda/teeda-core/1.0.7-20070510/teeda-core-1.0.7-20070510.jar" sourcepath="M2_REPO/org/seasar/teeda/teeda-core/1.0.7-20070510/teeda-core-1.0.7-20070510-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/org/seasar/portlet/s2-portlet/1.0.7/s2-portlet-1.0.7.jar" sourcepath="M2_REPO/org/seasar/portlet/s2-portlet/1.0.7/s2-portlet-1.0.7-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/org/apache/portals/bridges/portals-bridges-portletfilter/1.0.2-dev/portals-bridges-portletfilter-1.0.2-dev.jar"/> + <classpathentry kind="var" path="M2_REPO/ognl/ognl/2.6.7/ognl-2.6.7.jar"/> + <classpathentry kind="var" path="M2_REPO/org/seasar/teeda/teeda-extension/1.0.7-20070510/teeda-extension-1.0.7-20070510.jar" sourcepath="M2_REPO/org/seasar/teeda/teeda-extension/1.0.7-20070510/teeda-extension-1.0.7-20070510-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/commons-el/commons-el/1.0/commons-el-1.0.jar" sourcepath="M2_REPO/commons-el/commons-el/1.0/commons-el-1.0-sources.jar"/> + <classpathentry kind="var" path="M2_REPO/rhino/rhino/1.6r2/rhino-1.6r2.jar"/> + <classpathentry kind="var" path="M2_REPO/jp/sf/streamconverter/streamconverter-framework/0.2/streamconverter-framework-0.2.jar" sourcepath="M2_REPO/jp/sf/streamconverter/streamconverter-framework/0.2/streamconverter-framework-0.2-sources.jar"/> +</classpath> \ No newline at end of file Property changes on: wiki/trunk/.classpath ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/.project =================================================================== --- wiki/trunk/.project 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/.project 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,18 @@ +<projectDescription> + <name>wiki</name> + <comment></comment> + <projects/> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments/> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.seasar.dolteng.eclipse.nature</nature> + <nature>org.seasar.diigu.eclipse.diiguNature</nature> + <nature>org.seasar.dblauncher.nature</nature> + <nature>com.sysdeo.eclipse.tomcat.tomcatnature</nature> + </natures> +</projectDescription> \ No newline at end of file Property changes on: wiki/trunk/.project ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/.settings/org.eclipse.core.resources.prefs =================================================================== --- wiki/trunk/.settings/org.eclipse.core.resources.prefs 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/.settings/org.eclipse.core.resources.prefs 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,3 @@ +#Sat Feb 04 04:18:24 JST 2006 +eclipse.preferences.version=1 +encoding/<project>=UTF-8 Added: wiki/trunk/.settings/org.eclipse.jdt.core.prefs =================================================================== --- wiki/trunk/.settings/org.eclipse.jdt.core.prefs 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/.settings/org.eclipse.jdt.core.prefs 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,261 @@ +#Thu Jun 08 15:03:10 JST 2006 +eclipse.preferences.version=1 +org.eclipse.jdt.core.codeComplete.argumentPrefixes= +org.eclipse.jdt.core.codeComplete.argumentSuffixes= +org.eclipse.jdt.core.codeComplete.fieldPrefixes= +org.eclipse.jdt.core.codeComplete.fieldSuffixes= +org.eclipse.jdt.core.codeComplete.localPrefixes= +org.eclipse.jdt.core.codeComplete.localSuffixes= +org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= +org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.4 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning +org.eclipse.jdt.core.compiler.source=1.4 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=1 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines=false +org.eclipse.jdt.core.formatter.comment.format_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_source_code=false +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=80 +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=80 +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=space +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false Added: wiki/trunk/.settings/org.eclipse.jdt.ui.prefs =================================================================== --- wiki/trunk/.settings/org.eclipse.jdt.ui.prefs 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/.settings/org.eclipse.jdt.ui.prefs 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +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=<?xml version\="1.0" encoding\="UTF-8"?>\r\n<templates><template id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment" description\="Comment for getter method" context\="gettercomment_context" enabled\="true" deleted\="false" autoinsert\="true">/**\r\n * @return Returns the ${bare_field_name}.\r\n */</template><template id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment" description\="Comment for setter method" context\="settercomment_context" enabled\="true" deleted\="false" autoinsert\="true">/**\r\n * @param ${param} The ${bare_field_name} to set.\r\n */</template><template id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment" description\="Comment for created constructors" context\="constructorcomment_context" enabled\="true" deleted\="false" autoinsert\="true">/**\r\n * ${tags}\r\n */</template><template id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment" description\="Comment for created Java files" context\="filecomment_context" enabled\="true" deleted\="false" autoinsert\="false">/*\r\n * Copyright 2004-2006 The Portal Application Laboratory Team.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the "License");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http\://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an "AS IS" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, \r\n * either express or implied. See the License for the specific language\r\n * governing permissions and limitations under the License.\r\n */</template><template id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment" description\="Comment for created types" context\="typecomment_context" enabled\="true" deleted\="false" autoinse ="true">/**\r\n * @author ${user}\r\n *\r\n * ${tags}\r\n */</template><template id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment" description\="Comment for fields" context\="fieldcomment_context" enabled\="true" deleted\="false" autoinsert\="true">/**\r\n * \r\n */</template><template id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment" description\="Comment for non-overriding methods" context\="methodcomment_context" enabled\="true" deleted\="false" autoinsert\="true">/**\r\n * ${tags}\r\n */</template><template id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment" description\="Comment for overriding methods" context\="overridecomment_context" enabled\="true" deleted\="false" autoinsert\="true">/* (non-Javadoc)\r\n * ${see_to_overridden}\r\n */</template><template id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype" description\="Newly created files" context\="newtype_context" enabled\="true" deleted\="false" autoinsert\="false">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock" description\="Code in new catch blocks" context\="catchblock_context" enabled\="true" deleted\="false" autoinsert\="true">// ${todo} Auto-generated catch block\r\n${exception_var}.printStackTrace();</template><template id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody" description\="Code in created method stubs" context\="methodbody_context" enabled\="true" deleted\="false" autoinsert\="true">// ${todo} Auto-generated method stub\r\n${body_statement}</template><template id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody" description\="Code in created constructor stubs" context\="constructorbody_context" enabled\="true" deleted\="false" autoinsert\="true">${body_statement}\r\n// ${todo} Auto-generated constructor stub</template><template id\="org.eclipse. .ui.text.codetemplates.getterbody" name\="getterbody" description\="Code in created getters" context\="getterbody_context" enabled\="true" deleted\="false" autoinsert\="true">return ${field};</template><template id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody" description\="Code in created setters" context\="setterbody_context" enabled\="true" deleted\="false" autoinsert\="true">${field} \= ${param};</template></templates> Added: wiki/trunk/.settings/org.seasar.dblauncher.prefs =================================================================== --- wiki/trunk/.settings/org.seasar.dblauncher.prefs 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/.settings/org.seasar.dblauncher.prefs 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,3 @@ +#Fri Nov 24 23:23:43 JST 2006 +baseDir=/wiki/src/main/webapp/WEB-INF/classes/data +eclipse.preferences.version=1 Added: wiki/trunk/.tomcatplugin =================================================================== --- wiki/trunk/.tomcatplugin 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/.tomcatplugin 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<tomcatProjectProperties> +<rootDir>src/main/webapp/</rootDir> +<exportSource>false</exportSource> +<reloadable>false</reloadable> +<redirectLogger>true</redirectLogger> +<updateXml>true</updateXml> +<warLocation></warLocation> +<extraInfo></extraInfo> +<webPath>/wiki</webPath> +</tomcatProjectProperties> \ No newline at end of file Added: wiki/trunk/LICENSE.TXT =================================================================== --- wiki/trunk/LICENSE.TXT 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/LICENSE.TXT 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,190 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2004 The Apache Software Foundation + Added: wiki/trunk/build.xml =================================================================== --- wiki/trunk/build.xml 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/build.xml 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,138 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<project name="build" default="all" basedir="."> + + <property name="war.name" value="wiki"/> + <property name="src.main.webapp.webinf.classes" value="${basedir}/src/main/webapp/WEB-INF/classes"/> + <property name="src.main.webapp.webinf.lib" value="${basedir}/src/main/webapp/WEB-INF/lib"/> + <property name="target.webapp.webinf.lib" value="${basedir}/target/${war.name}/WEB-INF/lib"/> + <property name="target.webapp.webinf.classes" value="${basedir}/target/${war.name}/WEB-INF/classes"/> + + <property name="shell.cmd" value="sh"/> + <property name="shell.options" value="-c"/> + + <target name="check.os" + description="--> Check OS"> + <condition property="isWindows"> + <os family="windows" /> + </condition> + </target> + + <target name="setup.shell" depends="check.os" if="isWindows" + description="--> Setup shell parameters"> + <property name="shell.cmd" value="cmd.exe"/> + <property name="shell.options" value="/c"/> + </target> + + <target name="clean" + description="--> Clean Directories"> + <delete dir="${src.main.webapp.webinf.classes}"/> + <delete dir="${src.main.webapp.webinf.lib}"/> + </target> + + <!-- =================================================================== --> + <!-- SERVLET DEVELOPMENT ENVRIONMENT --> + <!-- =================================================================== --> + + <target name="servlet" depends="setup.shell,clean" + description="--> Setup Servlet Delopment Environment"> + + <delete dir="${basedir}/target"/> + <delete dir="${basedir}/work"/> + + <!-- pom.xml --> + <replace + file="${basedir}/pom.xml" + token="<!-- SERVLET DEV: BEGIN @@@" + value="<!-- SERVLET DEV: BEGIN -->" + > + </replace> + <replace + file="${basedir}/pom.xml" + token="@@@@ SERVLET DEV: END -->" + value="<!-- SERVLET DEV: END -->" + > + </replace> + + <!-- web.xml --> + <replace + file="${basedir}/src/main/webapp/WEB-INF/web.xml" + token="<!-- SERVLET DEV: BEGIN @@@" + value="<!-- SERVLET DEV: BEGIN -->" + > + </replace> + <replace + file="${basedir}/src/main/webapp/WEB-INF/web.xml" + token="@@@@ SERVLET DEV: END -->" + value="<!-- SERVLET DEV: END -->" + > + </replace> + + <exec + executable="${shell.cmd}" + failonerror="true" + dir="${basedir}" + > + <arg line="${shell.options} 'mvn install'"/> + </exec> + + <mkdir dir="${src.main.webapp.webinf.classes}"/> + <mkdir dir="${src.main.webapp.webinf.lib}"/> + + <copy todir="${src.main.webapp.webinf.lib}"> + <fileset dir="${target.webapp.webinf.lib}"> + <include name="*.jar"/> + </fileset> + </copy> + <copy todir="${src.main.webapp.webinf.classes}"> + <fileset dir="${target.webapp.webinf.classes}"> + <include name="**"/> + </fileset> + </copy> + + <delete dir="${basedir}/target"/> + + </target> + + <!-- =================================================================== --> + <!-- PORTLET DEVELOPMENT ENVRIONMENT --> + <!-- =================================================================== --> + + <target name="portlet" depends="setup.shell,clean" + description="--> Setup Portlet Delopment Environment"> + + <delete dir="${basedir}/target"/> + <delete dir="${basedir}/work"/> + + <!-- pom.xml --> + <replace + file="${basedir}/pom.xml" + token="<!-- SERVLET DEV: BEGIN -->" + value="<!-- SERVLET DEV: BEGIN @@@" + > + </replace> + <replace + file="${basedir}/pom.xml" + token="<!-- SERVLET DEV: END -->" + value="@@@@ SERVLET DEV: END -->" + > + </replace> + + <!-- web.xml --> + <replace + file="${basedir}/src/main/webapp/WEB-INF/web.xml" + token="<!-- SERVLET DEV: BEGIN -->" + value="<!-- SERVLET DEV: BEGIN @@@" + > + </replace> + <replace + file="${basedir}/src/main/webapp/WEB-INF/web.xml" + token="<!-- SERVLET DEV: END -->" + value="@@@@ SERVLET DEV: END -->" + > + </replace> + + </target> + +</project> + Property changes on: wiki/trunk/build.xml ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/pom.xml =================================================================== --- wiki/trunk/pom.xml 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/pom.xml 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,269 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>jp.sf.pal</groupId> + <artifactId>wiki</artifactId> + <version>0.2-SNAPSHOT</version> + <packaging>war</packaging> + <name>Wiki Portlet Using Teeda</name> + <description/> + <url>http://pal.sourceforge.jp/</url> + <inceptionYear>2005</inceptionYear> + <developers> + <developer> + <id>shinsuke</id> + <name>Shinsuke Sugaya</name> + <email>shinsuke_at_yahoo.co.jp</email> + <url>http://d.hatena.ne.jp/shinsuke_sugaya/</url> + <organization/> + <organizationUrl/> + <timezone>+9</timezone> + </developer> + </developers> + <licenses> + <license> + <name>The Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + <scm> + <connection>scm:cvs:pserver:anony****@cvs*****:/cvsroot/pal:wiki</connection> + <developerConnection>scm:cvs:pserver:anony****@cvs*****:/cvsroot/pal:wiki</developerConnection> + <url>http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/pal/wiki</url> + </scm> + <organization> + <name>Portal Application Laboratory</name> + <url>http://pal.sourceforge.jp/</url> + </organization> + <build> + <finalName>wiki</finalName> + <defaultGoal>validate</defaultGoal> + <pluginManagement> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.4</source> + <target>1.4</target> + <encoding>UTF-8</encoding> + </configuration> + </plugin> + <plugin> + <artifactId>maven-deploy-plugin</artifactId> + <configuration> + <updateReleaseInfo>true</updateReleaseInfo> + </configuration> + </plugin> +<!-- + <plugin> + <artifactId>maven-site-plugin</artifactId> + <configuration> + <outputEncodinf>UTF-8</outputEncodinf> + </configuration> + </plugin> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <forkMode>none</forkMode> + </configuration> + </plugin> + --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <version>2.0-SNAPSHOT</version> + <executions> + <execution> + <goals> + <goal>clean</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </pluginManagement> + <plugins> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>source-jar</id> + <phase>package</phase> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> +<!-- + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + <executions> + <execution> + <id>javadoc-jar</id> + <phase>package</phase> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + <configuration> + <charset>UTF-8</charset> + </configuration> + </plugin> +--> + </plugins> + </build> + <repositories> + <repository> + <id>maven.marevol.com</id> + <name>Maven2 Repository on marevol.com</name> + <url>http://www.marevol.com/maven2</url> + </repository> + <repository> + <id>maven.seasar.org</id> + <name>The Seasar Foundation Maven2 Repository</name> + <url>http://maven.seasar.org/maven2</url> + </repository> + </repositories> + <dependencies> +<!-- SERVLET DEV: BEGIN @@@ + <dependency> + <groupId>jp.sf.pal</groupId> + <artifactId>faces-dev-filter</artifactId> + <version>0.1</version> + <scope>compile</scope> + </dependency> +@@@@ SERVLET DEV: END --> + <dependency> + <groupId>jp.sf.pal</groupId> + <artifactId>faces-utils</artifactId> + <version>0.3.1</version> + </dependency> + <dependency> + <groupId>jp.sf.streamconverter</groupId> + <artifactId>streamconverter-framework</artifactId> + <version>0.2</version> + </dependency> + <dependency> + <groupId>jp.sf.streamconverter</groupId> + <artifactId>streamconverter-wiki</artifactId> + <version>0.2</version> + </dependency> + <dependency> + <groupId>xerces</groupId> + <artifactId>xercesImpl</artifactId> + <version>2.8.1</version> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>servlet-api</artifactId> + <version>2.3</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>portlet-api</groupId> + <artifactId>portlet-api</artifactId> + <version>1.0</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.seasar.teeda</groupId> + <artifactId>teeda-core</artifactId> + <version>1.0.7-20070510</version> + <type>jar</type> + </dependency> + <dependency> + <groupId>org.seasar.teeda</groupId> + <artifactId>teeda-extension</artifactId> + <version>1.0.7-20070510</version> + <type>jar</type> + </dependency> + <dependency> + <groupId>org.seasar.portlet</groupId> + <artifactId>s2-portlet</artifactId> + <version>1.0.7</version> + </dependency> + <dependency> + <groupId>org.apache.portals.bridges</groupId> + <artifactId>portals-bridges-portletfilter</artifactId> + <version>1.0.2-dev</version> + </dependency> + <dependency> + <groupId>jp.sf.pal</groupId> + <artifactId>faces-response-filter</artifactId> + <version>0.2</version> + </dependency> + <dependency> + <groupId>jp.sf.pal</groupId> + <artifactId>portlet-output-optimizer</artifactId> + <version>0.2</version> + <type>jar</type> + </dependency> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>1.2.13</version> + <type>jar</type> + </dependency> + </dependencies> + <reporting> + <plugins> + <plugin> + <artifactId>maven-project-info-reports-plugin</artifactId> + </plugin> +<!-- + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>surefire-report-maven-plugin</artifactId> + </plugin> + --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>changelog-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>taglist-maven-plugin</artifactId> + <configuration> + <tags> + <tag>FIXME</tag> + <tag>TODO</tag> + <tag>XXX</tag> + </tags> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <version>2.0-SNAPSHOT</version> +<!-- + <configuration> + <outputDirectory>${project.build.directory}/site/cobertura</outputDirectory> + </configuration> + --> + </plugin> +<!-- + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + </plugin> + <plugin> + <artifactId>maven-clover-plugin</artifactId> + </plugin> + <plugin> + <artifactId>maven-pmd-plugin</artifactId> + </plugin> + <plugin> + <artifactId>maven-checkstyle-plugin</artifactId> + </plugin> + --> + </plugins> + </reporting> +</project> Property changes on: wiki/trunk/pom.xml ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/java/jp/sf/pal/wiki/WikiConstants.java =================================================================== --- wiki/trunk/src/main/java/jp/sf/pal/wiki/WikiConstants.java 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/WikiConstants.java 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,52 @@ +/* + * Copyright 2004-2006 The Portal Application Laboratory Team. + * + * Licensed 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.wiki; + +/** + * @author shinsuke + * + */ +public class WikiConstants { + + public static final String CONSTANTS_PREFIX = "jp.sf.pal.wiki."; + + public static final String CURRENT_PAGE_NAME = CONSTANTS_PREFIX + + "CurrentPage"; + + public static final String ROOT_DIRECTORY = "root-directory"; + + public static final String DEFAULT_ROOT_DIRECTORY = "/WEB-INF/wiki"; + + public static final String WEBAPP_ROOT_KEY = "${webappRoot}"; + + public static final String DATA_DIRECTORY = "data"; + + public static final String DATA_SUFFIX = ".txt"; + + public static final String ENCODING = "encoding"; + + public static final String FRONT_PAGE = "FrontPage"; + + public static final String WIKI_CONVERTER_PIPELINE = CONSTANTS_PREFIX + + "WikiConverterPipeline"; + + public static final String DISPLAY_CONTENT_HTMLPAGE = "viewer_displayContent"; + + public static final String CREATE_NEW_CONTENT_HTMLPAGE = "viewer_createNewContent"; + + public static final String EDIT_CONTENT_HTMLPAGE = "viewer_editContent"; + +} Property changes on: wiki/trunk/src/main/java/jp/sf/pal/wiki/WikiConstants.java ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/java/jp/sf/pal/wiki/callback/WikiLinkGeneratorCallback.java =================================================================== --- wiki/trunk/src/main/java/jp/sf/pal/wiki/callback/WikiLinkGeneratorCallback.java 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/callback/WikiLinkGeneratorCallback.java 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,91 @@ +/* + * Copyright 2004-2006 The Portal Application Laboratory Team. + * + * Licensed 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.wiki.callback; + +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; + +import javax.faces.context.FacesContext; +import javax.portlet.PortletURL; +import javax.portlet.RenderResponse; + +import org.seasar.teeda.core.portlet.FacesPortlet; + +import jp.sf.stconv.wiki.pipeline.callback.LinkGeneratorCallback; + +/** + * @author shinsuke + * + */ +public class WikiLinkGeneratorCallback implements LinkGeneratorCallback { + + private Map attributes; + + public WikiLinkGeneratorCallback() { + } + + /* + * (non-Javadoc) + * + * @see jp.sf.stconv.wiki.pipeline.callback.LinkGeneratorCallback#addAttribute(java.lang.String, + * java.lang.String) + */ + public void addAttribute(String key, String value) { + attributes.put(key, value); + } + + /* + * (non-Javadoc) + * + * @see jp.sf.stconv.wiki.pipeline.callback.LinkGeneratorCallback#getUrl() + */ + public String getUrl() { + Object r = FacesContext.getCurrentInstance().getExternalContext() + .getResponse(); + if (r instanceof RenderResponse) { + // PortletURL portletURL = ((RenderResponse) r).createActionURL(); + PortletURL portletURL = ((RenderResponse) r).createRenderURL(); + if (portletURL != null) { + for (Iterator i = attributes.entrySet().iterator(); i.hasNext();) { + Map.Entry entry = (Map.Entry) i.next(); + if (entry.getKey() != null && entry.getValue() != null) { + portletURL.setParameter((String) entry.getKey(), + (String) entry.getValue()); + } + } + portletURL.setParameter(FacesPortlet.VIEW_ID, FacesContext + .getCurrentInstance().getViewRoot().getViewId()); + return portletURL.toString(); + } + } + return ""; + } + + /* + * (non-Javadoc) + * + * @see jp.sf.stconv.wiki.pipeline.callback.LinkGeneratorCallback#init() + */ + public void init() { + if (attributes != null) { + attributes.clear(); + } else { + attributes = new HashMap(); + } + } + +} Property changes on: wiki/trunk/src/main/java/jp/sf/pal/wiki/callback/WikiLinkGeneratorCallback.java ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/java/jp/sf/pal/wiki/entity/WikiPage.java =================================================================== --- wiki/trunk/src/main/java/jp/sf/pal/wiki/entity/WikiPage.java 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/entity/WikiPage.java 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,91 @@ +/* + * Copyright 2004-2006 The Portal Application Laboratory Team. + * + * Licensed 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.wiki.entity; + +import java.io.File; +import java.util.Date; + +/** + * @author shinsuke + * + */ +public class WikiPage { + private String pageName; + + private File file; + + private Date updated; + + /** + * @return Returns the file. + */ + public File getFile() { + return file; + } + + /** + * @param file + * The file to set. + */ + public void setFile(File file) { + this.file = file; + } + + /** + * @return Returns the title. + */ + public String getPageName() { + return pageName; + } + + /** + * @param title + * The title to set. + */ + public void setPageName(String title) { + this.pageName = title; + } + + /** + * @return Returns the updated. + */ + public Date getUpdated() { + return updated; + } + + /** + * @param updated + * The updated to set. + */ + public void setUpdated(Date updated) { + this.updated = updated; + } + + /** + * @return Returns the label. + */ + public String getLabel() { + return pageName; + } + + /** + * @return Returns the value. + */ + public String getValue() { + return pageName; + } + +} Property changes on: wiki/trunk/src/main/java/jp/sf/pal/wiki/entity/WikiPage.java ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/java/jp/sf/pal/wiki/portlet/WikiPortletFilter.java =================================================================== --- wiki/trunk/src/main/java/jp/sf/pal/wiki/portlet/WikiPortletFilter.java 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/portlet/WikiPortletFilter.java 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,92 @@ +/* + * Copyright 2004-2006 The Portal Application Laboratory Team. + * + * Licensed 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.wiki.portlet; + +import java.io.IOException; + +import javax.portlet.ActionRequest; +import javax.portlet.ActionResponse; +import javax.portlet.PortletException; +import javax.portlet.RenderRequest; +import javax.portlet.RenderResponse; + +import jp.sf.pal.wiki.WikiConstants; +import jp.sf.stconv.wiki.pipeline.callback.LinkGeneratorCallback; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.apache.portals.bridges.portletfilter.PortletFilter; +import org.apache.portals.bridges.portletfilter.PortletFilterChain; +import org.apache.portals.bridges.portletfilter.PortletFilterConfig; + +/** + * @author shinsuke + * + */ +public class WikiPortletFilter implements PortletFilter { + /** + * Logger for this class + */ + private static final Log log = LogFactory.getLog(WikiPortletFilter.class); + + /* + * (non-Javadoc) + * + * @see org.apache.portals.bridges.portletfilter.PortletFilter#destroy() + */ + public void destroy() { + } + + /* + * (non-Javadoc) + * + * @see org.apache.portals.bridges.portletfilter.PortletFilter#init(org.apache.portals.bridges.portletfilter.PortletFilterConfig) + */ + public void init(PortletFilterConfig filterConfig) throws PortletException { + } + + /* + * (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 { + 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 { + String pageName = request.getParameter(LinkGeneratorCallback.PAGE_NAME); + if (pageName != null) { + request.getPortletSession().setAttribute( + WikiConstants.CURRENT_PAGE_NAME, pageName); + } + + chain.renderFilter(request, response); + + } +} Property changes on: wiki/trunk/src/main/java/jp/sf/pal/wiki/portlet/WikiPortletFilter.java ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/java/jp/sf/pal/wiki/service/WikiContentService.java =================================================================== --- wiki/trunk/src/main/java/jp/sf/pal/wiki/service/WikiContentService.java 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/service/WikiContentService.java 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,343 @@ +/* + * Copyright 2004-2006 The Portal Application Laboratory Team. + * + * Licensed 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.wiki.service; + +import java.io.BufferedReader; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.FileWriter; +import java.io.IOException; +import java.io.InputStreamReader; +import java.io.UnsupportedEncodingException; +import java.io.Writer; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +import javax.faces.context.FacesContext; + +import jp.sf.pal.wiki.WikiConstants; +import jp.sf.pal.wiki.callback.WikiLinkGeneratorCallback; +import jp.sf.pal.wiki.entity.WikiPage; +import jp.sf.pal.wiki.util.WikiUtil; +import jp.sf.stconv.pipeline.PipelineException; +import jp.sf.stconv.pipeline.StreamConverterPipeline; +import jp.sf.stconv.storage.StreamStorage; +import jp.sf.stconv.storage.StreamStorageException; +import jp.sf.stconv.storage.impl.FileStreamStorageImpl; +import jp.sf.stconv.wiki.pipeline.callback.LinkGeneratorCallback; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.seasar.framework.container.S2Container; + +import jp.sf.pal.common.faces.application.FacesMessageUtil; + +/** + * @author shinsuke + * + */ +public class WikiContentService { + /** + * Logger for this class + */ + private static final Log log = LogFactory.getLog(WikiContentService.class); + + private String currentPageName; + + private S2Container container; + + private String encoding; + + public WikiContentService(S2Container container) { + setContainer(container); + setEncoding(WikiUtil.getEncoding()); + } + + public String getCurrentPageName() { + if (currentPageName != null) { + return currentPageName; + } + + String currentPageName = getCurrentPageNameFromSession(); + if (log.isDebugEnabled()) { + log.debug("getCurrentPageName() - pageName=" + currentPageName); + } + if (currentPageName == null) { + // TODO send fallback message to view + currentPageName = WikiConstants.FRONT_PAGE; + } + + return currentPageName; + } + + public void setCurrentPageName(String pageName) { + // if (isPageName(pageName)) { + // throw new IllegalArgumentException("Invalid page name: " + pageName); + // } + setCurrentPageNameToSession(pageName); + } + + public String getCurrentContent() { + String pageName = getCurrentPageName(); + if (log.isDebugEnabled()) { + log.debug("getCurrentContent() - pageName=" + pageName); + } + return getContent(pageName); + } + + public String getContent(String pageName) { + File pageFile = getPageFile(pageName); + if (pageFile == null || !pageFile.exists()) { + // TODO i18n + return "The Page Not Found."; + } + + StringBuffer buffer = new StringBuffer(); + BufferedReader r = null; + try { + r = new BufferedReader(new InputStreamReader(new FileInputStream( + pageFile), getEncoding())); + String l = null; + while ((l = r.readLine()) != null) { + buffer.append(l); + buffer.append("\n"); + } + } catch (UnsupportedEncodingException e) { + log.error("Unsupported Encoding. ", e); + // TODO i18n + FacesMessageUtil.addErrorMessage("Unsupported Encoding: " + + getEncoding()); + } catch (IOException e) { + log.error("I/O Exception. ", e); + // TODO i18n + FacesMessageUtil.addErrorMessage("I/O Exception. ", e); + } finally { + if (r != null) { + try { + r.close(); + } catch (IOException e) { + } + } + } + + return buffer.toString(); + } + + public String getCurrentConvertedContent() { + String pageName = getCurrentPageName(); + if (log.isDebugEnabled()) { + log.debug("getCurrentConvertedContent() - pageName=" + pageName); + } + return getConvertedContent(pageName); + } + + public String getConvertedContent(String pageName) { + File pageFile = getPageFile(pageName); + if (pageFile == null || !pageFile.exists()) { + // TODO i18n + return "The Page Not Found."; + } + + StreamConverterPipeline pipeline = (StreamConverterPipeline) container + .getComponent(WikiConstants.WIKI_CONVERTER_PIPELINE); + + StringBuffer buffer = new StringBuffer(); + try { + StreamStorage storage = new FileStreamStorageImpl( + new FileInputStream(pageFile), getEncoding()); + storage.addCallback(LinkGeneratorCallback.LINK_GENERATOR_CALLBACK, + new WikiLinkGeneratorCallback()); + pipeline.invoke(storage); + + BufferedReader r = null; + try { + r = new BufferedReader(new InputStreamReader(storage + .getResultInputStream(), storage.getEncoding())); + String l = null; + while ((l = r.readLine()) != null) { + buffer.append(l); + buffer.append("\n"); + } + } catch (UnsupportedEncodingException e) { + log.error("Unsupported Encoding. ", e); + // TODO i18n + FacesMessageUtil.addErrorMessage("Unsupported Encoding: " + + getEncoding()); + } catch (StreamStorageException e) { + log.error("Could not read the stream. ", e); + // TODO i18n + FacesMessageUtil.addErrorMessage("Could not read the stream. ", + e); + } catch (IOException e) { + log.error("I/O Exception. ", e); + // TODO i18n + FacesMessageUtil.addErrorMessage("I/O Exception. ", e); + } finally { + if (r != null) { + try { + r.close(); + } catch (IOException e) { + } + } + } + storage.destroy(); + } catch (FileNotFoundException e) { + log.error("Could not find: " + pageFile, e); + // TODO i18n + FacesMessageUtil.addErrorMessage("Could not find: " + pageFile, e); + } catch (StreamStorageException e) { + log.error("StreamStorage Exception.", e); + // TODO i18n + FacesMessageUtil.addErrorMessage("StreamStorage Exception.", e); + } catch (PipelineException e) { + log.error("Pipeline Exception.", e); + // TODO i18n + FacesMessageUtil.addErrorMessage("Pipeline Exception.", e); + } + + return buffer.toString(); + } + + public boolean setContent(String pageName, String content) { + File pageFile = getPageFile(pageName); + boolean write = true; + Writer writer = null; + try { + writer = new FileWriter(pageFile); + writer.write(content); + writer.flush(); + } catch (IOException e) { + write = false; + log.error("Could not writer the content on " + pageName, e); + } finally { + if (writer != null) { + try { + writer.close(); + } catch (IOException e) { + write = false; + log.error("Could not close " + pageName, e); + } + } + } + return write; + } + + public boolean isPageName(String pageName) { + File pageFile = getPageFile(pageName); + if (pageFile == null || !pageFile.exists()) { + return false; + } + return true; + } + + protected File getPageFile(String pageName) { + File dataDir = getDataDir(); + return new File(dataDir, pageName + WikiConstants.DATA_SUFFIX); + } + + public List getPages() { + ArrayList list = new ArrayList(); + File dataDir = getDataDir(); + + File[] files = dataDir.listFiles(); + for (int i = 0; i < files.length; i++) { + String filename = files[i].getName(); + if (log.isDebugEnabled()) { + log.debug("getPages() - filename=" + filename); + } + + if (filename != null + && filename.lastIndexOf(WikiConstants.DATA_SUFFIX) >= 0) { + WikiPage page = new WikiPage(); + page.setFile(files[i]); + page.setPageName(filename.substring(0, filename.length() + - WikiConstants.DATA_SUFFIX.length())); + page.setUpdated(new Date(files[i].lastModified())); + list.add(page); + } + + } + //TODO sort? + + return list; + } + + protected File getDataDir() { + String dataDirName = WikiUtil.getWikiDataDir(); + File dataDir = new File(dataDirName); + if (!dataDir.exists()) { + if (!dataDir.mkdirs()) { + throw new IllegalAccessError("Could not create a directory:" + + dataDirName); + } + if (log.isDebugEnabled()) { + log.debug("Created directory: " + dataDirName); + } + } + return dataDir; + } + + protected void setCurrentPageNameToSession(String pageName) { + getFacesContext().getExternalContext().getSessionMap().put( + WikiConstants.CURRENT_PAGE_NAME, pageName); + } + + protected String getCurrentPageNameFromSession() { + return (String) getFacesContext().getExternalContext().getSessionMap() + .get(WikiConstants.CURRENT_PAGE_NAME); + } + + protected FacesContext getFacesContext() { + FacesContext context = FacesContext.getCurrentInstance(); + if (context == null) { + throw new IllegalStateException("FacesContext instance is null."); + } + return context; + } + + /** + * @return Returns the container. + */ + public S2Container getContainer() { + return container; + } + + /** + * @param container + * The container to set. + */ + public void setContainer(S2Container container) { + this.container = container; + } + + /** + * @return Returns the encoding. + */ + public String getEncoding() { + return encoding; + } + + /** + * @param encoding + * The encoding to set. + */ + public void setEncoding(String encoding) { + this.encoding = encoding; + } + +} Property changes on: wiki/trunk/src/main/java/jp/sf/pal/wiki/service/WikiContentService.java ___________________________________________________________________ Name: svn:eol-style + native Added: 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-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/util/WikiUtil.java 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,71 @@ +/* + * Copyright 2004-2006 The Portal Application Laboratory Team. + * + * Licensed 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.wiki.util; + +import java.io.File; + +import javax.faces.context.FacesContext; +import javax.portlet.PortletConfig; + +import jp.sf.pal.wiki.WikiConstants; + +/** + * @author shinsuke + * + */ +public class WikiUtil { + public static PortletConfig getPortletConfig() { + String name = "javax.portlet.PortletConfig"; + FacesContext context = FacesContext.getCurrentInstance(); + if (context == null) { + throw new IllegalStateException( + "Could not find FacesContext instance."); + } + return (PortletConfig) context.getExternalContext().getRequestMap() + .get(name); + } + + public static String getInitParameter(String key) { + return getPortletConfig().getInitParameter(key); + } + + public static String getWikiRootDir() { + String rootPath = getInitParameter(WikiConstants.ROOT_DIRECTORY); + if (rootPath == null) { + rootPath = getContextRealPath(WikiConstants.DEFAULT_ROOT_DIRECTORY); + } else if (rootPath.startsWith(WikiConstants.WEBAPP_ROOT_KEY)) { + return getContextRealPath(rootPath + .substring(WikiConstants.WEBAPP_ROOT_KEY.length())); + } + return rootPath; + } + + public static String getContextRealPath(String path) { + return getPortletConfig().getPortletContext().getRealPath(path); + } + + public static String getWikiDataDir() { + return getWikiRootDir() + File.separator + WikiConstants.DATA_DIRECTORY; + } + + public static String getEncoding() { + String encoding = getInitParameter(WikiConstants.ENCODING); + if (encoding != null) { + return encoding; + } + return "UTF-8"; + } +} Property changes on: wiki/trunk/src/main/java/jp/sf/pal/wiki/util/WikiUtil.java ___________________________________________________________________ Name: svn:eol-style + native Added: 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-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewContentPage.java 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,139 @@ +/* + * Copyright 2004-2006 The Portal Application Laboratory Team. + * + * Licensed 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.wiki.web.viewer; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +import jp.sf.pal.wiki.WikiConstants; +import jp.sf.pal.wiki.service.WikiContentService; + +import org.seasar.framework.container.S2Container; + +import jp.sf.pal.common.faces.application.FacesMessageUtil; + +/** + * @author shinsuke + * + */ +public class CreateNewContentPage { + /** + * Logger for this class + */ + private static final Log log = LogFactory + .getLog(CreateNewContentPage.class); + + /** + * + */ + private String content; + + /** + * + */ + private String pageName; + + private S2Container container; + + public CreateNewContentPage(S2Container container) { + setContainer(container); + } + + public String doCreateNewContent() { + if (log.isDebugEnabled()) { + log.debug("doUpdateContent() - pageName=" + pageName); + log.debug("doUpdateContent() - content=" + content); + } + + if (content != null) { + WikiContentService contentService = (WikiContentService) container + .getComponent(WikiContentService.class); + String pageName = contentService.getCurrentPageName(); + if (contentService.setContent(pageName, content)) { + // TODO i18n + FacesMessageUtil.addInfoMessage("Created: " + pageName); + } else { + // TODO i18n + FacesMessageUtil.addErrorMessage("Could not create: " + + pageName); + } + } else { + // TODO i18n + FacesMessageUtil.addErrorMessage("The content is null."); + } + return WikiConstants.DISPLAY_CONTENT_HTMLPAGE; + } + + /** + * @return + */ + public String initialize() { + return null; + } + + /** + * @return + */ + public String prerender() { + return null; + } + + /** + * @return Returns the content. + */ + public String getContent() { + return content; + } + + /** + * @param content + * The content to set. + */ + public void setContent(String content) { + this.content = content; + } + + /** + * @return Returns the container. + */ + public S2Container getContainer() { + return container; + } + + /** + * @param container + * The container to set. + */ + public void setContainer(S2Container container) { + this.container = container; + } + + /** + * @return Returns the pageName. + */ + public String getPageName() { + return pageName; + } + + /** + * @param pageName + * The pageName to set. + */ + public void setPageName(String pageName) { + this.pageName = pageName; + } + +} Property changes on: wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewContentPage.java ___________________________________________________________________ Name: svn:eol-style + native Added: 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-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewNamePage.java 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,102 @@ +/* + * Copyright 2004-2006 The Portal Application Laboratory Team. + * + * Licensed 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.wiki.web.viewer; + +import jp.sf.pal.wiki.WikiConstants; +import jp.sf.pal.wiki.service.WikiContentService; + +import org.seasar.framework.container.S2Container; + +import jp.sf.pal.common.faces.application.FacesMessageUtil; + +/** + * @author shinsuke + * + */ +public class CreateNewNamePage { + + /** + * + */ + private String pageName; + + private S2Container container; + + public CreateNewNamePage(S2Container container) { + setContainer(container); + } + + public String doCreateNewName() { + if (pageName == null || pageName.equals("")) { + // TODO i18n + FacesMessageUtil.addErrorMessage("Invalid page name."); + return WikiConstants.DISPLAY_CONTENT_HTMLPAGE; + } + + WikiContentService contentService = (WikiContentService) container + .getComponent(WikiContentService.class); + contentService.setCurrentPageName(pageName); + if (contentService.isPageName(pageName)) { + return WikiConstants.EDIT_CONTENT_HTMLPAGE; + } + return WikiConstants.CREATE_NEW_CONTENT_HTMLPAGE; + } + + /** + * @return + */ + public String initialize() { + return null; + } + + /** + * @return + */ + public String prerender() { + return null; + } + + /** + * @return Returns the pageName. + */ + public String getPageName() { + return pageName; + } + + /** + * @param pageName + * The pageName to set. + */ + public void setPageName(String pageName) { + this.pageName = pageName; + } + + /** + * @return Returns the container. + */ + public S2Container getContainer() { + return container; + } + + /** + * @param container + * The container to set. + */ + public void setContainer(S2Container container) { + this.container = container; + } + +} Property changes on: wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/CreateNewNamePage.java ___________________________________________________________________ Name: svn:eol-style + native Added: 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-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/DisplayContentPage.java 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,131 @@ +/* + * Copyright 2005-2006 The Portal Application Laboratory Team. + * + * Licensed 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.wiki.web.viewer; + +import jp.sf.pal.wiki.service.WikiContentService; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.seasar.framework.container.S2Container; + +/** + * @author shinsuke + * + */ +public class DisplayContentPage { + /** + * Logger for this class + */ + private static final Log log = LogFactory.getLog(DisplayContentPage.class); + + /** + * + */ + private String content; + + private String pageName; + + private S2Container container; + + private WikiContentService wikiContentService; + + public DisplayContentPage() { + } + + /** + * @return + */ + public String initialize() { + return null; + } + + /** + * @return + */ + public String prerender() { + if (log.isDebugEnabled()) { + log.debug("prerender()"); + } + + // WikiContentService wikiContentService = (WikiContentService) + // container + // .getComponent(WikiContentService.class); + setPageName(getWikiContentService().getCurrentPageName()); + setContent(getWikiContentService().getCurrentConvertedContent()); + return null; + } + + /** + * @return the yourName + */ + public String getContent() { + return content; + } + + /** + * @param content + * the content to set + */ + public void setContent(String content) { + this.content = content; + } + + /** + * @return Returns the container. + */ + public S2Container getContainer() { + return container; + } + + /** + * @param container + * The container to set. + */ + public void setContainer(S2Container container) { + this.container = container; + } + + /** + * @return Returns the pageName. + */ + public String getPageName() { + return pageName; + } + + /** + * @param pageName + * The pageName to set. + */ + public void setPageName(String pageName) { + this.pageName = pageName; + } + + /** + * @return Returns the wikiContentService. + */ + public WikiContentService getWikiContentService() { + return wikiContentService; + } + + /** + * @param wikiContentService + * The wikiContentService to set. + */ + public void setWikiContentService(WikiContentService wikiContentService) { + this.wikiContentService = wikiContentService; + } + +} Property changes on: wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/DisplayContentPage.java ___________________________________________________________________ Name: svn:eol-style + native Added: 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-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/DisplayListPage.java 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,103 @@ +/* + * Copyright 2004-2006 The Portal Application Laboratory Team. + * + * Licensed 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.wiki.web.viewer; + +import java.util.List; + +import jp.sf.pal.wiki.service.WikiContentService; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +/** + * @author shinsuke + * + */ +public class DisplayListPage { + /** + * Logger for this class + */ + private static final Log log = LogFactory.getLog(DisplayListPage.class); + + /** + * + */ + private List wikiPageItems; + + private WikiContentService wikiContentService; + + private String pageName; + + /** + * @return Returns the wikiPageItems. + */ + public List getWikiPageItems() { + return wikiPageItems; + } + + /** + * @param wikiPageItems + * The wikiPageItems to set. + */ + public void setWikiPageItems(List wikiPageItems) { + this.wikiPageItems = wikiPageItems; + } + + /** + * @return + */ + public String initialize() { + return null; + } + + /** + * @return + */ + public String prerender() { + wikiPageItems = wikiContentService.getPages(); + return null; + } + + /** + * @return Returns the wikiContentService. + */ + public WikiContentService getWikiContentService() { + return wikiContentService; + } + + /** + * @param wikiContentService + * The wikiContentService to set. + */ + public void setWikiContentService(WikiContentService wikiContentService) { + this.wikiContentService = wikiContentService; + } + + /** + * @return Returns the title. + */ + public String getPageName() { + return pageName; + } + + /** + * @param title + * The title to set. + */ + public void setPageName(String title) { + this.pageName = title; + } +} Property changes on: wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/DisplayListPage.java ___________________________________________________________________ Name: svn:eol-style + native Added: 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-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/EditContentPage.java 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,144 @@ +/* + * Copyright 2004-2006 The Portal Application Laboratory Team. + * + * Licensed 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.wiki.web.viewer; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +import jp.sf.pal.wiki.WikiConstants; +import jp.sf.pal.wiki.service.WikiContentService; + +import org.seasar.framework.container.S2Container; + +import jp.sf.pal.common.faces.application.FacesMessageUtil; + +/** + * @author shinsuke + * + */ +public class EditContentPage { + /** + * Logger for this class + */ + private static final Log log = LogFactory.getLog(EditContentPage.class); + + /** + * + */ + private String content; + + /** + * + */ + private String pageName; + + private S2Container container; + + public EditContentPage(S2Container container) { + setContainer(container); + } + + public String doUpdateContent() { + if (log.isDebugEnabled()) { + log.debug("doUpdateContent() - pageName=" + pageName); + log.debug("doUpdateContent() - content=" + content); + } + + if (content != null) { + WikiContentService contentService = (WikiContentService) container + .getComponent(WikiContentService.class); + String pageName = contentService.getCurrentPageName(); + if (contentService.setContent(pageName, content)) { + // TODO i18n + FacesMessageUtil.addInfoMessage("Updated: " + pageName); + } else { + // TODO i18n + FacesMessageUtil.addErrorMessage("Could not update: " + + pageName); + } + } else { + // TODO i18n + FacesMessageUtil.addErrorMessage("The content is null."); + } + return WikiConstants.DISPLAY_CONTENT_HTMLPAGE; + } + + /** + * @return + */ + public String initialize() { + return null; + } + + /** + * @return + */ + public String prerender() { + WikiContentService contentService = (WikiContentService) container + .getComponent(WikiContentService.class); + // TODO check if there is the page. if no, redirect a new page.. + + setPageName(contentService.getCurrentPageName()); + setContent(contentService.getCurrentContent()); + return null; + } + + /** + * @return Returns the content. + */ + public String getContent() { + return content; + } + + /** + * @param content + * The content to set. + */ + public void setContent(String content) { + this.content = content; + } + + /** + * @return Returns the pageName. + */ + public String getPageName() { + return pageName; + } + + /** + * @param pageName + * The pageName to set. + */ + public void setPageName(String pageName) { + this.pageName = pageName; + } + + /** + * @return Returns the container. + */ + public S2Container getContainer() { + return container; + } + + /** + * @param container + * The container to set. + */ + public void setContainer(S2Container container) { + this.container = container; + } + +} Property changes on: wiki/trunk/src/main/java/jp/sf/pal/wiki/web/viewer/EditContentPage.java ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/resources/app.dicon =================================================================== --- wiki/trunk/src/main/resources/app.dicon 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/resources/app.dicon 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" "http://www.seasar.org/dtd/components24.dtd"> +<components xmlns:xi="http://www.w3.org/2001/XInclude"> + <include path="convention.dicon"/> + <include path="aop.dicon"/> + <include path="app_aop.dicon"/> + <include path="teedaExtension.dicon"/> + <!--include path="dxo.dicon"/--> + <xi:include href="/streamconverter.dicon"/> +</components> Added: wiki/trunk/src/main/resources/appMessages.properties =================================================================== --- wiki/trunk/src/main/resources/appMessages.properties 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/resources/appMessages.properties 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,2 @@ + +E0000001=Does't found records. Property changes on: wiki/trunk/src/main/resources/appMessages.properties ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/resources/appMessages_ja.properties =================================================================== --- wiki/trunk/src/main/resources/appMessages_ja.properties 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/resources/appMessages_ja.properties 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,2 @@ + +E0000001=\u691c\u7d22\u7d50\u679c\u304c\u3042\u308a\u307e\u305b\u3093\u3002 Property changes on: wiki/trunk/src/main/resources/appMessages_ja.properties ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/resources/app_aop.dicon =================================================================== --- wiki/trunk/src/main/resources/app_aop.dicon 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/resources/app_aop.dicon 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" + "http://www.seasar.org/dtd/components24.dtd"> +<components namespace="app_aop"> + <include path="convention.dicon"/> + <component name="actionSupportInterceptor" class="org.seasar.teeda.extension.interceptor.ActionSupportInterceptor" /> +</components> Added: wiki/trunk/src/main/resources/convention.dicon =================================================================== --- wiki/trunk/src/main/resources/convention.dicon 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/resources/convention.dicon 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE components PUBLIC "-//SEASAR2.1//DTD S2Container//EN" + "http://www.seasar.org/dtd/components21.dtd"> +<components> + <component class="org.seasar.framework.convention.impl.NamingConventionImpl"> + <initMethod name="addRootPackageName"> + <arg>"jp.sf.pal.wiki"</arg> + </initMethod> + </component> +</components> Added: wiki/trunk/src/main/resources/creator.dicon =================================================================== --- wiki/trunk/src/main/resources/creator.dicon 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/resources/creator.dicon 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" + "http://www.seasar.org/dtd/components24.dtd"> +<components> + <include path="convention.dicon"/> + <include path="customizer.dicon"/> + <component class="org.seasar.framework.container.creator.ActionCreator"/> + <component class="org.seasar.framework.container.creator.DaoCreator"/> + <component class="org.seasar.framework.container.creator.DtoCreator"/> + <component class="org.seasar.framework.container.creator.DxoCreator"/> + <component class="org.seasar.framework.container.creator.HelperCreator"/> + <component class="org.seasar.framework.container.creator.LogicCreator"/> + <component class="org.seasar.framework.container.creator.PageCreator"/> + <component class="org.seasar.framework.container.creator.ServiceCreator"/> + <component class="org.seasar.framework.container.creator.InterceptorCreator"/> + <component class="org.seasar.framework.container.creator.ValidatorCreator"/> + <component class="org.seasar.framework.container.creator.ConverterCreator"/> +</components> \ No newline at end of file Added: wiki/trunk/src/main/resources/customizer.dicon =================================================================== --- wiki/trunk/src/main/resources/customizer.dicon 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/resources/customizer.dicon 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" + "http://www.seasar.org/dtd/components24.dtd"> +<components> + <include path="default-customizer.dicon"/> + + <component name="commandAspectCustomizer" class="org.seasar.framework.container.customizer.AspectCustomizer"> + <property name="interceptorName">"aop.classLoaderAwareTraceInterceptor"</property> + <property name="pointcut">"do.*, initialize, prerender"</property> + </component> + + <component name="actionSupportAspectCustomizer" class="org.seasar.framework.container.customizer.AspectCustomizer"> + <property name="interceptorName">"app_aop.actionSupportInterceptor"</property> + <property name="pointcut">"do.*, initialize, prerender"</property> + </component> + + <component name="actionCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain"> + <initMethod name="addCustomizer"> + <arg>commandAspectCustomizer</arg> + </initMethod> + <initMethod name="addCustomizer"> + <arg>actionSupportAspectCustomizer</arg> + </initMethod> + </component> +</components> \ No newline at end of file Added: wiki/trunk/src/main/resources/env.txt =================================================================== --- wiki/trunk/src/main/resources/env.txt 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/resources/env.txt 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1 @@ +product Property changes on: wiki/trunk/src/main/resources/env.txt ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/resources/jdbc.dicon =================================================================== --- wiki/trunk/src/main/resources/jdbc.dicon 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/resources/jdbc.dicon 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,144 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" + "http://www.seasar.org/dtd/components24.dtd"> +<components namespace="jdbc"> + <include path="jta.dicon"/> + <include path="jdbc-extension.dicon"/> + + <component class="org.seasar.extension.jdbc.impl.BasicResultSetFactory"/> + <component class="org.seasar.extension.jdbc.impl.ConfigurableStatementFactory"> + <arg> + <component class="org.seasar.extension.jdbc.impl.BasicStatementFactory"/> + </arg> + <property name="fetchSize">100</property> + <!-- + <property name="maxRows">100</property> + --> + </component> + <!-- + <component class="org.seasar.extension.jdbc.impl.OracleResultSetFactory"/> + <component class="org.seasar.extension.jdbc.impl.BooleanToIntStatementFactory"/> + --> + + <!-- for H2 --> + <component name="xaDataSource" + class="org.seasar.extension.dbcp.impl.XADataSourceImpl"> + <property name="driverClassName"> + "org.h2.Driver" + </property> + <property name="URL"> + "jdbc:h2:tcp://localhost:9092/demo" + </property> + <property name="user">"sa"</property> + <property name="password">""</property> + </component> + + <!-- for Oracle --> + <!-- + <component name="xaDataSource" + class="org.seasar.extension.dbcp.impl.XADataSourceImpl"> + <property name="driverClassName"> + "oracle.jdbc.driver.OracleDriver" + </property> + <property name="URL"> + "jdbc:oracle:thin:@xxx:1521:xxx" + </property> + <property name="user">"xxx"</property> + <property name="password">"xxx"</property> + </component> + --> + + <!-- for PostgreSQL --> + <!-- + <component name="xaDataSource" + class="org.seasar.extension.dbcp.impl.XADataSourceImpl"> + <property name="driverClassName"> + "org.postgresql.Driver" + </property> + <property name="URL"> + "jdbc:postgresql://localhost/TEST" + </property> + <property name="user">"xxxx"</property> + <property name="password">"xxxx"</property> + </component> + --> + + <!-- MySQL + - MySQL4.0以下でマルチバイト文字を扱う場合には,URL指定の後に, + 以下の接続パラメータを追加で指定してください. + useUnicode=true + characterEncoding=[MySQLのエンコーディングに対応した + Javaのエンコーディング名] + 例:"jdbc:mysql://localhost:3306/test?useUnicode=true" + + "&characterEncoding=Windows-31J" + + - MySQL5.0以降で,エンコーディングがeucjpmsの列を扱う場合には, + URL指定の後に,以下の接続パラメータを追加で指定してください. + characterEncoding=UTF-8またはWindows-31J + characterSetResults=UTF-8またはWindows-31J + 例:"jdbc:mysql://localhost:3306/test?characterEncoding=UTF-8" + + "&characterSetResults=UTF-8" + この指定をしない場合,Java側でUCS-2⇔EUC_JP_Solarisの変換が + 行なわれるため,ユーザー定義外字などの一部の文字が化けます. + この指定をすることで,MySQL側でeucjpms⇔ucs2⇔utf8(cp932)の + 変換が行なわれ,Java側でUCS-2⇔UTF-8(Windows-31J)の変換が + 行なわれるようになります.この結果,文字化けを防げます. + なおJIS X 0212(補助漢字)を使用する場合は,Windows-31Jではなく + UTF-8を指定する必要があります. + + - 上記以外の場合は,my.cnfでdefault-character-setの設定を適切に + (cp932やutf8など.デフォルトのlatin1は不可)行なっていれば, + 文字化けは防げます. + <component name="xaDataSource" + class="org.seasar.extension.dbcp.impl.XADataSourceImpl"> + <property name="driverClassName"> + "com.mysql.jdbc.Driver" + </property> + <property name="URL"> + "jdbc:mysql://localhost:3306/test" + </property> + <property name="user">"xxx"</property> + <property name="password">"xxx"</property> + </component> + --> + + <!-- for SQLServer --> + <!-- + <component name="xaDataSource" + class="org.seasar.extension.dbcp.impl.XADataSourceImpl"> + <property name="driverClassName"> + "net.sourceforge.jtds.jdbc.Driver" + </property> + <property name="URL"> + "jdbc:jtds:sqlserver://localhost/TEST;instance=SQLEXPRESS" + </property> + <property name="user">"xxxx"</property> + <property name="password">"xxxx"</property> + </component> + --> + + <component name="connectionPool" + class="org.seasar.extension.dbcp.impl.ConnectionPoolImpl"> + <property name="timeout">600</property> + <property name="maxPoolSize">10</property> + <property name="allowLocalTx">true</property> + <destroyMethod name="close"/> + </component> + + <component name="dataSource" + class="org.seasar.extension.dbcp.impl.DataSourceImpl" + /> + + <!-- from JNDI --> + <!-- + <component name="dataSource" + class="javax.sql.DataSource"> + @org.seasar.extension.j2ee.JndiResourceLocator @ lookup("java:comp/env/jdbc/DataSource") + </component> + --> + + <!-- + <component name="dataSource" + class="org.seasar.extension.datasource.impl.SelectableDataSourceProxy"/> + --> +</components> \ No newline at end of file Added: wiki/trunk/src/main/resources/s2container.dicon =================================================================== --- wiki/trunk/src/main/resources/s2container.dicon 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/resources/s2container.dicon 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" + "http://www.seasar.org/dtd/components24.dtd"> +<components> + <include condition="#ENV == 'ut'" path="hotdeploy.dicon"/> + <include condition="#ENV == 'ct' || #ENV == 'it'" path="warmdeploy.dicon"/> + <include condition="#ENV == 'product'" path="cooldeploy.dicon"/> +</components> Added: wiki/trunk/src/main/resources/streamconverter.dicon =================================================================== --- wiki/trunk/src/main/resources/streamconverter.dicon 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/resources/streamconverter.dicon 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" "http://www.seasar.org/dtd/components24.dtd"> +<components> + <component name="jp.sf.pal.wiki.WikiConverterPipeline" class="jp.sf.stconv.pipeline.StreamConverterPipeline"> + <arg>"WikiConverter"</arg> + <arg> +{ConvertBlockQuotationValve, +ConvertListValve, +ConvertNumberListValve, +ConvertPageNameLinkValve, +ConvertPageLinkValve, +ConvertPreValve, +ConvertTableValve, +ConvertLineBreakValve, +ConvertParagraphValve} + </arg> + </component> + <component name="ConvertPreValve" class="jp.sf.stconv.wiki.pukiwiki.pipeline.valve.ConvertPreValve"> + </component> + <component name="ConvertTableValve" class="jp.sf.stconv.wiki.pukiwiki.pipeline.valve.ConvertTableValve"> + </component> + <component name="ConvertPageLinkValve" class="jp.sf.stconv.wiki.pukiwiki.pipeline.valve.ConvertPageLinkValve"> + </component> + <component name="ConvertPageNameLinkValve" class="jp.sf.stconv.wiki.pukiwiki.pipeline.valve.ConvertPageNameLinkValve"> + </component> + <component name="ConvertBlockQuotationValve" class="jp.sf.stconv.wiki.pukiwiki.pipeline.valve.ConvertBlockQuotationValve"> + </component> + <component name="ConvertListValve" class="jp.sf.stconv.wiki.pukiwiki.pipeline.valve.ConvertListValve"> + </component> + <component name="ConvertCaptionValve" class="jp.sf.stconv.wiki.pukiwiki.pipeline.valve.ConvertCaptionValve"> + </component> + <component name="ConvertNumberListValve" class="jp.sf.stconv.wiki.pukiwiki.pipeline.valve.ConvertNumberListValve"> + </component> + <component name="ConvertLineBreakValve" class="jp.sf.stconv.wiki.pukiwiki.pipeline.valve.ConvertLineBreakValve"> + </component> + <component name="ConvertParagraphValve" class="jp.sf.stconv.wiki.pukiwiki.pipeline.valve.ConvertParagraphValve"> + </component> +</components> Added: wiki/trunk/src/main/resources/teedaCustomize.dicon =================================================================== --- wiki/trunk/src/main/resources/teedaCustomize.dicon 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/resources/teedaCustomize.dicon 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" + "http://www.seasar.org/dtd/components24.dtd"> +<components> + <component class="org.seasar.teeda.core.render.DefaultComponentIdLookupStrategy" /> + <component class="org.seasar.teeda.core.application.impl.DefaultComponentLookupStrategy" /> + <component class="org.seasar.teeda.extension.util.TreeNavigationImageLocatorImpl"> + <property name="imageRoot">"/img/"</property> + </component> +</components> Added: wiki/trunk/src/main/resources/teedaErrorPage.dicon =================================================================== --- wiki/trunk/src/main/resources/teedaErrorPage.dicon 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/resources/teedaErrorPage.dicon 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" + "http://www.seasar.org/dtd/components24.dtd"> +<components namespace="teedaErrorPage" > + + <component class="org.seasar.teeda.core.util.PortletErrorPageManagerImpl"> +<!-- + <initMethod name="addErrorPage"> + <arg>@java.lang.Throwable @ class</arg> + <arg>"/view/error/error.html"</arg> + </initMethod> + --> + </component> +</components> Added: wiki/trunk/src/main/webapp/WEB-INF/faces-config.xml =================================================================== --- wiki/trunk/src/main/webapp/WEB-INF/faces-config.xml 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/webapp/WEB-INF/faces-config.xml 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,19 @@ +<?xml version="1.0"?> + +<!DOCTYPE faces-config PUBLIC + "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN" + "http://java.sun.com/dtd/web-facesconfig_1_0.dtd"> + +<!-- =========== FULL CONFIGURATION FILE ================================== --> + +<faces-config> + + <application> + <message-bundle>appMessages</message-bundle> + <locale-config> + <default-locale>en</default-locale> + <supported-locale>ja</supported-locale> + </locale-config> + </application> + +</faces-config> \ No newline at end of file Property changes on: wiki/trunk/src/main/webapp/WEB-INF/faces-config.xml ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/webapp/WEB-INF/portlet.xml =================================================================== --- wiki/trunk/src/main/webapp/WEB-INF/portlet.xml 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/webapp/WEB-INF/portlet.xml 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright 2004-2006 the Seasar Foundation and the Others. + * + * Licensed 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. +--> +<portlet-app version="1.0"> + <portlet> + <portlet-name>WikiPortlet</portlet-name> + <display-name>Wiki Portlet</display-name> + <description>This is an example portlet for Teeda.</description> + <portlet-class>org.apache.portals.bridges.portletfilter.FilterPortlet</portlet-class> + <init-param> + <name>portlet-class</name> + <value>org.seasar.teeda.core.portlet.FacesPortlet</value> + </init-param> + <init-param> + <name>portlet-filters</name> + <value>jp.sf.pal.facesresponse.FacesResponseFilter,jp.sf.pal.pooptimizer.OptimizerFilter,org.seasar.portlet.filter.S2PortletFilter,org.seasar.portlet.filter.HotdeployPortletFilter,jp.sf.pal.wiki.portlet.WikiPortletFilter</value> + </init-param> + <init-param> + <name>view-page</name> + <value>/view/viewer/displayContent.html</value> + </init-param> +<!-- <init-param> + <name>edit-page</name> + <value></value> + </init-param> + --> + <init-param> + <name>root-directory</name> + <value>${webappRoot}/WEB-INF/wiki</value> + </init-param> + <supports> + <mime-type>text/html</mime-type> + <portlet-mode>VIEW</portlet-mode> +<!-- <portlet-mode>EDIT</portlet-mode> --> + </supports> + <supported-locale>en</supported-locale> + <supported-locale>ja</supported-locale> +<!-- resource-bundle></resource-bundle --> + <portlet-info> + <title>Wiki</title> + <short-title>Wiki</short-title> + <keywords>Wiki</keywords> + </portlet-info> + </portlet> +</portlet-app> Property changes on: wiki/trunk/src/main/webapp/WEB-INF/portlet.xml ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/webapp/WEB-INF/web.xml =================================================================== --- wiki/trunk/src/main/webapp/WEB-INF/web.xml 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/webapp/WEB-INF/web.xml 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,125 @@ +<?xml version="1.0"?> +<!-- + * Copyright 2004-2006 the Seasar Foundation and the Others. + * + * Licensed 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. +--> +<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> +<web-app> + <display-name>Wiki Portlet</display-name> + <description>Wiki Portlet</description> +<!-- + <context-param> + <param-name>javax.faces.CONFIG_FILES</param-name> + <param-value> + /WEB-INF/faces-config.xml + </param-value> + <description> + Comma separated list of URIs of (additional) faces config files. + (e.g. /WEB-INF/my-config.xml) + See JSF 1.0 PRD2, 10.3.2 + </description> + </context-param> +--> + <context-param> + <param-name>javax.faces.STATE_SAVING_METHOD</param-name> + <param-value>server</param-value> + <description> + State saving method: "client" or "server" (= default) + See JSF Specification 2.5.2 + </description> + </context-param> + <context-param> + <param-name>javax.faces.DEFAULT_SUFFIX</param-name> + <param-value>.html</param-value> + </context-param> +<!-- Servlet Filter --> + <filter> + <filter-name>encodingfilter</filter-name> + <filter-class>org.seasar.extension.filter.EncodingFilter</filter-class> + <init-param> + <param-name>encoding</param-name> + <param-value>UTF-8</param-value> + </init-param> + </filter> +<!-- SERVLET DEV: BEGIN @@@ + <filter> + <filter-name>facesdevfilter</filter-name> + <filter-class>jp.sf.pal.facesdevfilter.FacesDevFilter</filter-class> + </filter> +@@@@ SERVLET DEV: END --> + <filter> + <filter-name>s2filter</filter-name> + <filter-class>org.seasar.framework.container.filter.S2ContainerFilter</filter-class> + </filter> + <filter> + <filter-name>hotdeployfilter</filter-name> + <filter-class>org.seasar.framework.container.hotdeploy.HotdeployFilter</filter-class> + </filter> +<!-- Servlet Filter Mapping --> + <filter-mapping> + <filter-name>encodingfilter</filter-name> + <url-pattern>/*</url-pattern> + </filter-mapping> +<!-- SERVLET DEV: BEGIN @@@ + <filter-mapping> + <filter-name>facesdevfilter</filter-name> + <url-pattern>/view/*</url-pattern> + </filter-mapping> +@@@@ SERVLET DEV: END --> + <filter-mapping> + <filter-name>s2filter</filter-name> + <url-pattern>/*</url-pattern> + </filter-mapping> + <filter-mapping> + <filter-name>hotdeployfilter</filter-name> + <url-pattern>/*</url-pattern> +<!-- + <dispatcher>REQUEST</dispatcher> + <dispatcher>FORWARD</dispatcher> +--> + </filter-mapping> + <listener> +<!--<listener-class>org.seasar.teeda.core.webapp.TeedaConfigureListener</listener-class>--> + <listener-class>org.seasar.teeda.core.webapp.TeedaPortletExtendedConfigureListener</listener-class> + </listener> +<!-- facesServlet --> + <servlet> + <servlet-name>facesServlet</servlet-name> + <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> + <load-on-startup>2</load-on-startup> + </servlet> + <servlet> + <servlet-name>s2servlet</servlet-name> +<!--<servlet-class>org.seasar.framework.container.servlet.S2ContainerServlet</servlet-class>--> + <servlet-class>org.seasar.framework.container.servlet.PortletExtendedS2ContainerServlet</servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> + <servlet-mapping> + <servlet-name>facesServlet</servlet-name> + <url-pattern>*.html</url-pattern> + </servlet-mapping> + <servlet-mapping> + <servlet-name>s2servlet</servlet-name> + <url-pattern>/s2servlet</url-pattern> + </servlet-mapping> +<!-- + <session-config> + <session-timeout>1</session-timeout> + </session-config> +--> +<!-- Welcome files --> + <welcome-file-list> + <welcome-file>index.html</welcome-file> + </welcome-file-list> +</web-app> Property changes on: wiki/trunk/src/main/webapp/WEB-INF/web.xml ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/webapp/WEB-INF/wiki/data/FrontPage.txt =================================================================== --- wiki/trunk/src/main/webapp/WEB-INF/wiki/data/FrontPage.txt 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/webapp/WEB-INF/wiki/data/FrontPage.txt 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,8 @@ +* Wiki Portlet +This is a portlet to implement wiki on a portlet. +* Features +- Create a new wiki page +- Display wiki pages +* TODO +- many... + Property changes on: wiki/trunk/src/main/webapp/WEB-INF/wiki/data/FrontPage.txt ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/webapp/view/error/error.html =================================================================== --- wiki/trunk/src/main/webapp/view/error/error.html 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/webapp/view/error/error.html 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,11 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<title>AppFacesException Error Page</title> +</head> +<body> +<form id="errorForm"> +<span id="allMessages"></span> +</form> +</body> +</html> \ No newline at end of file Property changes on: wiki/trunk/src/main/webapp/view/error/error.html ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/webapp/view/viewer/createNewContent.html =================================================================== --- wiki/trunk/src/main/webapp/view/viewer/createNewContent.html 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/webapp/view/viewer/createNewContent.html 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:te="http://www.seasar.org/teeda/extension"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + <title>Wiki - Create New Content</title> + </head> + <body> + <form id="createNewContentForm"> + <div> + <table> + <tr> + <td> + <a id="goDisplayContent" href="displayContent.html">Back</a> + </td> + </tr> + </table> + </div> + <div> + <span id="messages"></span> + </div> + <div> + <span>Name: </span> + <span id="pageName">Page Name</span> + </div> + <div> + <textarea id="content" cols="60" rows="30"></textarea> + </div> + <div> + <input type="submit" value="Create" id="doCreateNewContent" /> + </div> + </form> + </body> +</html> Property changes on: wiki/trunk/src/main/webapp/view/viewer/createNewContent.html ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/webapp/view/viewer/createNewName.html =================================================================== --- wiki/trunk/src/main/webapp/view/viewer/createNewName.html 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/webapp/view/viewer/createNewName.html 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:te="http://www.seasar.org/teeda/extension"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + <title>Wiki - Create New Page</title> + </head> + <body> + <form id="createNewNameForm"> + <div> + <table> + <tr> + <td> + <a id="goDisplayContent" href="displayContent.html">Back</a> + </td> + </tr> + </table> + </div> + <div> + <span id="messages"></span> + </div> + <div> + <span>Page Name:</span> + <input id="pageName" type="text" value="PageName" /> + </div> + <div> + <input type="submit" value="Next" id="doCreateNewName" /> + </div> + </form> + </body> +</html> Property changes on: wiki/trunk/src/main/webapp/view/viewer/createNewName.html ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/webapp/view/viewer/displayContent.html =================================================================== --- wiki/trunk/src/main/webapp/view/viewer/displayContent.html 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/webapp/view/viewer/displayContent.html 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:te="http://www.seasar.org/teeda/extension"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + <title>Wiki</title> + </head> + <body> + <form id="displayContentForm"> + <div> + <table summary="menu"> + <tr> + <td> + <a id="goCreateNewName" href="createNewName.html">New</a> + </td> + <td> + <a id="goEditContent" href="editContent.html">Edit</a> + </td> + <td> + <a id="goDisplayList" href="displayList.html">List</a> + </td> + </tr> + </table> + </div> + <div> + <span id="messages"></span> + </div> + <!-- + <div> + <span>Name: </span> + <span id="pageName">Page Name</span> + </div> + --> + <div> + <span id="content" te:escape="false">Wiki Content</span> + </div> + </form> + </body> +</html> Property changes on: wiki/trunk/src/main/webapp/view/viewer/displayContent.html ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/webapp/view/viewer/displayList.html =================================================================== --- wiki/trunk/src/main/webapp/view/viewer/displayList.html 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/webapp/view/viewer/displayList.html 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:te="http://www.seasar.org/teeda/extension" xmlns:h="http://java.sun.com/jsf/html"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + <title>Wiki</title> + </head> + <body> + <form id="displayListForm"> + <div> + <table summary="menu"> + <tr> + <td> + <a id="goCreateNewPage" href="createNewName.html">New</a> + </td> + <td> + <a id="goDisplayContentPage" href="displayContent.html">Content</a> + </td> + </tr> + </table> + </div> + <div> + <span id="messages"></span> + </div> + <table> + <tr> + <th>Title</th> + </tr> + <div id="wikiPageItems"> + <tr> + <td> + <a id="goDisplayContentPage" href="displayContent.html?pageName=pageName"> + <span id="pageName">Page Title</span> + </a> + </td> + </tr> + </div> + </table> + </form> + </body> +</html> Property changes on: wiki/trunk/src/main/webapp/view/viewer/displayList.html ___________________________________________________________________ Name: svn:eol-style + native Added: wiki/trunk/src/main/webapp/view/viewer/editContent.html =================================================================== --- wiki/trunk/src/main/webapp/view/viewer/editContent.html 2007-05-12 13:30:46 UTC (rev 122) +++ wiki/trunk/src/main/webapp/view/viewer/editContent.html 2007-05-12 13:56:37 UTC (rev 123) @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:te="http://www.seasar.org/teeda/extension"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + <title>Wiki - Edit Page</title> + </head> + <body> + <form id="editContentForm"> + <div> + <table> + <tr> + <td> + <a id="goDisplayContent" href="displayContent.html">Back</a> + </td> + </tr> + </table> + </div> + <div> + <span id="messages"></span> + </div> + <div> + <span>Name: </span> + <span id="pageName">Page Name</span> + </div> + <div> + <textarea id="content" cols="60" rows="30"></textarea> + </div> + <div> + <input type="submit" value="Update" id="doUpdateContent" /> + </div> + </form> + </body> +</html> Property changes on: wiki/trunk/src/main/webapp/view/viewer/editContent.html ___________________________________________________________________ Name: svn:eol-style + native