Package org.adempiere.webui.util
Class UserPreference
java.lang.Object
org.adempiere.webui.util.UserPreference
- All Implemented Interfaces:
Serializable
Controller for user preference (AD_Preference)
- 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:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
Language Name Contextstatic final String
Client Namestatic final String
Header Collapsedstatic final String
Help Panel Collapsedstatic final String
Languagestatic final String
Menu Collapsedstatic final String
Org Namestatic final String
Header Collapsedstatic final String
Rolestatic final String
Warehouse Name -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete all user preferencegetProperty
(String key) Get user preference property valueboolean
isPropertyBool
(String key) Get Property as Boolean (Y/N)void
loadPreference
(int AD_User_ID) load user preferencevoid
save user preferencevoid
setProperty
(String key, boolean value) Set value for user preference propertyvoid
setProperty
(String key, int value) Set value for user preference propertyvoid
setProperty
(String key, String value) Set value for user preference property
-
Field Details
-
P_LANGUAGE
Language- See Also:
-
P_ROLE
Role- See Also:
-
P_CLIENT
Client Name- See Also:
-
P_ORG
Org Name- See Also:
-
P_WAREHOUSE
Warehouse Name- See Also:
-
LANGUAGE_NAME
Language Name Context- See Also:
-
P_MENU_COLLAPSED
Menu Collapsed- See Also:
-
DEFAULT_MENU_COLLAPSED
- See Also:
-
P_HELP_COLLAPSED
Help Panel Collapsed- See Also:
-
DEFAULT_HELP_COLLAPSED
- See Also:
-
P_HEADER_COLLAPSED
Header Collapsed- See Also:
-
DEFAULT_HEADER_COLLAPSED
- See Also:
-
P_RECORD_INFO_DEFAULT_TAB
Header Collapsed- See Also:
-
DEFAULT_RECORD_INFO_DEFAULT_TAB
- See Also:
-
-
Constructor Details
-
UserPreference
public UserPreference()
-
-
Method Details
-
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
Set value for user preference property- Parameters:
key
- Keyvalue
- Value
-
setProperty
Set value for user preference property- Parameters:
key
- Keyvalue
- Value
-
setProperty
Set value for user preference property- Parameters:
key
- Keyvalue
- Value
-
getProperty
Get user preference property value- Parameters:
key
- Key- Returns:
- Value
-
isPropertyBool
Get Property as Boolean (Y/N)- Parameters:
key
- Key- Returns:
- Value
-