Apache PlutoでリリースするPortelt設定ファイルをメモします。
web.xml
…
<servlet>
<servlet-name>MyFirstPortlet</servlet-name>
<servlet-class>org.apache.pluto.container.driver.PortletServlet</servlet-class>
<init-param>
<param-name>portlet-name</param-name>
<param-value>MyFirstPortlet</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>MyFirstPortlet</servlet-name>
<url-pattern>/PlutoInvoker/MyFirstPortlet</url-pattern>
</servlet-mapping>
…
portlet.xml
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
<portlet>
<portlet-name>MyFirstPortlet</portlet-name>
<display-name>MyFirstPortlet Showname</display-name>
<portlet-class>com.portlet.MyFirstPortlet</portlet-class>
<init-param>
<name>init1</name>
<value>init1value</value>
</init-param>
<init-param>
<name>init2</name>
<value>init2value</value>
</init-param>
<expiration-cache>-1</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-mode>EDIT</portlet-mode>
<portlet-mode>HELP</portlet-mode>
<portlet-mode>edit_defaults</portlet-mode>
<portlet-mode>about</portlet-mode>
<window-state>maximized</window-state>
<window-state>minimized</window-state>
<window-state>normal</window-state>
</supports>
<supported-locale>en</supported-locale>
<portlet-info>
<title>MyFirstPortlet 表示名</title>
<short-title>MFP1</short-title>
<keywords>MFP Test</keywords>
</portlet-info>
<portlet-preferences>
<preference>
<name>dummyName</name>
<value>mydummy</value>
</preference>
<preference>
<name>dummyName1</name>
<value>mydummy1</value>
<read-only>true</read-only>
</preference>
</portlet-preferences>
<security-role-ref>
<role-name>plutoTestRole</role-name>
<role-link>tomcat</role-link>
</security-role-ref>
<supported-publishing-event>
<name>pitch</name>
</supported-publishing-event>
<supported-public-render-parameter>pi1</supported-public-render-parameter>
</portlet>
<default-namespace>http://www.myfirstportlet.com/</default-namespace>
<event-definition>
<name>pitch</name>
<value-type>java.lang.String</value-type>
</event-definition>
<event-definition>
<name>catch</name>
<value-type>java.lang.String</value-type>
</event-definition>
<public-render-parameter>
<identifier>pi1</identifier>
<name>pn1</name>
<alias>pa1</alias>
</public-render-parameter>
</portlet-app>
0 件のコメント:
コメントを投稿