liferay-portlet-tutorial / src / main / webapp / WEB-INF / portlet.xml

<?xml version="1.0"?>

<portlet-app version="2.0"
	xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
	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>hascode-liferay-portlet</portlet-name>
		<display-name>hascode-liferay-portlet</display-name>
		<portlet-class>com.hascode.tutorial.portlet.HelloWorldPortlet</portlet-class>
		<expiration-cache>0</expiration-cache>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>VIEW</portlet-mode>
		</supports>
		<portlet-info>
			<title>hascode-liferay-portlet</title>
			<keywords>hascode-liferay-portlet-tutorial</keywords>
		</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>hascode-event-sender-portlet</portlet-name>
		<display-name>hascode-event-sender-portlet</display-name>
		<portlet-class>com.hascode.tutorial.portlet.EventSenderPortlet</portlet-class>
		<expiration-cache>0</expiration-cache>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>VIEW</portlet-mode>
		</supports>
		<portlet-info>
			<title>hascode-event-sender-portlet</title>
			<keywords>hascode-event-sender-portlet</keywords>
		</portlet-info>

		<supported-publishing-event>
			<qname xmlns:hc="http://www.hascode.com/portlet">hc:message</qname>
		</supported-publishing-event>
	</portlet>

	<portlet>
		<portlet-name>hascode-event-receiver-portlet</portlet-name>
		<display-name>hascode-event-receiver-portlet</display-name>
		<portlet-class>com.hascode.tutorial.portlet.EventReceiverPortlet</portlet-class>
		<expiration-cache>0</expiration-cache>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>VIEW</portlet-mode>
		</supports>
		<portlet-info>
			<title>hascode-event-receiver-portlet</title>
			<keywords>hascode-event-receiver-portlet</keywords>
		</portlet-info>

		<supported-processing-event>
			<qname xmlns:hc="http://www.hascode.com/portlet">hc:message</qname>
		</supported-processing-event>
	</portlet>

	<portlet>
		<portlet-name>hascode-advanced-event-sender-portlet</portlet-name>
		<display-name>hascode-advanced-event-sender-portlet</display-name>
		<portlet-class>com.hascode.tutorial.portlet.AdvancedEventSenderPortlet</portlet-class>
		<expiration-cache>0</expiration-cache>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>VIEW</portlet-mode>
		</supports>
		<portlet-info>
			<title>hascode-advanced-event-sender-portlet</title>
			<keywords>hascode-advanced-event-sender-portlet</keywords>
		</portlet-info>

		<supported-publishing-event>
			<qname xmlns:hc="http://www.hascode.com/portlet">hc:customMessage</qname>
		</supported-publishing-event>
	</portlet>

	<portlet>
		<portlet-name>hascode-advanced-event-receiver-portlet</portlet-name>
		<display-name>hascode-advanced-event-receiver-portlet</display-name>
		<portlet-class>com.hascode.tutorial.portlet.AdvancedEventReceiverPortlet</portlet-class>
		<expiration-cache>0</expiration-cache>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>VIEW</portlet-mode>
		</supports>
		<portlet-info>
			<title>hascode-advanced-event-receiver-portlet</title>
			<keywords>hascode-advanced-event-receiver-portlet</keywords>
		</portlet-info>

		<supported-processing-event>
			<qname xmlns:hc="http://www.hascode.com/portlet">hc:customMessage</qname>
		</supported-processing-event>
	</portlet>

	<portlet>
		<portlet-name>hascode-preferences-portlet</portlet-name>
		<display-name>hascode-preferences-portlet</display-name>
		<portlet-class>com.hascode.tutorial.portlet.SimplePreferencesReadingPortlet</portlet-class>
		<expiration-cache>0</expiration-cache>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>VIEW</portlet-mode>
		</supports>
		<portlet-info>
			<title>hascode-preferences-portlet</title>
			<keywords>hascode-preferences-portlet</keywords>
		</portlet-info>
		<portlet-preferences>
			<preference>
				<name>tags</name>
				<value>portlet</value>
				<value>tutorial</value>
				<value>liferay</value>
				<value>java</value>
			</preference>
		</portlet-preferences>
	</portlet>

	<portlet>
		<portlet-name>hascode-annotation-example</portlet-name>
		<display-name>hascode-annotation-example</display-name>
		<portlet-class>com.hascode.tutorial.portlet.SimpleAnnotatedPortlet</portlet-class>
		<expiration-cache>0</expiration-cache>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>VIEW</portlet-mode>
		</supports>
		<portlet-info>
			<title>hascode-annotation-example</title>
			<keywords>hascode-annotation-example</keywords>
		</portlet-info>
	</portlet>
	
	<portlet>
		<portlet-name>1</portlet-name>
		<display-name>JSF2-Portlet-Bridge</display-name>
		<portlet-class>org.portletfaces.bridge.GenericFacesPortlet</portlet-class>
		<init-param>
			<name>javax.portlet.faces.defaultViewId.view</name>
			<value>/xhtml/viewMode.xhtml</value>
		</init-param>
		<init-param>
			<name>javax.portlet.faces.defaultViewId.edit</name>
			<value>/xhtml/editMode.xhtml</value>
		</init-param>
		<init-param>
			<name>javax.portlet.faces.defaultViewId.help</name>
			<value>/xhtml/helpMode.xhtml</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>JSF2-Portlet-Bridge</title>
			<short-title>JSF2-Portlet-Bridge</short-title>
			<keywords>JSF2-Portlet-Bridge</keywords>
		</portlet-info>
	</portlet>

	<event-definition>
		<qname xmlns:hc="http://www.hascode.com/portlet">hc:message</qname>
		<value-type>java.lang.String</value-type>
	</event-definition>

	<event-definition>
		<qname xmlns:hc="http://www.hascode.com/portlet">hc:customMessage</qname>
		<value-type>com.hascode.tutorial.portlet.CustomPortletMessage</value-type>
	</event-definition>
</portlet-app>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.