Liferay 6.2-ce-ga5

com.liferay.portal.util
Class PrefsPropsUtil

java.lang.Object
  extended by com.liferay.portal.util.PrefsPropsUtil

public class PrefsPropsUtil
extends Object


Constructor Summary
PrefsPropsUtil()
           
 
Method Summary
static boolean getBoolean(long companyId, String name)
           
static boolean getBoolean(long companyId, String name, boolean defaultValue)
           
static boolean getBoolean(PortletPreferences preferences, long companyId, String name)
           
static boolean getBoolean(PortletPreferences preferences, long companyId, String name, boolean defaultValue)
           
static boolean getBoolean(String name)
           
static boolean getBoolean(String name, boolean defaultValue)
           
static String getContent(long companyId, String name)
           
static String getContent(PortletPreferences preferences, long companyId, String name)
           
static String getContent(String name)
           
static double getDouble(long companyId, String name)
           
static double getDouble(long companyId, String name, double defaultValue)
           
static double getDouble(PortletPreferences preferences, long companyId, String name)
           
static double getDouble(PortletPreferences preferences, long companyId, String name, double defaultValue)
           
static double getDouble(String name)
           
static double getDouble(String name, double defaultValue)
           
static int getInteger(long companyId, String name)
           
static int getInteger(long companyId, String name, int defaultValue)
           
static int getInteger(PortletPreferences preferences, long companyId, String name)
           
static int getInteger(PortletPreferences preferences, long companyId, String name, int defaultValue)
           
static int getInteger(String name)
           
static int getInteger(String name, int defaultValue)
           
static long getLong(long companyId, String name)
           
static long getLong(long companyId, String name, long defaultValue)
           
static long getLong(PortletPreferences preferences, long companyId, String name)
           
static long getLong(PortletPreferences preferences, long companyId, String name, long defaultValue)
           
static long getLong(String name)
           
static long getLong(String name, long defaultValue)
           
static PortletPreferences getPreferences()
           
static PortletPreferences getPreferences(boolean readOnly)
           
static PortletPreferences getPreferences(long companyId)
           
static PortletPreferences getPreferences(long companyId, boolean readOnly)
           
static Properties getProperties(PortletPreferences preferences, long companyId, String prefix, boolean removePrefix)
           
static Properties getProperties(String prefix, boolean removePrefix)
           
static short getShort(long companyId, String name)
           
static short getShort(long companyId, String name, short defaultValue)
           
static short getShort(PortletPreferences preferences, long companyId, String name)
           
static short getShort(PortletPreferences preferences, long companyId, String name, short defaultValue)
           
static short getShort(String name)
           
static short getShort(String name, short defaultValue)
           
static String getString(long companyId, String name)
           
static String getString(long companyId, String name, String defaultValue)
           
static String getString(PortletPreferences preferences, long companyId, String name)
           
static String getString(PortletPreferences preferences, long companyId, String name, boolean defaultValue)
           
static String getString(PortletPreferences preferences, long companyId, String name, double defaultValue)
           
static String getString(PortletPreferences preferences, long companyId, String name, int defaultValue)
           
static String getString(PortletPreferences preferences, long companyId, String name, long defaultValue)
           
static String getString(PortletPreferences preferences, long companyId, String name, short defaultValue)
           
static String getString(PortletPreferences preferences, long companyId, String name, String defaultValue)
           
static String getString(String name)
           
