Package org.adempiere.webui.util
Class UserPreference
- java.lang.Object
-
- org.adempiere.webui.util.UserPreference
-
- All Implemented Interfaces:
Serializable
public final class UserPreference extends Object implements Serializable
- Author:
- hengsin, Teo Sarca, www.arhipac.ro
- FR [ 2694043 ] Query. first/firstOnly usage best practice IDEMPIERE-2556 - this class is now for global code-managed preferences - user selectable preferences are managed in table AD_UserPreference
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_HEADER_COLLAPSED
static String
DEFAULT_HELP_COLLAPSED
static String
DEFAULT_MENU_COLLAPSED
static String
LANGUAGE_NAME
Language Name Contextstatic String
P_CLIENT
Client Namestatic String
P_HEADER_COLLAPSED
Header Collapsedstatic String
P_HELP_COLLAPSED
Help Panel Collapsedstatic String
P_LANGUAGE
Languagestatic String
P_MENU_COLLAPSED
Menu Collapsedstatic String
P_ORG
Org Namestatic String
P_ROLE
Rolestatic String
P_WAREHOUSE
Warehouse Name
-
Constructor Summary
Constructors Constructor Description UserPreference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deletePreference()
delete all user preferenceString
getProperty(String key)
Get Properyboolean
isPropertyBool(String key)
Get Propery as Booleanvoid
loadPreference(int AD_User_ID)
load user preferencevoid
savePreference()
save user preferencevoid
setProperty(String key, boolean value)
Set Propertyvoid
setProperty(String key, int value)
Set Propertyvoid
setProperty(String key, String value)
Set Property
-
-
-
Field Detail
-
P_LANGUAGE
public static final String P_LANGUAGE
Language- See Also:
- Constant Field Values
-
P_ROLE
public static final String P_ROLE
Role- See Also:
- Constant Field Values
-
P_CLIENT
public static final String P_CLIENT
Client Name- See Also:
- Constant Field Values
-
P_ORG
public static final String P_ORG
Org Name- See Also:
- Constant Field Values
-
P_WAREHOUSE
public static final String P_WAREHOUSE
Warehouse Name- See Also:
- Constant Field Values
-
LANGUAGE_NAME
public static final String LANGUAGE_NAME
Language Name Context- See Also:
- Constant Field Values
-
P_MENU_COLLAPSED
public static final String P_MENU_COLLAPSED
Menu Collapsed- See Also:
- Constant Field Values
-
DEFAULT_MENU_COLLAPSED
public static final String DEFAULT_MENU_COLLAPSED
- See Also:
- Constant Field Values
-
P_HELP_COLLAPSED
public static final String P_HELP_COLLAPSED
Help Panel Collapsed- See Also:
- Constant Field Values
-
DEFAULT_HELP_COLLAPSED
public static final String DEFAULT_HELP_COLLAPSED
- See Also:
- Constant Field Values
-
P_HEADER_COLLAPSED
public static final String P_HEADER_COLLAPSED
Header Collapsed- See Also:
- Constant Field Values
-
DEFAULT_HEADER_COLLAPSED
public static final String DEFAULT_HEADER_COLLAPSED
- See Also:
- Constant Field Values
-
-
Method Detail
-
savePreference
public void savePreference()
save user preference
-
loadPreference
public void loadPreference(int AD_User_ID)
load user preference- Parameters:
AD_User_ID
-
-
deletePreference
public void deletePreference()
delete all user preference
-
setProperty
public void setProperty(String key, String value)
Set Property- Parameters:
key
- Keyvalue
- Value
-
setProperty
public void setProperty(String key, boolean value)
Set Property- Parameters:
key
- Keyvalue
- Value
-
setProperty
public void setProperty(String key, int value)
Set Property- Parameters:
key
- Keyvalue
- Value
-
isPropertyBool
public boolean isPropertyBool(String key)
Get Propery as Boolean- Parameters:
key
- Key- Returns:
- Value
-
-