com.liferay.faces.bridge.config.internal
Class PortletConfigParamUtil

java.lang.Object
  extended by com.liferay.faces.bridge.config.internal.PortletConfigParamUtil

public class PortletConfigParamUtil
extends Object

This is a utility class that provides static utility methods for getting values from PortletConfig init-param values.

Author:
Neil Griffin

Constructor Summary
PortletConfigParamUtil()
           
 
Method Summary
static boolean getBooleanValue(javax.portlet.PortletConfig portletConfig, String name, String alternateName, boolean defaultBooleanValue)
           
static String getConfiguredValue(javax.portlet.PortletConfig portletConfig, String name, String alternateName)
           
static int getIntegerValue(javax.portlet.PortletConfig portletConfig, String name, String alternateName, int defaultIntegerValue)
           
static long getLongValue(javax.portlet.PortletConfig portletConfig, String name, String alternateName, long defaultLongValue)
           
static String getStringValue(javax.portlet.PortletConfig portletConfig, String name, String alternateName, String defaultStringValue)
           
static boolean isSpecified(javax.portlet.PortletConfig portletConfig, String name, String alternateName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletConfigParamUtil

public PortletConfigParamUtil()
Method Detail

getBooleanValue

public static boolean getBooleanValue(javax.portlet.PortletConfig portletConfig,
                                      String name,
                                      String alternateName,
                                      boolean defaultBooleanValue)

getConfiguredValue

public static String getConfiguredValue(javax.portlet.PortletConfig portletConfig,
                                        String name,
                                        String alternateName)

isSpecified

public static boolean isSpecified(javax.portlet.PortletConfig portletConfig,
                                  String name,
                                  String alternateName)

getIntegerValue

public static int getIntegerValue(javax.portlet.PortletConfig portletConfig,
                                  String name,
                                  String alternateName,
                                  int defaultIntegerValue)

getLongValue

public static long getLongValue(javax.portlet.PortletConfig portletConfig,
                                String name,
                                String alternateName,
                                long defaultLongValue)

getStringValue

public static String getStringValue(javax.portlet.PortletConfig portletConfig,
                                    String name,
                                    String alternateName,
                                    String defaultStringValue)


Copyright © 2015 Liferay, Inc.. All rights reserved.