Liferay 7.0-ga1 portal-kernel

com.liferay.portal.kernel.util
Class PrefsPropsUtil

java.lang.Object
  extended by com.liferay.portal.kernel.util.PrefsPropsUtil
Direct Known Subclasses:
SilentPrefsPropsUtil

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)
          Deprecated. As of 7.0.0, replaced by getBoolean(PortletPreferences, String)
static boolean getBoolean(PortletPreferences preferences, long companyId, String name, boolean defaultValue)
          Deprecated. As of 7.0.0, replaced by getBoolean(PortletPreferences, String, boolean)
static boolean getBoolean(PortletPreferences preferences, String name)
           
static boolean getBoolean(PortletPreferences preferences, 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)
          Deprecated. As of 7.0.0, replaced by getContent(PortletPreferences, String)
static String getContent(PortletPreferences preferences, 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)
          Deprecated. As of 7.0.0, replaced by getDouble(PortletPreferences, String)
static double getDouble(PortletPreferences preferences, long companyId, String name, double defaultValue)
          Deprecated. As of 7.0.0, replaced by getDouble(PortletPreferences, String, double)
static double getDouble(PortletPreferences preferences, String name)
           
static double getDouble(PortletPreferences preferences, 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)
          Deprecated. As of 7.0.0, replaced by getInteger(PortletPreferences, String)
static int getInteger(PortletPreferences preferences, long companyId, String name, int defaultValue)
          Deprecated. As of 7.0.0, replaced by getInteger(PortletPreferences, String, int)
static int getInteger(PortletPreferences preferences, String name)
           
static int getInteger(PortletPreferences preferences, 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)
          Deprecated. As of 7.0.0, replaced by getLong(PortletPreferences, String)
static long getLong(PortletPreferences preferences, long companyId, String name, long defaultValue)
          Deprecated. As of 7.0.0, replaced by getLong(PortletPreferences, String, long)
static long getLong(PortletPreferences preferences, String name)
           
static long getLong(PortletPreferences preferences, 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 PrefsProps getPrefsProps()
           
static Properties getProperties(PortletPreferences preferences, long companyId, String prefix, boolean removePrefix)
          Deprecated. As of 7.0.0, replaced by getProperties(PortletPreferences, String, boolean)
static Properties getProperties(PortletPreferences preferences, 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)
          Deprecated. As of 7.0.0, replaced by getShort(PortletPreferences, String)
static short getShort(PortletPreferences preferences, long companyId, String name, short defaultValue)
          Deprecated. As of 7.0.0, replaced by getShort(PortletPreferences, String, short)
static short getShort(PortletPreferences preferences, String name)
           
static short getShort(PortletPreferences preferences, 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)
          Deprecated. As of 7.0.0, replaced by getString(PortletPreferences, String)
static String getString(PortletPreferences preferences, long companyId, String name, boolean defaultValue)
          Deprecated. As of 7.0.0, replaced by getString(PortletPreferences, String, boolean)
static String getString(PortletPreferences preferences, long companyId, String name, double defaultValue)
          Deprecated. As of 7.0.0, replaced by getString(PortletPreferences, String, double)
static String getString(PortletPreferences preferences, long companyId, String name, int defaultValue)
          Deprecated. As of 7.0.0, replaced by getString(PortletPreferences, String, int)
static String getString(PortletPreferences preferences, long companyId, String name, long defaultValue)
          Deprecated. As of 7.0.0, replaced by getString(PortletPreferences, String, long)
static String getString(PortletPreferences preferences, long companyId, String name, short defaultValue)
          Deprecated. As of 7.0.0, replaced by getString(PortletPreferences, String, short)
static String getString(PortletPreferences preferences, long companyId, String name, String defaultValue)
          Deprecated. As of 7.0.0, replaced by getString(PortletPreferences, String, String)
static String getString(PortletPreferences preferences, String name)
           
static String getString(PortletPreferences preferences, String name, boolean defaultValue)
           
static String getString(PortletPreferences preferences, String name, double defaultValue)
           
static String getString(PortletPreferences preferences, String name, int defaultValue)
           
static String getString(PortletPreferences preferences, String name, long defaultValue)
           
static String getString(PortletPreferences preferences, String name, short defaultValue)
           
static String getString(PortletPreferences preferences, 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)
          Deprecated. As of 7.0.0, replaced by getStringArray(PortletPreferences, String, String)
static String[] getStringArray(PortletPreferences preferences, long companyId, String name, String delimiter, String[] defaultValue)
          Deprecated. As of 7.0.0, replaced by getStringArray(PortletPreferences, String, String, String[])
static String[] getStringArray(PortletPreferences preferences, String name, String delimiter)
           
static String[] getStringArray(PortletPreferences preferences, 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)
           
 void setPrefsProps(PrefsProps prefsProps)
           
 
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)

