Show / Hide Table of Contents

Class UserPreferenceArchiveHelper

Helper class to decode / populate preference values; provides shared logic for the UserPreferenceExtenderBase and MappedPreferenceProvider

Inheritance
object
UserPreferenceArchiveHelper
Implements
IUserPreferenceArchiveHelper
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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)>

Implements

IUserPreferenceArchiveHelper

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top