static String getString(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(PortletPreferences preferences, long companyId, String name, String delimiter)
           
static String[] getStringArray(PortletPreferences preferences, 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 getStringFromNames(long companyId, String... names)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefsPropsUtil

public PrefsPropsUtil()
Method Detail

getBoolean

public static boolean getBoolean(long companyId,
                                 String name)
                          throws SystemException
Throws:
SystemException

getBoolean

public static boolean getBoolean(long companyId,
                                 String name,
                                 boolean defaultValue)
                          throws SystemException
Throws:
SystemException

getBoolean

public static boolean getBoolean(PortletPreferences preferences,
                                 long companyId,
                                 String name)

getBoolean

public static boolean getBoolean(PortletPreferences preferences,
                                 long companyId,
                                 String name,
                                 boolean defaultValue)

getBoolean

public static boolean getBoolean(String name)
                          throws SystemException
Throws:
SystemException

getBoolean

public static boolean getBoolean(String name,
                                 boolean defaultValue)
                          throws SystemException
Throws:
SystemException

getContent

public static String getContent(long companyId,
                                String name)
                         throws SystemException
Throws:
SystemException

getContent

public static String getContent(PortletPreferences preferences,
                                long companyId,
                                String name)

getContent

public static String getContent(String name)
                         throws SystemException
Throws:
SystemException

getDouble

public static double getDouble(long companyId,
                               String name)
                        throws SystemException
Throws:
SystemException

getDouble

public static double getDouble(long companyId,
                               String name,
                               double defaultValue)
                        throws SystemException
Throws:
SystemException

getDouble

public static double getDouble(PortletPreferences preferences,
                               long companyId,
                               String name)

getDouble

public static double getDouble(PortletPreferences preferences,
                               long companyId,
                               String name,
                               double defaultValue)

getDouble

public static double getDouble(String name)
                        throws SystemException
Throws:
SystemException

getDouble

public static double getDouble(String name,
                               double defaultValue)
                        throws SystemException
Throws:
SystemException

getInteger

public static int getInteger(long companyId,
                             String name)
                      throws SystemException
Throws:
SystemException

getInteger

public static int getInteger(long companyId,
                             String name,
                             int defaultValue)
                      throws SystemException
Throws:
SystemException

getInteger

public static int getInteger(PortletPreferences preferences,
                             long companyId,
                             String name)

getInteger

public static int getInteger(PortletPreferences preferences,
                             long companyId,
                             String name,
                             int defaultValue)

getInteger

public static int getInteger(String name)
                      throws SystemException
Throws:
SystemException

getInteger

public static int getInteger(String name,
                             int defaultValue)
                      throws SystemException
Throws:
SystemException

getLong

public static long getLong(long companyId,
                           String name)
                    throws SystemException
Throws:
SystemException

getLong

public static long getLong(long companyId,
                           String name,
                           long defaultValue)
                    throws SystemException
Throws:
SystemException

getLong

public static long getLong(PortletPreferences preferences,
                           long companyId,
                           String name)

getLong

public static long getLong(PortletPreferences preferences,
                           long companyId,
                           String name,
                           long defaultValue)

getLong

public static long getLong(String name)
                    throws SystemException
Throws:
SystemException

getLong

public static long getLong(String name,
                           long defaultValue)
                    throws SystemException
Throws:
SystemException

getPreferences

public static PortletPreferences getPreferences()
                                         throws SystemException
Throws:
SystemException

getPreferences

public static PortletPreferences getPreferences(boolean readOnly)
                                         throws SystemException
Throws:
SystemException

getPreferences

public static PortletPreferences getPreferences(long companyId)
                                         throws SystemException
Throws:
SystemException

getPreferences

public static PortletPreferences getPreferences(long companyId,
                                                boolean readOnly)
                                         throws SystemException
Throws:
SystemException

getProperties

public static Properties getProperties(PortletPreferences preferences,
                                       long companyId,
                                       String prefix,
                                       boolean removePrefix)

getProperties

public static Properties getProperties(String prefix,
                                       boolean removePrefix)
                                throws SystemException
Throws:
SystemException

getShort

public static short getShort(long companyId,
                             String name)
                      throws SystemException
Throws:
SystemException

getShort

public static short getShort(long companyId,
                             String name,
                             short defaultValue)
                      throws SystemException
Throws:
SystemException

getShort

public static short getShort(PortletPreferences preferences,
                             long companyId,
                             String name)

getShort

public static short getShort(PortletPreferences preferences,
                             long companyId,
                             String name,
                             short defaultValue)

getShort

public static short getShort(String name)
                      throws SystemException
Throws:
SystemException

getShort

public static short getShort(String name,
                             short defaultValue)
                      throws SystemException
Throws:
SystemException

getString

public static String getString(long companyId,
                               String name)
                        throws SystemException
Throws:
SystemException

getString

public static String getString(long companyId,
                               String name,
                               String defaultValue)
                        throws SystemException
Throws:
SystemException

getString

public static String getString(PortletPreferences preferences,
                               long companyId,
                               String name)

getString

public static String getString(PortletPreferences preferences,
                               long companyId,
                               String name,
                               boolean defaultValue)

getString

public static String getString(PortletPreferences preferences,
                               long companyId,
                               String name,
                               double defaultValue)

getString

public static String getString(PortletPreferences preferences,
                               long companyId,
                               String name,
                               int defaultValue)

getString

public static String getString(PortletPreferences preferences,
                               long companyId,
                               String name,
                               long defaultValue)

getString

public static String getString(PortletPreferences preferences,
                               long companyId,
                               String name,
                               short defaultValue)

getString

public static String getString(PortletPreferences preferences,
                               long companyId,
                               String name,
                               String defaultValue)

getString

public static String getString(String name)
                        throws SystemException
Throws:
SystemException

getString

public static String getString(String name,
                               String defaultValue)
                        throws SystemException
Throws:
SystemException

getStringArray

public static String[] getStringArray(long companyId,
                                      String name,
                                      String delimiter)
                               throws SystemException
Throws:
SystemException

getStringArray

public static String[] getStringArray(long companyId,
                                      String name,
                                      String delimiter,
                                      String[] defaultValue)
                               throws SystemException
Throws:
SystemException

getStringArray

public static String[] getStringArray(PortletPreferences preferences,
                                      long companyId,
                                      String name,
                                      String delimiter)

getStringArray

public static String[] getStringArray(PortletPreferences preferences,
                                      long companyId,
                                      String name,
                                      String delimiter,
                                      String[] defaultValue)

getStringArray

public static String[] getStringArray(String name,
                                      String delimiter)
                               throws SystemException
Throws:
SystemException

getStringArray

public static String[] getStringArray(String name,
                                      String delimiter,
                                      String[] defaultValue)
                               throws SystemException
Throws:
SystemException

getStringFromNames

public static String getStringFromNames(long companyId,
                                        String... names)
                                 throws SystemException
Throws:
SystemException

Liferay 6.2-ce-ga5