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
Fields Modifier and Type Field Description protected org.pentaho.platform.api.repository2.unified.IUnifiedRepository
repository
static String
SETTING_PREFIX
-
Constructor Summary
Constructors Constructor Description UserSettingService(org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canAdminister()
void
deleteUserSettings()
void
deleteUserSettings(String username)
org.pentaho.platform.api.usersettings.pojo.IUserSetting
getGlobalUserSetting(String settingName, String defaultValue)
List<org.pentaho.platform.api.usersettings.pojo.IUserSetting>
getGlobalUserSettings()
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>
getUserSettings()
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 Detail
-
SETTING_PREFIX
public static final String SETTING_PREFIX
- See Also:
- Constant Field Values
-
repository
protected 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 interfaceorg.pentaho.platform.api.engine.IPentahoInitializer
-
deleteUserSettings
public void deleteUserSettings()
- Specified by:
deleteUserSettings
in interfaceorg.pentaho.platform.api.usersettings.IUserSettingService
-
getUserSettings
public List<org.pentaho.platform.api.usersettings.pojo.IUserSetting> 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
public void setUserSetting(String settingName, String settingValue)
- Specified by:
setUserSetting
in interfaceorg.pentaho.platform.api.usersettings.IUserSettingService
-
deleteUserSettings
public void deleteUserSettings(String username) throws SecurityException
- 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
public List<org.pentaho.platform.api.usersettings.pojo.IUserSetting> getGlobalUserSettings()
- Specified by:
getGlobalUserSettings
in interfaceorg.pentaho.platform.api.usersettings.IUserSettingService
-
setGlobalUserSetting
public void setGlobalUserSetting(String settingName, String settingValue)
- Specified by:
setGlobalUserSetting
in interfaceorg.pentaho.platform.api.usersettings.IUserSettingService
-
canAdminister
protected boolean canAdminister()
-
-