Class ServicePreferenceMapper
Handle the mapping of some sections in userpreference to actually be stored in the config, registry and password_rules tables;
backwards compatibility with Service
Inheritance
ServicePreferenceMapper
Assembly: SoDataBase.dll
Syntax
[SoInject("Database")]
public class ServicePreferenceMapper
Properties
MappedSections
Declaration
public HashSet<string> MappedSections { get; }
Property Value
Mappings
Declaration
public Dictionary<(string section, string key), ServicePreferenceMappings.PreferenceMappingInfo> Mappings { get; }
Property Value
Methods
If the given section is one of ours, read all our mapped stuff and update the cache.
Declaration
public string[] CheckForMappingAndFetchIntoCache(string section)
Parameters
Type |
Name |
Description |
String |
section |
|
Returns
Declaration
public int CheckForMappingAndSavePreference(string section, string key, string value, int ownerId)
Parameters
Returns
FetchIndividualValues()
Declaration
public List<(string section, string key, int associateId, string value)> FetchIndividualValues()
Returns
FetchSinglePreference(String, String, PreferenceLevel, Int32)
Declaration
public (int fakeId, string rawValue) FetchSinglePreference(string section, string key, PreferenceLevel prefLevel, int ownerId)
Parameters
Returns
Extension Methods
EnumUtil.MapEnums<From, To>(From)