<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2004 The Apache Software Foundation

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 id="demo" version="1.0">

<portlet id="HelloPortlet">
    <init-param>
      <description>test init param</description>
      <name>hello</name>
      <value>Hello Portlet</value>
     </init-param>
    <portlet-name>HelloPortlet</portlet-name>
    <display-name>HelloWorld Portlet Wrapper</display-name>
    <description>This is the hello world of portlets, it doesn't do much</description>
    <portlet-class>org.apache.jetspeed.portlet.helloworld.HelloWorld</portlet-class>
    <expiration-cache>-1</expiration-cache>
    <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>EDIT</portlet-mode>
      <portlet-mode>VIEW</portlet-mode>
      <portlet-mode>HELP</portlet-mode>
    </supports>
    <supported-locale>en</supported-locale>
    <supported-locale>ja</supported-locale>
    <resource-bundle>org.apache.jetspeed.portlet.helloworld.resources.HelloWorldResources</resource-bundle>
    <portlet-info>
      <title>HelloWorldTitle</title>
      <short-title>This is the short title</short-title>
      <keywords>Test</keywords>
    </portlet-info>
  </portlet>
  
  <user-attribute>
	<description>User Given Name</description>
	<name>user.name.given</name>
  </user-attribute>
  <user-attribute>
	<description>User Last Name</description>
	<name>user.name.family</name>
  </user-attribute>
  <user-attribute>
	<description>User eMail</description>
	<name>user.home-info.online.email</name>
  </user-attribute>
  
  <portlet>
    <description>Bookmark Portlet</description>
    <portlet-name>BookmarkPortlet</portlet-name>
    <display-name>Bookmark Portlet</display-name>
    <portlet-class>org.apache.portals.applications.desktop.BookmarkPortlet</portlet-class>
    <init-param>
		<name>ViewPage</name>
			<value>/WEB-INF/view/bookmark-view.jsp</value>
     </init-param>   
    <init-param>
		<name>EditPage</name>
			<value>/WEB-INF/view/bookmark-edit.jsp</value>
     </init-param>   
    <init-param>
		<name>HelpPage</name>
			<value>/WEB-INF/view/bookmark-help.jsp</value>
     </init-param>   
    <expiration-cache>0</expiration-cache>            
    <supports>
      <mime-type>text/html</mime-type>                
      <portlet-mode>VIEW</portlet-mode>                
      <portlet-mode>EDIT</portlet-mode>                
      <portlet-mode>HELP</portlet-mode>                
    </supports>                                
    <supported-locale>en</supported-locale>                
    <supported-locale>de</supported-locale>            
    <resource-bundle>org.apache.portals.applications.desktop.resources.Bookmark</resource-bundle>            
    <portlet-preferences>
      <preference>                            
        <name>Jetspeed-2 Site</name>                    
        <value>http://portals.apache.org/jetspeed-2/</value>    
      </preference>                               		
      <preference>                            
        <name>Bluesunrise Site</name>                    
        <value>http://www.bluesunrise.com/</value>    
      </preference>                               
      <preference>                            
        <name>Apache Home</name>                    
        <value>http://www.apache.org/</value>    
      </preference>                               	  
    </portlet-preferences>        
  </portlet>
	  
  <portlet id="PreferencePortlet">
    <portlet-name>PreferencePortlet</portlet-name>
    <display-name>PreferencePortlet</display-name>
    <portlet-class>org.apache.jetspeed.demo.preferences.PreferencePortlet</portlet-class>
    <expiration-cache>-1</expiration-cache>
    <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>VIEW</portlet-mode>
    </supports>
    <supported-locale>en</supported-locale>
    <supported-locale>ja</supported-locale>
    <resource-bundle>org.apache.jetspeed.demo.preferences.resources.PreferenceResources</resource-bundle>
    <portlet-info>
      <title>Preference Test</title>
      <short-title>Preference Test</short-title>
      <keywords>Preferences</keywords>
    </portlet-info>
    <portlet-preferences>
       <preference>
         <name>pref1</name>
         <value>Hello</value>
         <value>Hello2</value>
        </preference>
    </portlet-preferences>
  </portlet>

  <portlet id="DisplayRequestPortlet">
    <init-param>
      <name>HelpPage</name>
      <value>/WEB-INF/demo/simple/DisplayRequestHelp.jsp</value>
    </init-param>
    <init-param>
      <name>ViewPage</name>
      <value>/WEB-INF/demo/simple/DisplayRequest.jsp</value>
    </init-param>
    <portlet-name>DisplayRequestPortlet</portlet-name>
    <display-name>DisplayRequest Portlet Wrapper</display-name>
    <portlet-class>org.apache.portals.bridges.common.GenericServletPortlet</portlet-class>
    <expiration-cache>-1</expiration-cache>
    <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>VIEW</portlet-mode>
      <portlet-mode>HELP</portlet-mode>
    </supports>
    <supported-locale>en</supported-locale>
    <supported-locale>ja</supported-locale>
    <resource-bundle>org.apache.jetspeed.demo.simple.resources.DisplayRequestResources</resource-bundle>
    <portlet-info>
      <title>Display the Portlet Request Information</title>
      <short-title>Portlet Request Information</short-title>
    </portlet-info>
  </portlet>

  <portlet id="PickANumberPortlet">
    <init-param>
      <name>ViewPage</name>
      <value>/WEB-INF/demo/simple/PickANumber.jsp</value>
    </init-param>    
    <init-param>
      <name>HelpPage</name>
      <value>/WEB-INF/demo/simple/PickANumberHelp.jsp</value>
    </init-param>          
    <init-param>
      <name>EditPage</name>
      <value>/WEB-INF/demo/simple/PickANumberEdit.jsp</value>
    </init-param>              
    <portlet-name>PickANumberPortlet</portlet-name>
    <display-name>Pick a number game</display-name>
    <portlet-class>org.apache.jetspeed.demo.simple.PickANumberPortlet</portlet-class>
    <expiration-cache>-1</expiration-cache>
    <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>VIEW</portlet-mode>
      <portlet-mode>HELP</portlet-mode>
      <portlet-mode>EDIT</portlet-mode>
    </supports>
    <supported-locale>en</supported-locale>
    <supported-locale>fr</supported-locale>
    <supported-locale>ja</supported-locale>
    <resource-bundle>org.apache.jetspeed.demo.simple.resources.PickANumberResources</resource-bundle>
    <portlet-info>
      <title>Pick a Number</title>
    </portlet-info>
    <portlet-preferences>
       <preference>
         <name>TopRange</name>
         <value>100</value>
        </preference>
    </portlet-preferences>    
  </portlet>

  <portlet id="AttributeScopePortlet">
    <init-param>
      <name>HelpPage</name>
      <value>/WEB-INF/demo/simple/AttributeScopeHelp.jsp</value>
    </init-param>
    <init-param>
      <name>ViewPage</name>
      <value>/WEB-INF/demo/simple/AttributeScope.jsp</value>
    </init-param>
    <portlet-name>AttributeScopePortlet</portlet-name>
    <display-name>Attribute Scope Demo</display-name>
    <portlet-class>org.apache.jetspeed.demo.simple.AttributeScopeServlet</portlet-class>
    <expiration-cache>-1</expiration-cache>
    <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>VIEW</portlet-mode>
      <portlet-mode>HELP</portlet-mode>
    </supports>
    <supported-locale>en</supported-locale>
    <supported-locale>ja</supported-locale>
    <resource-bundle>org.apache.jetspeed.demo.simple.resources.AttributeScopeResources</resource-bundle>
    <portlet-info>
      <title>Attribute Scope Demo Portlet</title>
    </portlet-info>
  </portlet>

  <portlet id="CustomerList">
    <init-param>
      <name>ViewPage</name>
      <value>/WEB-INF/demo/customerInfo/Page1.jsp</value>
    </init-param>
    <init-param>    
    <name>EditPage</name>
      <value>/WEB-INF/demo/customerInfo/Page1Edit.jsp</value>
    </init-param>    
    <portlet-name>CustomerList</portlet-name>
    <display-name>Customer List</display-name>
    <portlet-class>org.apache.jetspeed.demo.customerInfo.CustomerPortlet</portlet-class>
    <expiration-cache>-1</expiration-cache>
    <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>org.apache.jetspeed.demo.customerInfo.resources.CustomerListResources</resource-bundle>
    <portlet-info>
      <title>Customer List</title>
      <short-title>Customer List</short-title>
    </portlet-info>
  </portlet>

  <portlet id="CustomerInfo">
    <init-param>
    <name>ViewPage</name>
      <value>/WEB-INF/demo/customerInfo/Page2.jsp</value>
    </init-param>
    <init-param>        
      <name>EditPage</name>
      <value>/WEB-INF/demo/customerInfo/Page2Edit.jsp</value>
    </init-param>        
    <portlet-name>CustomerInfo</portlet-name>
    <display-name>Customer Information</display-name>
    <portlet-class>org.apache.jetspeed.demo.customerInfo.CustomerPortlet</portlet-class>
    <expiration-cache>-1</expiration-cache>
    <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>org.apache.jetspeed.demo.customerInfo.resources.CustomerInfoResources</resource-bundle>
    <portlet-info>
      <title>Customer Information</title>
      <short-title>Customer Info</short-title>
    </portlet-info>
  </portlet>

  <portlet id="CustomerDetail">
    <init-param>
      <name>ViewPage</name>
      <value>/WEB-INF/demo/customerInfo/Page3.jsp</value>
    </init-param>
    <init-param>        
      <name>EditPage</name>
      <value>/WEB-INF/demo/customerInfo/Page3Edit.jsp</value>
    </init-param>        
    <portlet-name>CustomerDetail</portlet-name>
    <display-name>Customer Detail</display-name>
    <portlet-class>org.apache.jetspeed.demo.customerInfo.CustomerPortlet</portlet-class>
    <expiration-cache>-1</expiration-cache>
    <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>org.apache.jetspeed.demo.customerInfo.resources.CustomerDetailResources</resource-bundle>
    <portlet-info>
      <title>Customer Detail</title>
      <short-title>Customer Detail</short-title>
    </portlet-info>
  </portlet>

  <portlet id="RoleSecurityTest">
    <init-param>
    <name>ViewPage</name>
      <value>/WEB-INF/demo/security/roles.jsp</value>
    </init-param>
    <init-param>
    <name>EditPage</name>
      <value>/WEB-INF/demo/security/roles.jsp</value>
    </init-param>
    <init-param>
    <name>HelpPage</name>
      <value>/WEB-INF/demo/security/help.html</value>
    </init-param>
    <portlet-name>RoleSecurityTest</portlet-name>
    <display-name>Role Security Test</display-name>
    <portlet-class>org.apache.portals.bridges.common.GenericServletPortlet</portlet-class>
    <expiration-cache>-1</expiration-cache>
    <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>VIEW</portlet-mode>
      <portlet-mode>HELP</portlet-mode>
    </supports>
    <resource-bundle>org.apache.jetspeed.demo.security.resources.RoleResources</resource-bundle>
    <supported-locale>en</supported-locale>
    <supported-locale>ja</supported-locale>
    <portlet-info>
      <title>Role Security Test</title>
      <short-title>Role Security Test</short-title>
    </portlet-info>
    <security-role-ref>
      <role-name>Administrator</role-name>
      <role-link>admin</role-link>
    </security-role-ref>
    <security-role-ref>
      <role-name>Manager</role-name>
      <role-link>manager</role-link>
    </security-role-ref>
    <security-role-ref>
      <role-name>User</role-name>
      <role-link>user</role-link>
    </security-role-ref>
  </portlet>
  
  <portlet id="UserInfoTest">
    <init-param>
    <name>ViewPage</name>
      <value>/WEB-INF/demo/userinfo/userinfo.jsp</value>
    </init-param>
    <init-param>
    <name>EditPage</name>
      <value>/WEB-INF/demo/userinfo/userinfo.jsp</value>
    </init-param>
    <init-param>
    <name>HelpPage</name>
      <value>/WEB-INF/demo/userinfo/help.html</value>
    </init-param>
    <portlet-name>UserInfoTest</portlet-name>
    <display-name>User Info Test</display-name>
    <portlet-class>org.apache.portals.bridges.common.GenericServletPortlet</portlet-class>
    <expiration-cache>-1</expiration-cache>
    <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>VIEW</portlet-mode>
      <portlet-mode>HELP</portlet-mode>
    </supports>
    <supported-locale>en</supported-locale>
    <supported-locale>ja</supported-locale>
    <resource-bundle>org.apache.jetspeed.demo.userinfo.resources.UserInfoResources</resource-bundle>
    <portlet-info>
      <title>User Info Test</title>
      <short-title>User Info Test</short-title>
    </portlet-info>
  </portlet>

    <portlet id="tmtt-main">
        <portlet-name>IFramePortlet</portlet-name>
        <display-name>IFrame Portlet</display-name>
        <description>
            Prototype of the IFRAME portlet
        </description>
		<init-param>
		<name>EditPage</name>
		  <value>/WEB-INF/view/edit-prefs.vm</value>
		</init-param>
		<init-param>
		<name>HelpPage</name>
		  <value>/WEB-INF/view/iframe-help.html</value>
		</init-param>

        <portlet-class>org.apache.jetspeed.portlet.IFrameGenericPortlet</portlet-class>
        <expiration-cache>-1</expiration-cache>
        <supports>
            <mime-type>text/html</mime-type>
            <portlet-mode>EDIT</portlet-mode>
            <portlet-mode>VIEW</portlet-mode>
            <portlet-mode>HELP</portlet-mode>
        </supports>
        <portlet-preferences>
            <preference>
                <name>SRC</name>
				<value>http://portals.apache.org</value>
            </preference>
			<preference>
				<name>HEIGHT</name>
				<value>100%</value>
			</preference>
			<preference>
				<name>WIDTH</name>
				<value>100%</value>
			</preference>
			<preference>
				<name>MAX-HEIGHT</name>
				<value>800</value>
			</preference>
			<preference>
				<name>MAX-WIDTH</name>
				<value>100%</value>
			</preference>
        </portlet-preferences>
        <supported-locale>en</supported-locale>
        <portlet-info>
            <title>IFrame Prototype Portlet</title>
            <short-title>IFrame</short-title>
            <keywords>iframe,frame</keywords>
        </portlet-info>
    </portlet>

    <portlet id="SSOIFrame">
        <portlet-name>SSOIFramePortlet</portlet-name>
        <display-name>SSO IFrame Portlet</display-name>
        <description>
            Example of using the SSO IFRAME portlet
        </description>
		<init-param>
		<name>EditPage</name>
		  <value>/WEB-INF/view/sso-edit-prefs.vm</value>
		</init-param>
		<init-param>
		<name>HelpPage</name>
		  <value>/WEB-INF/view/iframe-help.html</value>
		</init-param>
		
        <portlet-class>org.apache.jetspeed.portlet.SSOIFramePortlet</portlet-class>
        <expiration-cache>-1</expiration-cache>
        <supports>
            <mime-type>text/html</mime-type>
            <portlet-mode>EDIT</portlet-mode>
            <portlet-mode>VIEW</portlet-mode>
            <portlet-mode>HELP</portlet-mode>
        </supports>
        <portlet-preferences>
            <preference>
                <name>SRC</name>
				<value>/demo/sso-demo</value>
            </preference>
			<preference>
				<name>HEIGHT</name>
				<value>100%</value>
			</preference>
			<preference>
				<name>WIDTH</name>
				<value>100%</value>
			</preference>
			<preference>
				<name>MAX-HEIGHT</name>
				<value>800</value>
			</preference>
			<preference>
				<name>MAX-WIDTH</name>
				<value>100%</value>
			</preference>			
			<preference>
				<name>sso.type</name>
				<value>url</value>
			</preference>			
        </portlet-preferences>
        <supported-locale>en</supported-locale>
        <portlet-info>
            <title>SSO IFrame Portlet</title>
            <short-title>SSOIFrame</short-title>
            <keywords>single-signon,SSO,iframe,frame</keywords>
        </portlet-info>
    </portlet>

  <portlet id="CSSDemoPortlet">
    <init-param>
      <name>ViewPage</name>
      <value>/WEB-INF/demo/css/css.jsp</value>
    </init-param>
    <portlet-name>CSSDemoPortlet</portlet-name>
    <display-name>CSS Demo Portlet</display-name>
    <portlet-class>org.apache.portals.bridges.common.GenericServletPortlet</portlet-class>
    <expiration-cache>-1</expiration-cache>
    <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>VIEW</portlet-mode>
    </supports>
    <supported-locale>en</supported-locale>
    <portlet-info>
      <title>CSS Demo Portlet</title>
      <short-title>CSS Demo Portlet for PLT.C style</short-title>
    </portlet-info>
  </portlet>

  <user-attribute>
	<description>User Given Name</description>
	<name>user.name.given</name>
  </user-attribute>
  <user-attribute>
	<description>User Last Name</description>
	<name>user.name.family</name>
  </user-attribute>
  <user-attribute>
	<description>User eMail</description>
	<name>user.home-info.online.email</name>
  </user-attribute>

  <portlet id="web-cont-demo">
        <portlet-name>WebContentPortlet</portlet-name>
        <display-name>WebContent Portlet</display-name>
        <description>
            Prototype of the WebContent portlet
        </description>
		<init-param>
		<name>EditPage</name>
		  <value>/WEB-INF/view/edit-wcprefs.vm</value>
		</init-param>

        <portlet-class>org.apache.jetspeed.portlet.WebContentPortlet</portlet-class>
        <expiration-cache>-1</expiration-cache>
        <supports>
            <mime-type>text/html</mime-type>
            <portlet-mode>EDIT</portlet-mode>
            <portlet-mode>VIEW</portlet-mode>
         </supports>
        <portlet-preferences>
            <preference>
                <name>SRC</name>
				<value>http://www.apache.org</value>
            </preference>
        </portlet-preferences>
        <supported-locale>en</supported-locale>
        <portlet-info>
            <title>WebContent Prototype Portlet</title>
            <short-title>WebContent</short-title>
            <keywords>WebContent,Web, WebNav</keywords>
        </portlet-info>
    </portlet>

  <portlet id="SSOWebContent">
        <portlet-name>SSOWebContentPortlet</portlet-name>
        <display-name>SSO WebContent Portlet</display-name>
        <description>
            Prototype of the SSO WebContent portlet
        </description>
		<init-param>
		<name>EditPage</name>
		  <value>/WEB-INF/view/sso-edit-prefs.vm</value>
		</init-param>

        <portlet-class>org.apache.jetspeed.portlet.SSOWebContentPortlet</portlet-class>
        <expiration-cache>-1</expiration-cache>
        <supports>
            <mime-type>text/html</mime-type>
            <portlet-mode>EDIT</portlet-mode>
            <portlet-mode>VIEW</portlet-mode>
         </supports>
        <portlet-preferences>
            <preference>
                <name>SRC</name>
				<value>http://www.apache.org</value>
            </preference>
			</portlet-preferences>
        <supported-locale>en</supported-locale>
        <portlet-info>
            <title>WebContent Prototype Portlet</title>
            <short-title>WebContent</short-title>
            <keywords>WebContent,Web, SSO, single signon</keywords>
        </portlet-info>
    </portlet>

  <portlet>
    <description>Database Browser Example Portlet</description>
    <portlet-name>DbBrowserExample</portlet-name>
    <display-name>DB Browser</display-name>
    <portlet-class>org.apache.portals.gems.browser.DatabaseBrowserPortlet</portlet-class>
    <init-param>
		<name>ViewPage</name>
			<value>/WEB-INF/view/database-view.vm</value>
     </init-param>   
    <init-param>
		<name>EditPage</name>
			<value>/WEB-INF/view/database-edit.vm</value>
     </init-param>   
    <init-param>
		<name>HelpPage</name>
			<value>/WEB-INF/view/database-help.vm</value>
     </init-param>   
    <expiration-cache>0</expiration-cache>            
    <supports>
      <mime-type>text/html</mime-type>                
      <portlet-mode>VIEW</portlet-mode>                
      <portlet-mode>EDIT</portlet-mode>                
      <portlet-mode>HELP</portlet-mode>                
    </supports>                                
    <supported-locale>en</supported-locale>                
    <supported-locale>de</supported-locale>            
    <resource-bundle>org.apache.portals.gems.browser.resources.Browser</resource-bundle>            
    <portlet-preferences>
      <preference>                            
        <name>DatasourceType</name>                    
        <value>dbcp</value>    
      </preference>                               
      <preference>                            
        <name>JndiDatasource</name>                    
        <value></value>    
      </preference>                               
      <preference>                            
        <name>JdbcDriver</name>                    
        <value>org.hsqldb.jdbcDriver</value>    
      </preference>                               
      <preference>                            
        <name>JdbcConnection</name>                    
        <value>jdbc:hsqldb:hsql://127.0.0.1:9001</value>    
      </preference>                               
      <preference>                            
        <name>JdbcUsername</name>                    
        <value>sa</value>    
      </preference>                               
      <preference>                            
        <name>JdbcPassword</name>                    
        <value></value>    
      </preference>     
      <preference>                            
        <name>SSOJdbcDriver</name>                    
        <value>org.hsqldb.jdbcDriver</value>    
      </preference>                               
      <preference>                            
        <name>SSOJdbcConnection</name>                    
        <value>jdbc:hsqldb:hsql://127.0.0.1:9001</value>    
      </preference>                                
      <preference>                            
        <name>SSOSite</name>                    
        <value></value>    
      </preference>                                                                     
      <preference>                            
        <name>WindowSize</name>                    
        <value>10</value>    
      </preference>                               		
      <preference>                            
        <name>sql</name>                    
        <value>select * from CLUBS</value>    
      </preference>                               
    </portlet-preferences>        
  </portlet>

</portlet-app>

