Class UserPreferenceArchiveHelper
Helper class to decode / populate preference values; provides shared logic for the UserPreferenceExtenderBase and MappedPreferenceProvider
Implements
Inherited Members
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[SoInject("Database")]
public class UserPreferenceArchiveHelper : IUserPreferenceArchiveHelper
Constructors
UserPreferenceArchiveHelper()
Helper class to decode / populate preference values; provides shared logic for the UserPreferenceExtenderBase and MappedPreferenceProvider
Declaration
public UserPreferenceArchiveHelper()
Methods
GetDatabaseName(int)
Helper class to decode / populate preference values; provides shared logic for the UserPreferenceExtenderBase and MappedPreferenceProvider
Declaration
public string GetDatabaseName(int ownerId)
Parameters
| Type | Name | Description |
|---|---|---|
| int | ownerId |
Returns
| Type | Description |
|---|---|
| string |
GetLevelEntityName(PreferenceLevel)
Helper class to decode / populate preference values; provides shared logic for the UserPreferenceExtenderBase and MappedPreferenceProvider
Declaration
public string GetLevelEntityName(PreferenceLevel deflevel)
Parameters
| Type | Name | Description |
|---|---|---|
| PreferenceLevel | deflevel |
Returns
| Type | Description |
|---|---|
| string |
GetLevelName(PreferenceLevel)
Helper class to decode / populate preference values; provides shared logic for the UserPreferenceExtenderBase and MappedPreferenceProvider
Declaration
public string GetLevelName(PreferenceLevel deflevel)
Parameters
| Type | Name | Description |
|---|---|---|
| PreferenceLevel | deflevel |
Returns
| Type | Description |
|---|---|
| string |
GetOwnerName(PreferenceLevel, int)
Helper class to decode / populate preference values; provides shared logic for the UserPreferenceExtenderBase and MappedPreferenceProvider
Declaration
public string GetOwnerName(PreferenceLevel deflevel, int ownerId)
Parameters
| Type | Name | Description |
|---|---|---|
| PreferenceLevel | deflevel | |
| int | ownerId |
Returns
| Type | Description |
|---|---|
| string |
GetPreferenceValueAsync(string, string, string, CancellationToken)
Helper class to decode / populate preference values; provides shared logic for the UserPreferenceExtenderBase and MappedPreferenceProvider
Declaration
public Task<(string value, string tooltip)> GetPreferenceValueAsync(string section, string key, string rawValue, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | section | |
| string | key | |
| string | rawValue | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<(string value, string tooltip)> |