getBoolean

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

getBoolean

@Deprecated
public static boolean getBoolean(PortletPreferences preferences,
                                            long companyId,
                                            String name)
Deprecated. As of 7.0.0, replaced by getBoolean(PortletPreferences, String)


getBoolean

@Deprecated
public static boolean getBoolean(PortletPreferences preferences,
                                            long companyId,
                                            String name,
                                            boolean defaultValue)
Deprecated. As of 7.0.0, replaced by getBoolean(PortletPreferences, String, boolean)


getBoolean

public static boolean getBoolean(PortletPreferences preferences,
                                 String name)

getBoolean

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

getBoolean

public static boolean getBoolean(String name)

getBoolean

public static boolean getBoolean(String name,
                                 boolean defaultValue)

getContent

public static String getContent(long companyId,
                                String name)

getContent

@Deprecated
public static String getContent(PortletPreferences preferences,
                                           long companyId,
                                           String name)
Deprecated. As of 7.0.0, replaced by getContent(PortletPreferences, String)


getContent

public static String getContent(PortletPreferences preferences,
                                String name)

getContent

public static String getContent(String name)

getDouble

public static double getDouble(long companyId,
                               String name)

getDouble

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

getDouble

@Deprecated
public static double getDouble(PortletPreferences preferences,
                                          long companyId,
                                          String name)
Deprecated. As of 7.0.0, replaced by getDouble(PortletPreferences, String)


getDouble

@Deprecated
public static double getDouble(PortletPreferences preferences,
                                          long companyId,
                                          String name,
                                          double defaultValue)
Deprecated. As of 7.0.0, replaced by getDouble(PortletPreferences, String, double)


getDouble

public static double getDouble(PortletPreferences preferences,
                               String name)

getDouble

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

getDouble

public static double getDouble(String name)

getDouble

public static double getDouble(String name,
                               double defaultValue)

getInteger

public static int getInteger(long companyId,
                             String name)

getInteger

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

getInteger

@Deprecated
public static int getInteger(PortletPreferences preferences,
                                        long companyId,
                                        String name)
Deprecated. As of 7.0.0, replaced by getInteger(PortletPreferences, String)


getInteger

@Deprecated
public static int getInteger(PortletPreferences preferences,
                                        long companyId,
                                        String name,
                                        int defaultValue)
Deprecated. As of 7.0.0, replaced by getInteger(PortletPreferences, String, int)


getInteger

public static int getInteger(PortletPreferences preferences,
                             String name)

getInteger

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

getInteger

public static int getInteger(String name)

getInteger

public static int getInteger(String name,
                             int defaultValue)

getLong

public static long getLong(long companyId,
                           String name)

getLong

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

getLong

@Deprecated
public static long getLong(PortletPreferences preferences,
                                      long companyId,
                                      String name)
Deprecated. As of 7.0.0, replaced by getLong(PortletPreferences, String)


getLong

@Deprecated
public static long getLong(PortletPreferences preferences,
                                      long companyId,
                                      String name,
                                      long defaultValue)
Deprecated. As of 7.0.0, replaced by getLong(PortletPreferences, String, long)


getLong

public static long getLong(PortletPreferences preferences,
                           String name)

getLong

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

getLong

public static long getLong(String name)

getLong

public static long getLong(String name,
                           long defaultValue)

getPreferences

public static PortletPreferences getPreferences()

getPreferences

public static PortletPreferences getPreferences(boolean readOnly)

getPreferences

public static PortletPreferences getPreferences(long companyId)

