<?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>PortletDemoPortlet</portlet-name>
		<display-name>Vaadin PortletDemo</display-name>
		<portlet-class>com.vaadin.terminal.gwt.server.ApplicationPortlet</portlet-class>
		<init-param>
			<name>application</name>
			<value>PortletDemo</value>
		</init-param>
		<init-param>
			<name>widgetset</name>
			<value>com.vaadin.portal.gwt.PortalDefaultWidgetSet</value>
		</init-param>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>view</portlet-mode>
			<portlet-mode>edit</portlet-mode>
			<portlet-mode>help</portlet-mode>
		</supports>
		<portlet-info>
			<title>PortletDemo</title>
			<short-title>PortletDemo</short-title>
		</portlet-info>

		<security-role-ref>
			<role-name>administrator</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>guest</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>power-user</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>user</role-name>
		</security-role-ref>
	</portlet>

	<portlet>
		<portlet-name>CalcPortlet</portlet-name>
		<display-name>Calc</display-name>
		<portlet-class>com.vaadin.terminal.gwt.server.ApplicationPortlet</portlet-class>
		<init-param>
			<name>application</name>
			<value>Calc</value>
		</init-param>
		<init-param>
			<name>widgetset</name>
			<value>com.vaadin.portal.gwt.PortalDefaultWidgetSet</value>
		</init-param>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>view</portlet-mode>
		</supports>
		<portlet-info>
			<title>Calc</title>
			<short-title>Calc</short-title>
		</portlet-info>

		<security-role-ref>
			<role-name>administrator</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>guest</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>power-user</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>user</role-name>
		</security-role-ref>
	</portlet>

	<portlet>
		<portlet-name>SamplerPortlet</portlet-name>
		<display-name>Sampler</display-name>
		<portlet-class>com.vaadin.terminal.gwt.server.ApplicationPortlet</portlet-class>
		<init-param>
			<name>application</name>
			<value>sampler</value>
		</init-param>
		<init-param>
			<name>widgetset</name>
			<value>com.vaadin.portal.gwt.PortalDefaultWidgetSet</value>
		</init-param>
		<init-param>
			<name>style</name>
			<value>height:650px</value>
		</init-param>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>view</portlet-mode>
		</supports>
		<portlet-info>
			<title>Sampler</title>
			<short-title>Sampler</short-title>
		</portlet-info>

		<security-role-ref>
			<role-name>administrator</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>guest</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>power-user</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>user</role-name>
		</security-role-ref>
	</portlet>

	<portlet>
		<portlet-name>Portlet Mode Example</portlet-name>
		<display-name>Portlet Mode Example</display-name>
		<portlet-class>com.vaadin.demo.portlet.PortletModePortlet</portlet-class>
		<init-param>
			<name>application</name>
			<value>com.vaadin.demo.portlet.PortletModeExample</value>
		</init-param>
		<init-param>
			<name>widgetset</name>
			<value>com.vaadin.portal.gwt.PortalDefaultWidgetSet</value>
		</init-param>
        
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>view</portlet-mode>
			<portlet-mode>edit</portlet-mode>
			<portlet-mode>help</portlet-mode>
			<portlet-mode>config</portlet-mode>
		</supports>
		<portlet-info>
			<title>PortletModeExample</title>
			<short-title>PortletModeExample</short-title>
		</portlet-info>

		<security-role-ref>
			<role-name>administrator</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>guest</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>power-user</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>user</role-name>
		</security-role-ref>
	</portlet>

    <portlet>
        <portlet-name>Portlet HTML Mode Example</portlet-name>
        <display-name>Portlet HTML Mode Example</display-name>
        <portlet-class>com.vaadin.demo.portlet.HtmlModePortlet</portlet-class>
		<init-param>
			<name>widgetset</name>
			<value>com.vaadin.portal.gwt.PortalDefaultWidgetSet</value>
		</init-param>

        <supports>
            <mime-type>text/html</mime-type>
            <portlet-mode>view</portlet-mode>
            <portlet-mode>help</portlet-mode>
        </supports>
        
        <portlet-info>
            <title>Portlet HTML Mode Example</title>
            <short-title>Portlet HTML Mode Example</short-title>
        </portlet-info>

		<security-role-ref>
			<role-name>administrator</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>guest</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>power-user</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>user</role-name>
		</security-role-ref>
    </portlet>

	<portlet>
		<portlet-name>AddressBookPortlet</portlet-name>
		<display-name>Address Book</display-name>
		<portlet-class>com.vaadin.terminal.gwt.server.ApplicationPortlet2</portlet-class>
		<init-param>
			<name>application</name>
			<value>com.vaadin.demo.tutorial.addressbook.AddressBookApplication</value>
		</init-param>
		<init-param>
			<name>widgetset</name>
			<value>com.vaadin.portal.gwt.PortalDefaultWidgetSet</value>
		</init-param>
		<init-param>
			<name>style</name>
			<value>height:650px</value>
		</init-param>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>view</portlet-mode>
		</supports>
		<portlet-info>
			<title>Address Book</title>
			<short-title>Address Book</short-title>
		</portlet-info>

		<security-role-ref>
			<role-name>administrator</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>guest</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>power-user</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>user</role-name>
		</security-role-ref>
	</portlet>
	
	<portlet>
        <portlet-name>Vaadin Liferay Theme Portlet</portlet-name>
        <display-name>Vaadin Liferay Theme</display-name>
        
        <portlet-class>com.vaadin.terminal.gwt.server.ApplicationPortlet2</portlet-class>
        <init-param>
            <name>application</name>
            <value>com.vaadin.demo.themes.LiferayThemeDemo</value>
        </init-param>
        
        <supports>
            <mime-type>text/html</mime-type>
            <portlet-mode>view</portlet-mode>
        </supports>
        
        <portlet-info>
            <title>Vaadin Liferay Theme</title>
            <short-title>Vaadin Liferay Theme</short-title>
        </portlet-info>
        
        <security-role-ref>
			<role-name>administrator</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>guest</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>power-user</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>user</role-name>
		</security-role-ref>
    </portlet>

	<!-- A Vaadin portlet and a non-Vaadin portlet that can communicate with each other -->
	<portlet>
		<portlet-name>VaadinInterPortletEventPortlet</portlet-name>
		<display-name>Hello World Event</display-name>
		<portlet-class>com.vaadin.terminal.gwt.server.ApplicationPortlet2</portlet-class>
		<init-param>
			<name>application</name>
			<value>com.vaadin.demo.portlet.VaadinInterPortletEventPortlet</value>
		</init-param>
		<init-param>
			<name>widgetset</name>
			<value>com.vaadin.portal.gwt.PortalDefaultWidgetSet</value>
		</init-param>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>view</portlet-mode>
		</supports>
		<portlet-info>
			<title>Inter-portlet events</title>
			<short-title>Inter-portlet
				events</short-title>
		</portlet-info>
		<supported-processing-event>
			<qname xmlns:vaadin="http://vaadin.com/hello">vaadin:Hello</qname>
		</supported-processing-event>
		<supported-processing-event>
			<qname xmlns:vaadin="http://vaadin.com/hello">vaadin:ReplyToVaadin</qname>
		</supported-processing-event>
		<supported-publishing-event>
			<qname xmlns:vaadin="http://vaadin.com/hello">vaadin:Reply</qname>
		</supported-publishing-event>
		<supported-publishing-event>
			<qname xmlns:vaadin="http://vaadin.com/hello">vaadin:FromVaadin</qname>
		</supported-publishing-event>
		<supported-public-render-parameter>HelloState</supported-public-render-parameter>
	</portlet>
	<portlet>
		<portlet-name>InterPortletEventPortlet</portlet-name>
		<display-name>Hello World Event (non-Vaadin)</display-name>
		<portlet-class>com.vaadin.demo.portlet.InterPortletEventPortlet</portlet-class>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>view</portlet-mode>
		</supports>
		<portlet-info>
			<title>Inter-portlet events (non-Vaadin)</title>
			<short-title>Inter-portlet events (non-Vaadin)</short-title>
		</portlet-info>
		<supported-processing-event>
			<qname xmlns:vaadin="http://vaadin.com/hello">vaadin:Reply</qname>
		</supported-processing-event>
		<supported-processing-event>
			<qname xmlns:vaadin="http://vaadin.com/hello">vaadin:FromVaadin</qname>
		</supported-processing-event>
		<supported-publishing-event>
			<qname xmlns:vaadin="http://vaadin.com/hello">vaadin:Hello</qname>
		</supported-publishing-event>
		<supported-publishing-event>
			<qname xmlns:vaadin="http://vaadin.com/hello">vaadin:ReplyToVaadin</qname>
		</supported-publishing-event>
		<supported-public-render-parameter>HelloState</supported-public-render-parameter>
	</portlet>
	
	<!-- Used by the Portlet mode demo -->
	<custom-portlet-mode>
		<description>Custom mode</description>
		<portlet-mode>config</portlet-mode>
		<portal-managed>false</portal-managed>
	</custom-portlet-mode>

	<!--
		These can be used to customize the event object types. The types must
		be serializable and have JAXB binding.
	-->
	<event-definition>
		<qname xmlns:vaadin="http://vaadin.com/hello">vaadin:Hello</qname>
		<value-type>java.lang.String</value-type>
	</event-definition>

	<event-definition>
		<qname xmlns:vaadin="http://vaadin.com/hello">vaadin:Reply</qname>
		<value-type>java.lang.String</value-type>
	</event-definition>

	<public-render-parameter>
		<identifier>HelloState</identifier>
		<qname xmlns:vaadin="http://vaadin.com/params">vaadin:HelloState</qname>
	</public-render-parameter>

	<!--
		This can be used to work around an issue in liferay 5.0-5.1.1

		<container-runtime-option>
			<name>javax.portlet.escapeXml</name>
			<value>false</value>
		</container-runtime-option>
	-->
</portlet-app>