Class 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
    • Constructor Detail

      • UserPreference

        public UserPreference()
    • 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 - Key
        value - Value
      • setProperty

        public void setProperty​(String key,
                                boolean value)
        Set Property
        Parameters:
        key - Key
        value - Value
      • setProperty

        public void setProperty​(String key,
                                int value)
        Set Property
        Parameters:
        key - Key
        value - Value
      • getProperty

        public String getProperty​(String key)
        Get Propery
        Parameters:
        key - Key
        Returns:
        Value
      • isPropertyBool

        public boolean isPropertyBool​(String key)
        Get Propery as Boolean
        Parameters:
        key - Key
        Returns:
        Value