Class PrefsPropsImpl

Object
com.liferay.portal.util.PrefsPropsImpl
All Implemented Interfaces:
com.liferay.portal.kernel.util.PrefsProps

public class PrefsPropsImpl extends Object implements com.liferay.portal.kernel.util.PrefsProps
Author:
Brian Wing Shun Chan
  • Constructor Details

    • PrefsPropsImpl

      public PrefsPropsImpl()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
    • destroy

      public void destroy()
    • getBoolean

      public boolean getBoolean(long companyId, String name)
      Specified by:
      getBoolean in interface com.liferay.portal.kernel.util.PrefsProps
    • getBoolean

      public boolean getBoolean(long companyId, String name, boolean defaultValue)
      Specified by:
      getBoolean in interface com.liferay.portal.kernel.util.PrefsProps
    • getBoolean

      public boolean getBoolean(PortletPreferences portletPreferences, String name)
      Specified by:
      getBoolean in interface com.liferay.portal.kernel.util.PrefsProps
    • getBoolean

      public boolean getBoolean(PortletPreferences portletPreferences, String name, boolean defaultValue)
      Specified by:
      getBoolean in interface com.liferay.portal.kernel.util.PrefsProps
    • getBoolean

      public boolean getBoolean(String name)
      Specified by:
      getBoolean in interface com.liferay.portal.kernel.util.PrefsProps
    • getBoolean

      public boolean getBoolean(String name, boolean defaultValue)
      Specified by:
      getBoolean in interface com.liferay.portal.kernel.util.PrefsProps
    • getContent

      public String getContent(long companyId, String name)
      Specified by:
      getContent in interface com.liferay.portal.kernel.util.PrefsProps
    • getContent

      public String getContent(PortletPreferences portletPreferences, String name)
      Specified by:
      getContent in interface com.liferay.portal.kernel.util.PrefsProps
    • getContent

      public String getContent(String name)
      Specified by:
      getContent in interface com.liferay.portal.kernel.util.PrefsProps
    • getDouble

      public double getDouble(long companyId, String name)
      Specified by:
      getDouble in interface com.liferay.portal.kernel.util.PrefsProps
    • getDouble

      public double getDouble(long companyId, String name, double defaultValue)
      Specified by:
      getDouble in interface com.liferay.portal.kernel.util.PrefsProps
    • getDouble

      public double getDouble(PortletPreferences portletPreferences, String name)
      Specified by:
      getDouble in interface com.liferay.portal.kernel.util.PrefsProps
    • getDouble

      public double getDouble(PortletPreferences portletPreferences, String name, double defaultValue)
      Specified by:
      getDouble in interface com.liferay.portal.kernel.util.PrefsProps
    • getDouble

      public double getDouble(String name)
      Specified by:
      getDouble in interface com.liferay.portal.kernel.util.PrefsProps
    • getDouble

      public double getDouble(String name, double defaultValue)
      Specified by:
      getDouble in interface com.liferay.portal.kernel.util.PrefsProps
    • getInteger

      public int getInteger(long companyId, String name)
      Specified by:
      getInteger in interface com.liferay.portal.kernel.util.PrefsProps
    • getInteger

      public int getInteger(long companyId, String name, int defaultValue)
      Specified by:
      getInteger in interface com.liferay.portal.kernel.util.PrefsProps
    • getInteger

      public int getInteger(PortletPreferences portletPreferences, String name)
      Specified by:
      getInteger in interface com.liferay.portal.kernel.util.PrefsProps
    • getInteger

      public int getInteger(PortletPreferences portletPreferences, String name, int defaultValue)
      Specified by:
      getInteger in interface com.liferay.portal.kernel.util.PrefsProps
    • getInteger

      public int getInteger(String name)
      Specified by:
      getInteger in interface com.liferay.portal.kernel.util.PrefsProps
    • getInteger

      public int getInteger(String name, int defaultValue)
      Specified by:
      getInteger in interface com.liferay.portal.kernel.util.PrefsProps
    • getLong

      public long getLong(long companyId, String name)
      Specified by:
      getLong in interface com.liferay.portal.kernel.util.PrefsProps
    • getLong

      public long getLong(long companyId, String name, long defaultValue)
      Specified by:
      getLong in interface com.liferay.portal.kernel.util.PrefsProps
    • getLong

      public long getLong(PortletPreferences portletPreferences, String name)
      Specified by:
      getLong in interface com.liferay.portal.kernel.util.PrefsProps
    • getLong

      public long getLong(PortletPreferences portletPreferences, String name, long defaultValue)
      Specified by:
      getLong in interface com.liferay.portal.kernel.util.PrefsProps
    • getLong

      public long getLong(String name)
      Specified by:
      getLong in interface com.liferay.portal.kernel.util.PrefsProps
    • getLong

      public long getLong(String name, long defaultValue)
      Specified by:
      getLong in interface com.liferay.portal.kernel.util.PrefsProps
    • getPreferences

      public PortletPreferences getPreferences()
      Specified by:
      getPreferences in interface com.liferay.portal.kernel.util.PrefsProps
    • getPreferences

      public PortletPreferences getPreferences(long companyId)
      Specified by:
      getPreferences in interface com.liferay.portal.kernel.util.PrefsProps
    • getProperties

      public Properties getProperties(PortletPreferences portletPreferences, String prefix, boolean removePrefix)
      Specified by:
      getProperties in interface com.liferay.portal.kernel.util.PrefsProps
    • getProperties

      public Properties getProperties(String prefix, boolean removePrefix)
      Specified by:
      getProperties in interface com.liferay.portal.kernel.util.PrefsProps
    • getShort

      public short getShort(long companyId, String name)
      Specified by:
      getShort in interface com.liferay.portal.kernel.util.PrefsProps
    • getShort

      public short getShort(long companyId, String name, short defaultValue)
      Specified by:
      getShort in interface com.liferay.portal.kernel.util.PrefsProps
    • getShort

      public short getShort(PortletPreferences portletPreferences, String name)
      Specified by:
      getShort in interface com.liferay.portal.kernel.util.PrefsProps
    • getShort

      public short getShort(PortletPreferences portletPreferences, String name, short defaultValue)
      Specified by:
      getShort in interface com.liferay.portal.kernel.util.PrefsProps
    • getShort

      public short getShort(String name)
      Specified by:
      getShort in interface com.liferay.portal.kernel.util.PrefsProps
    • getShort

      public short getShort(String name, short defaultValue)
      Specified by:
      getShort in interface com.liferay.portal.kernel.util.PrefsProps
    • getString

      public String getString(long companyId, String name)
      Specified by:
      getString in interface com.liferay.portal.kernel.util.PrefsProps
    • getString

      public String getString(long companyId, String name, String defaultValue)
      Specified by:
      getString in interface com.liferay.portal.kernel.util.PrefsProps
    • getString

      public String getString(PortletPreferences portletPreferences, String name)
      Specified by:
      getString in interface com.liferay.portal.kernel.util.PrefsProps
    • getString

      public String getString(PortletPreferences portletPreferences, String name, boolean defaultValue)
      Specified by:
      getString in interface com.liferay.portal.kernel.util.PrefsProps
    • getString

      public String getString(PortletPreferences portletPreferences, String name, double defaultValue)
      Specified by:
      getString in interface com.liferay.portal.kernel.util.PrefsProps
    • getString

      public String getString(PortletPreferences portletPreferences, String name, int defaultValue)
      Specified by:
      getString in interface com.liferay.portal.kernel.util.PrefsProps
    • getString

      public String getString(PortletPreferences portletPreferences, String name, long defaultValue)
      Specified by:
      getString in interface com.liferay.portal.kernel.util.PrefsProps
    • getString

      public String getString(PortletPreferences portletPreferences, String name, short defaultValue)
      Specified by:
      getString in interface com.liferay.portal.kernel.util.PrefsProps
    • getString

      public String getString(PortletPreferences portletPreferences, String name, String defaultValue)
      Specified by:
      getString in interface com.liferay.portal.kernel.util.PrefsProps
    • getString

      public String getString(String name)
      Specified by:
      getString in interface com.liferay.portal.kernel.util.PrefsProps
    • getString

      public String getString(String name, String defaultValue)
      Specified by:
      getString in interface com.liferay.portal.kernel.util.PrefsProps
    • getStringArray

      public String[] getStringArray(long companyId, String name, String delimiter)
      Specified by:
      getStringArray in interface com.liferay.portal.kernel.util.PrefsProps
    • getStringArray

      public String[] getStringArray(long companyId, String name, String delimiter, String[] defaultValue)
      Specified by:
      getStringArray in interface com.liferay.portal.kernel.util.PrefsProps
    • getStringArray

      public String[] getStringArray(PortletPreferences portletPreferences, String name, String delimiter)
      Specified by:
      getStringArray in interface com.liferay.portal.kernel.util.PrefsProps
    • getStringArray

      public String[] getStringArray(PortletPreferences portletPreferences, String name, String delimiter, String[] defaultValue)
      Specified by:
      getStringArray in interface com.liferay.portal.kernel.util.PrefsProps
    • getStringArray

      public String[] getStringArray(String name, String delimiter)
      Specified by:
      getStringArray in interface com.liferay.portal.kernel.util.PrefsProps
    • getStringArray

      public String[] getStringArray(String name, String delimiter, String[] defaultValue)
      Specified by:
      getStringArray in interface com.liferay.portal.kernel.util.PrefsProps
    • getStringFromNames

      public String getStringFromNames(long companyId, String... names)
      Specified by:
      getStringFromNames in interface com.liferay.portal.kernel.util.PrefsProps