Class UserSettingService

  • All Implemented Interfaces:
    org.pentaho.platform.api.engine.IPentahoInitializer, org.pentaho.platform.api.usersettings.IAnyUserSettingService, org.pentaho.platform.api.usersettings.IUserSettingService

    public class UserSettingService
    extends Object
    implements org.pentaho.platform.api.usersettings.IAnyUserSettingService, org.pentaho.platform.api.usersettings.IUserSettingService
    • Field Detail

      • repository

        protected org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository
    • Constructor Detail

      • UserSettingService

        public UserSettingService​(org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository)
    • Method Detail

      • init

        public void init​(org.pentaho.platform.api.engine.IPentahoSession session)
        Specified by:
        init in interface org.pentaho.platform.api.engine.IPentahoInitializer
      • deleteUserSettings

        public void deleteUserSettings()
        Specified by:
        deleteUserSettings in interface org.pentaho.platform.api.usersettings.IUserSettingService
      • getUserSettings

        public List<org.pentaho.platform.api.usersettings.pojo.IUserSetting> getUserSettings()
        Specified by:
        getUserSettings in interface org.pentaho.platform.api.usersettings.IUserSettingService
      • getUserSetting

        public org.pentaho.platform.api.usersettings.pojo.IUserSetting getUserSetting​(String settingName,
                                                                                      String defaultValue)
        Specified by:
        getUserSetting in interface org.pentaho.platform.api.usersettings.IUserSettingService
      • setUserSetting

        public void setUserSetting​(String settingName,
                                   String settingValue)
        Specified by:
        setUserSetting in interface org.pentaho.platform.api.usersettings.IUserSettingService
      • deleteUserSettings

        public void deleteUserSettings​(String username)
                                throws SecurityException
        Specified by:
        deleteUserSettings in interface org.pentaho.platform.api.usersettings.IAnyUserSettingService
        Throws:
        SecurityException
      • getUserSettings

        public List<org.pentaho.platform.api.usersettings.pojo.IUserSetting> getUserSettings​(String username)
                                                                                      throws SecurityException
        Specified by:
        getUserSettings in interface org.pentaho.platform.api.usersettings.IAnyUserSettingService
        Throws:
        SecurityException
      • getUserSetting

        public org.pentaho.platform.api.usersettings.pojo.IUserSetting getUserSetting​(String username,
                                                                                      String settingName,
                                                                                      String defaultValue)
                                                                               throws SecurityException
        Specified by:
        getUserSetting in interface org.pentaho.platform.api.usersettings.IAnyUserSettingService
        Throws:
        SecurityException
      • setUserSetting

        public void setUserSetting​(String username,
                                   String settingName,
                                   String settingValue)
                            throws SecurityException
        Specified by:
        setUserSetting in interface org.pentaho.platform.api.usersettings.IAnyUserSettingService
        Throws:
        SecurityException
      • getGlobalUserSetting

        public org.pentaho.platform.api.usersettings.pojo.IUserSetting getGlobalUserSetting​(String settingName,
                                                                                            String defaultValue)
        Specified by:
        getGlobalUserSetting in interface org.pentaho.platform.api.usersettings.IUserSettingService
      • getGlobalUserSettings

        public List<org.pentaho.platform.api.usersettings.pojo.IUserSetting> getGlobalUserSettings()
        Specified by:
        getGlobalUserSettings in interface org.pentaho.platform.api.usersettings.IUserSettingService
      • setGlobalUserSetting

        public void setGlobalUserSetting​(String settingName,
                                         String settingValue)
        Specified by:
        setGlobalUserSetting in interface org.pentaho.platform.api.usersettings.IUserSettingService
      • canAdminister

        protected boolean canAdminister()