Show / Hide Table of Contents

Class SelectionTypeManager

Centralized point of knowledge for the Selection system: what tables can we have Selections of, and what are the properties and providers for each

Inheritance
object
SelectionTypeManager
Implements
ISelectionTypeManager
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeCRMEntities
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public class SelectionTypeManager : ISelectionTypeManager

Constructors

SelectionTypeManager(INSPrincipalAccessor, ILicenseManager)

Declaration
public SelectionTypeManager(INSPrincipalAccessor principalAccessor, ILicenseManager licenseManager)
Parameters
Type Name Description
INSPrincipalAccessor principalAccessor
ILicenseManager licenseManager

Methods

GetProviderName(int)

Declaration
public string GetProviderName(int selectionId)
Parameters
Type Name Description
int selectionId
Returns
Type Description
string

GetProviderNameByType(short, SelectionTypeInfo)

Based on a selType (static/dynamic/combined) value, pick the rick member provider name

Declaration
public string GetProviderNameByType(short selType, SelectionTypeInfo selTypeInfo)
Parameters
Type Name Description
short selType
SelectionTypeInfo selTypeInfo
Returns
Type Description
string

GetSelectionMainHeading(short, int)

'Static selection of Companies', or whatever else is appropriate, made by combining text resources for the type and the entity (plural form); this string will contain resource references

Declaration
public string GetSelectionMainHeading(short selType, int tableNumber)
Parameters
Type Name Description
short selType
int tableNumber
Returns
Type Description
string

GetSelectionType(int)

Get a praticular selection type, by table number

Declaration
public SelectionTypeInfo GetSelectionType(int tableNumber)
Parameters
Type Name Description
int tableNumber
Returns
Type Description
SelectionTypeInfo

null if there is no such table, or if the table does not have selection support

GetSelectionType(string)

Get a particular selection type, by entity (table!) name

Declaration
public SelectionTypeInfo GetSelectionType(string entity)
Parameters
Type Name Description
string entity
Returns
Type Description
SelectionTypeInfo

null if there is no selection support for this entity

GetSelectionTypeFromProviderName(string)

Declaration
public SelectionTypeInfo GetSelectionTypeFromProviderName(string providerName)
Parameters
Type Name Description
string providerName
Returns
Type Description
SelectionTypeInfo

GetSelectionTypeFromSelectionId(int)

Get selection type information based on a selection id (database access)

Declaration
public SelectionTypeInfo GetSelectionTypeFromSelectionId(int selectionId)
Parameters
Type Name Description
int selectionId
Returns
Type Description
SelectionTypeInfo

GetSelectionTypes()

Get all known accessible selection types; filtered through the current associate's licenses

Declaration
public List<SelectionTypeInfo> GetSelectionTypes()
Returns
Type Description
ListSelectionTypeInfo

Implements

ISelectionTypeManager

Extension Methods

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