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 booleangetBoolean(long companyId, String name) static booleangetBoolean(long companyId, String name, boolean defaultValue) static booleangetBoolean(String name) static booleangetBoolean(String name, boolean defaultValue) static booleangetBoolean(PortletPreferences portletPreferences, String name) static booleangetBoolean(PortletPreferences portletPreferences, String name, boolean defaultValue) static StringgetContent(long companyId, String name) static StringgetContent(String name) static StringgetContent(PortletPreferences portletPreferences, String name) static doublestatic doublestatic doublestatic doublestatic doublegetDouble(PortletPreferences portletPreferences, String name) static doublegetDouble(PortletPreferences portletPreferences, String name, double defaultValue) static intgetInteger(long companyId, String name) static intgetInteger(long companyId, String name, int defaultValue) static intgetInteger(String name) static intgetInteger(String name, int defaultValue) static intgetInteger(PortletPreferences portletPreferences, String name) static intgetInteger(PortletPreferences portletPreferences, String name, int defaultValue) static longstatic longstatic longstatic longstatic longgetLong(PortletPreferences portletPreferences, String name) static longgetLong(PortletPreferences portletPreferences, String name, long defaultValue) static PortletPreferencesstatic PortletPreferencesgetPreferences(long companyId) static PrefsPropsstatic PropertiesgetProperties(String prefix, boolean removePrefix) static PropertiesgetProperties(PortletPreferences portletPreferences, String prefix, boolean removePrefix) static shortstatic shortstatic shortstatic shortstatic shortgetShort(PortletPreferences portletPreferences, String name) static shortgetShort(PortletPreferences portletPreferences, String name, short defaultValue) static Stringstatic Stringstatic Stringstatic Stringstatic StringgetString(PortletPreferences portletPreferences, String name) static StringgetString(PortletPreferences portletPreferences, String name, boolean defaultValue) static StringgetString(PortletPreferences portletPreferences, String name, double defaultValue) static StringgetString(PortletPreferences portletPreferences, String name, int defaultValue) static StringgetString(PortletPreferences portletPreferences, String name, long defaultValue) static StringgetString(PortletPreferences portletPreferences, String name, short defaultValue) static StringgetString(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 StringgetStringFromNames(long companyId, String... names) voidsetPrefsProps(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
-