Thursday, December 26, 2013

Whats new in liferay 6.2 API - Part 1

In this post we will cover the changes that comes along with Liferay Portal 6.2 in liferay-portlet.xml DTD file.


<ddm-display>
The ddm-display value must be a class that implements com.liferay.portlet.dynamicdatamapping.util.DDMDisplay and is called when displaying the portlet.
<requires-namespaced-parameters>
Set the requires-namespaced-parameters value to true if the portlet will only process namespaced parameters. The default value is true.
<staged-model-data-handler-class>
The staged-model-data-handler-class value must be a class that implements com.liferay.portal.kernel.lar.StagedModelDatahandler and is called to handle export and import logic for a staged model entity.
<template-handler>
The template-handler value must be a class that implements com.liferay.portal.kernel.template.TemplateHandler and is called when displaying the portlet.
<trash-handler>
The trash-handler value must be a class that implements com.liferay.portal.kernel.trash.TrashHandler and is called to manage trash entries.
<user-notification-definitions>
The user-notification-definitions points to the XML file that defines the user notifications for this portlet. This file is read by the class loader.
<user-notification-handler-class>
The user-notification-handler-class value must be a class that implements com.liferay.portal.kernel.notifications.UserNotificationHandler is called to interpret requests into friendly messages that are easily understandable by a human being.