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:
    • Field Details

    • 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

        public void setProperty(String key, String value)
        Set value for user preference property
        Parameters:
        key - Key
        value - Value
      • setProperty

        public void setProperty(String key, boolean value)
        Set value for user preference property
        Parameters:
        key - Key
        value - Value
      • setProperty

        public void setProperty(String key, int value)
        Set value for user preference property
        Parameters:
        key - Key
        value - Value
      • getProperty

        public String getProperty(String key)
        Get user preference property value
        Parameters:
        key - Key
        Returns:
        Value
      • isPropertyBool

        public boolean isPropertyBool(String key)
        Get Property as Boolean (Y/N)
        Parameters:
        key - Key
        Returns:
        Value