Class ApplicationPreferences
- java.lang.Object
-
- org.kie.workbench.common.services.shared.preferences.ApplicationPreferences
-
public class ApplicationPreferences extends Object
Storage for global preferences. Preferences effect behaviour and display.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDATE_FORMATstatic StringDATE_TIME_FORMATstatic StringDEFAULT_COUNTRYstatic StringDEFAULT_LANGUAGEstatic ApplicationPreferencesinstancestatic StringKIE_PRODUCTIZEDstatic StringKIE_TIMEZONE_OFFSETstatic StringKIE_VERSION_PROPERTY_NAME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleangetBooleanPref(String name)static StringgetCurrentDroolsVersion()static StringgetDroolsDateFormat()static StringgetDroolsDateTimeFormat()static intgetKieTimezoneOffset()static StringgetStringPref(String name)static booleanisProductized()static voidsetUp(Map<String,String> map)
-
-
-
Field Detail
-
DATE_FORMAT
public static final String DATE_FORMAT
- See Also:
- Constant Field Values
-
DATE_TIME_FORMAT
public static final String DATE_TIME_FORMAT
- See Also:
- Constant Field Values
-
DEFAULT_LANGUAGE
public static final String DEFAULT_LANGUAGE
- See Also:
- Constant Field Values
-
DEFAULT_COUNTRY
public static final String DEFAULT_COUNTRY
- See Also:
- Constant Field Values
-
KIE_VERSION_PROPERTY_NAME
public static final String KIE_VERSION_PROPERTY_NAME
- See Also:
- Constant Field Values
-
KIE_PRODUCTIZED
public static final String KIE_PRODUCTIZED
- See Also:
- Constant Field Values
-
KIE_TIMEZONE_OFFSET
public static final String KIE_TIMEZONE_OFFSET
- See Also:
- Constant Field Values
-
instance
public static ApplicationPreferences instance
-
-
Method Detail
-
getBooleanPref
public static boolean getBooleanPref(String name)
-
getDroolsDateFormat
public static String getDroolsDateFormat()
-
getDroolsDateTimeFormat
public static String getDroolsDateTimeFormat()
-
getCurrentDroolsVersion
public static String getCurrentDroolsVersion()
-
getKieTimezoneOffset
public static int getKieTimezoneOffset()
-
isProductized
public static boolean isProductized()
-
-