getPreferences

public static PortletPreferences getPreferences(long companyId,
                                                boolean readOnly)

getPrefsProps

public static PrefsProps getPrefsProps()

getProperties

@Deprecated
public static Properties getProperties(PortletPreferences preferences,
                                                  long companyId,
                                                  String prefix,
                                                  boolean removePrefix)
Deprecated. As of 7.0.0, replaced by getProperties(PortletPreferences, String, boolean)


getProperties

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

getProperties

public static Properties getProperties(String prefix,
                                       boolean removePrefix)

getShort

public static short getShort(long companyId,
                             String name)

getShort

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

getShort

@Deprecated
public static short getShort(PortletPreferences preferences,
                                        long companyId,
                                        String name)
Deprecated. As of 7.0.0, replaced by getShort(PortletPreferences, String)


getShort

@Deprecated
public static short getShort(PortletPreferences preferences,
                                        long companyId,
                                        String name,
                                        short defaultValue)
Deprecated. As of 7.0.0, replaced by getShort(PortletPreferences, String, short)


getShort

public static short getShort(PortletPreferences preferences,
                             String name)

getShort

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

getShort

public static short getShort(String name)

getShort

public static short getShort(String name,
                             short defaultValue)

getString

public static String getString(long companyId,
                               String name)

getString

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

getString

@Deprecated
public static String getString(PortletPreferences preferences,
                                          long companyId,
                                          String name)
Deprecated. As of 7.0.0, replaced by getString(PortletPreferences, String)


getString

@Deprecated
public static String getString(PortletPreferences preferences,
                                          long companyId,
                                          String name,
                                          boolean defaultValue)
Deprecated. As of 7.0.0, replaced by getString(PortletPreferences, String, boolean)


getString

@Deprecated
public static String getString(PortletPreferences preferences,
                                          long companyId,
                                          String name,
                                          double defaultValue)
Deprecated. As of 7.0.0, replaced by getString(PortletPreferences, String, double)


getString

@Deprecated
public static String getString(PortletPreferences preferences,
                                          long companyId,
                                          String name,
                                          int defaultValue)
Deprecated. As of 7.0.0, replaced by getString(PortletPreferences, String, int)


getString

@Deprecated
public static String getString(PortletPreferences preferences,
                                          long companyId,
                                          String name,
                                          long defaultValue)
Deprecated. As of 7.0.0, replaced by getString(PortletPreferences, String, long)


getString

@Deprecated
public static String getString(PortletPreferences preferences,
                                          long companyId,
                                          String name,
                                          short defaultValue)
Deprecated. As of 7.0.0, replaced by getString(PortletPreferences, String, short)


getString

@Deprecated
public static String getString(PortletPreferences preferences,
                                          long companyId,
                                          String name,
                                          String defaultValue)
Deprecated. As of 7.0.0, replaced by getString(PortletPreferences, String, String)


getString

public static String getString(PortletPreferences preferences,
                               String name)

getString

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

getString

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

getString

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

getString

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

getString

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

getString

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

getString

public static String getString(String name)

getString

public static String getString(String name,
                               String defaultValue)

getStringArray

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

getStringArray

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

getStringArray

@Deprecated
public static String[] getStringArray(PortletPreferences preferences,
                                                 long companyId,
                                                 String name,
                                                 String delimiter)
Deprecated. As of 7.0.0, replaced by getStringArray(PortletPreferences, String, String)


getStringArray

@Deprecated
public static String[] getStringArray(PortletPreferences preferences,
                                                 long companyId,
                                                 String name,
                                                 String delimiter,
                                                 String[] defaultValue)
Deprecated. As of 7.0.0, replaced by getStringArray(PortletPreferences, String, String, String[])


getStringArray

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

getStringArray

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

getStringArray

public static String[] getStringArray(String name,
                                      String delimiter)

getStringArray

public static String[] getStringArray(String name,
                                      String delimiter,
                                      String[] defaultValue)

getStringFromNames

public static String getStringFromNames(long companyId,
                                        String... names)

setPrefsProps

public void setPrefsProps(PrefsProps prefsProps)

Liferay 7.0-ga1 portal-kernel