Class UserSettingService
java.lang.Object
org.pentaho.platform.repository.usersettings.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 Summary
Modifier and TypeFieldDescriptionprotected org.pentaho.platform.api.repository2.unified.IUnifiedRepository
static final String
-
Constructor Summary
ConstructorDescriptionUserSettingService
(org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
void
void
deleteUserSettings
(String username) org.pentaho.platform.api.usersettings.pojo.IUserSetting
getGlobalUserSetting
(String settingName, String defaultValue) List<org.pentaho.platform.api.usersettings.pojo.IUserSetting>
org.pentaho.platform.api.usersettings.pojo.IUserSetting
getUserSetting
(String settingName, String defaultValue) org.pentaho.platform.api.usersettings.pojo.IUserSetting
getUserSetting
(String username, String settingName, String defaultValue) List<org.pentaho.platform.api.usersettings.pojo.IUserSetting>
List<org.pentaho.platform.api.usersettings.pojo.IUserSetting>
getUserSettings
(String username) void
init
(org.pentaho.platform.api.engine.IPentahoSession session) void
setGlobalUserSetting
(String settingName, String settingValue) void
setUserSetting
(String settingName, String settingValue) void
setUserSetting
(String username, String settingName, String settingValue)
-
Field Details
-
SETTING_PREFIX
- See Also:
-
repository
protected org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository
-
-
Constructor Details
-
UserSettingService
public UserSettingService(org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository)
-
-
Method Details
-
init
public void init(org.pentaho.platform.api.engine.IPentahoSession session) - Specified by:
init
in interfaceorg.pentaho.platform.api.engine.IPentahoInitializer
-
deleteUserSettings
public void deleteUserSettings()- Specified by:
deleteUserSettings
in interfaceorg.pentaho.platform.api.usersettings.IUserSettingService
-
getUserSettings
- Specified by:
getUserSettings
in interfaceorg.pentaho.platform.api.usersettings.IUserSettingService
-
getUserSetting
public org.pentaho.platform.api.usersettings.pojo.IUserSetting getUserSetting(String settingName, String defaultValue) - Specified by:
getUserSetting
in interfaceorg.pentaho.platform.api.usersettings.IUserSettingService
-
setUserSetting
- Specified by:
setUserSetting
in interfaceorg.pentaho.platform.api.usersettings.IUserSettingService
-
deleteUserSettings
- Specified by:
deleteUserSettings
in interfaceorg.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 interfaceorg.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 interfaceorg.pentaho.platform.api.usersettings.IAnyUserSettingService
- Throws:
SecurityException
-
setUserSetting
public void setUserSetting(String username, String settingName, String settingValue) throws SecurityException - Specified by:
setUserSetting
in interfaceorg.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 interfaceorg.pentaho.platform.api.usersettings.IUserSettingService
-
getGlobalUserSettings
- Specified by:
getGlobalUserSettings
in interfaceorg.pentaho.platform.api.usersettings.IUserSettingService
-
setGlobalUserSetting
- Specified by:
setGlobalUserSetting
in interfaceorg.pentaho.platform.api.usersettings.IUserSettingService
-
canAdminister
protected boolean canAdminister()
-