Package com.liferay.portal.kernel.util
Class PrefsPropsUtil
Object
com.liferay.portal.kernel.util.PrefsPropsUtil
- Author:
- Brian Wing Shun Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
getBoolean
(long companyId, String name) static boolean
getBoolean
(long companyId, String name, boolean defaultValue) static boolean
getBoolean
(String name) static boolean
getBoolean
(String name, boolean defaultValue) static boolean
getBoolean
(PortletPreferences portletPreferences, String name) static boolean
getBoolean
(PortletPreferences portletPreferences, String name, boolean defaultValue) static String
getContent
(long companyId, String name) static String
getContent
(String name) static String
getContent
(PortletPreferences portletPreferences, String name) static double
static double
static double
static double
static double
getDouble
(PortletPreferences portletPreferences, String name) static double
getDouble
(PortletPreferences portletPreferences, String name, double defaultValue) static int
getInteger
(long companyId, String name) static int
getInteger
(long companyId, String name, int defaultValue) static int
getInteger
(String name) static int
getInteger
(String name, int defaultValue) static int
getInteger
(PortletPreferences portletPreferences, String name) static int
getInteger
(PortletPreferences portletPreferences, String name, int defaultValue) static long
static long
static long
static long
static long
getLong
(PortletPreferences portletPreferences, String name) static long
getLong
(PortletPreferences portletPreferences, String name, long defaultValue) static PortletPreferences
static PortletPreferences
getPreferences
(long companyId) static PrefsProps
static Properties
getProperties
(String prefix, boolean removePrefix) static Properties
getProperties
(PortletPreferences portletPreferences, String prefix, boolean removePrefix) static short
static short
static short
static short
static short
getShort
(PortletPreferences portletPreferences, String name) static short
getShort
(PortletPreferences portletPreferences, String name, short defaultValue) static String
static String
static String
static String
static String
getString
(PortletPreferences portletPreferences, String name) static String
getString
(PortletPreferences portletPreferences, String name, boolean defaultValue) static String
getString
(PortletPreferences portletPreferences, String name, double defaultValue) static String
getString
(PortletPreferences portletPreferences, String name, int defaultValue) static String
getString
(PortletPreferences portletPreferences, String name, long defaultValue) static String
getString
(PortletPreferences portletPreferences, String name, short defaultValue) static String
getString
(PortletPreferences portletPreferences, String name, String defaultValue) static String[]
getStringArray
(long companyId, String name, String delimiter) static String[]
getStringArray
(long companyId, String name, String delimiter, String[] defaultValue) static String[]
getStringArray
(String name, String delimiter) static String[]
getStringArray
(String name, String delimiter, String[] defaultValue) static String[]
getStringArray
(PortletPreferences portletPreferences, String name, String delimiter) static String[]
getStringArray
(PortletPreferences portletPreferences, String name, String delimiter, String[] defaultValue) static String
getStringFromNames
(long companyId, String... names) void
setPrefsProps
(PrefsProps prefsProps)
-
Constructor Details
-
PrefsPropsUtil
public PrefsPropsUtil()
-
-
Method Details
-
getBoolean
-
getBoolean
-
getBoolean
-
getBoolean
public static boolean getBoolean(PortletPreferences portletPreferences, String name, boolean defaultValue) -
getBoolean
-
getBoolean
-
getContent
-
getContent
-
getContent
-
getDouble
-
getDouble
-
getDouble
-
getDouble
public static double getDouble(PortletPreferences portletPreferences, String name, double defaultValue) -
getDouble
-
getDouble
-
getInteger
-
getInteger
-
getInteger
-
getInteger
-
getInteger
-
getInteger
-
getLong
-
getLong
-
getLong
-
getLong
-
getLong
-
getLong
-
getPreferences
-
getPreferences
-
getPrefsProps
-
getProperties
public static Properties getProperties(PortletPreferences portletPreferences, String prefix, boolean removePrefix) -
getProperties
-
getShort
-
getShort
-
getShort
-
getShort
public static short getShort(PortletPreferences portletPreferences, String name, short defaultValue) -
getShort
-
getShort
-
getString
-
getString
-
getString
-
getString
public static String getString(PortletPreferences portletPreferences, String name, boolean defaultValue) -
getString
public static String getString(PortletPreferences portletPreferences, String name, double defaultValue) -
getString
public static String getString(PortletPreferences portletPreferences, String name, int defaultValue) -
getString
public static String getString(PortletPreferences portletPreferences, String name, long defaultValue) -
getString
public static String getString(PortletPreferences portletPreferences, String name, short defaultValue) -
getString
public static String getString(PortletPreferences portletPreferences, String name, String defaultValue) -
getString
-
getString
-
getStringArray
-
getStringArray
-
getStringArray
public static String[] getStringArray(PortletPreferences portletPreferences, String name, String delimiter) -
getStringArray
public static String[] getStringArray(PortletPreferences portletPreferences, String name, String delimiter, String[] defaultValue) -
getStringArray
-
getStringArray
-
getStringFromNames
-
setPrefsProps
-