Example usage for com.liferay.portal.kernel.model Portlet getConfigurationActionInstance

List of usage examples for com.liferay.portal.kernel.model Portlet getConfigurationActionInstance

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.model Portlet getConfigurationActionInstance.

Prototype

public com.liferay.portal.kernel.portlet.ConfigurationAction getConfigurationActionInstance();

Source Link

Document

Returns the configuration action instance of the portlet.

Usage

From source file:com.liferay.portlet.configuration.web.internal.portlet.PortletConfigurationPortlet.java

License:Open Source License

protected ConfigurationAction getConfigurationAction(Portlet portlet) throws Exception {

    if (portlet == null) {
        return null;
    }/*from w  w w.  j  a  v a  2  s  . co m*/

    ConfigurationAction configurationAction = portlet.getConfigurationActionInstance();

    if (configurationAction == null) {
        _log.error("Configuration action for portlet " + portlet.getPortletId() + " is null");
    }

    return configurationAction;
}