1. Using Ext Plugins we can customize Struts actions of Liferay Portal.
Ex: We want to send email to user via JMS when user is banned. we can extend MessageBoard portlet's BanUserAction.
Hooks supports Struts Action extension in Liferay 6.1
2.we can extend some of the Liferay's Listeners which are not supported in Hooks
3.we can use extension plugin to include some custom filters
Ex: In every web application we may want to implement some new filters. Using ext plugin you can implement our own filter and tell liferay to include it.
we can add our filters in
Web-ext.xml
4. Extending Liferay's portal.properties
Ex: if we want to override Liferay's PermissionChecker class then we can do it.
create new Permission Checker class and mention in portal-ext.properties
#
# Set the default permission checker class used by
# com.liferay.portal.security.permission.PermissionCheckerFactory to check
# permissions for actions on objects. This class can be overriden with a
# custom class that implements
# com.liferay.portal.security.permission.PermissionChecker.
#
#permissions.checker=com.liferay.portal.security.permission.SimplePermissionChecker
permissions.checker=com.liferay.portal.security.permission.AdvancedPermissionChecker
5. we can extend some feature of liferay-portlet.xml through
liferay-portlet-ext.xml
No comments:
Post a Comment