public class UserSettingsService extends java.lang.Object implements IUserSettings
Constructor and Description |
---|
UserSettingsService(BmContext context,
IDomainSettings domainSettingsService,
Container userSettings,
java.lang.String domainUid) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
get(java.lang.String uid)
Get
User settings |
java.lang.String |
getOne(java.lang.String uid,
java.lang.String name)
Get one
User setting value |
void |
set(java.lang.String uid,
java.util.Map<java.lang.String,java.lang.String> settings)
Set
User settings |
void |
setOne(java.lang.String uid,
java.lang.String name,
java.lang.String value)
Create or update one
User setting |
public UserSettingsService(BmContext context, IDomainSettings domainSettingsService, Container userSettings, java.lang.String domainUid) throws ServerFault
ServerFault
public void set(java.lang.String uid, java.util.Map<java.lang.String,java.lang.String> settings) throws ServerFault
IUserSettings
User
settingsset
in interface IUserSettings
uid
- uid of the usersettings
- settings valuesServerFault
public java.util.Map<java.lang.String,java.lang.String> get(java.lang.String uid) throws ServerFault
IUserSettings
User
settingsget
in interface IUserSettings
uid
- uid of the userServerFault
public void setOne(java.lang.String uid, java.lang.String name, java.lang.String value) throws ServerFault
IUserSettings
User
settingsetOne
in interface IUserSettings
uid
- uid of the username
- setting namevalue
- setting valueServerFault
public java.lang.String getOne(java.lang.String uid, java.lang.String name) throws ServerFault
IUserSettings
User
setting valuegetOne
in interface IUserSettings
uid
- uid of the username
- setting nameServerFault
Copyright © 2021. All Rights Reserved.