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: SuperOfficeCRMArchiveLists
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[SoInject("Database")]
public class UserPreferenceArchiveHelper : IUserPreferenceArchiveHelper

Constructors

UserPreferenceArchiveHelper()

Declaration
public UserPreferenceArchiveHelper()

Methods

GetDatabaseName(int)

Declaration
public string GetDatabaseName(int ownerId)
Parameters
Type Name Description
int ownerId
Returns
Type Description
string

GetLevelEntityName(PreferenceLevel)

Declaration
public string GetLevelEntityName(PreferenceLevel deflevel)
Parameters
Type Name Description
PreferenceLevel deflevel
Returns
Type Description
string

GetLevelName(PreferenceLevel)

Declaration
public string GetLevelName(PreferenceLevel deflevel)
Parameters
Type Name Description
PreferenceLevel deflevel
Returns
Type Description
string

GetOwnerName(PreferenceLevel, int)

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)

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
TaskstringSystem.ValueTuple{System.String,System.String}.valuestringSystem.ValueTuple{System.String,System.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