Show / Hide Table of Contents

Class RelationListProvider

MDO list provider for contact/person relation definitions. This provider is a takes a mandatory additionalInfo parameter, that specifies what kind of relation should be fetched.

Inheritance
object
MDOProviderBase
RelationListProvider
Implements
ISoListProvider
ISoList
IEnumerable<ISoListItem>
IEnumerable
Inherited Members
MDOProviderBase._historyIds
MDOProviderBase._searchValue
MDOProviderBase._forceFlatList
MDOProviderBase._rootCollection
MDOProviderBase._historyCollection
MDOProviderBase._headingCollection
MDOProviderBase._declaredListName
MDOProviderBase._tableRows
MDOProviderBase._nodeType
MDOProviderBase._listName
MDOProviderBase._tableName
MDOProviderBase._tableListInfo
MDOProviderBase._listInfo
MDOProviderBase.FillListAsync(CancellationToken)
MDOProviderBase.GetHistoryCollectionAsync(CancellationToken)
MDOProviderBase.ReadSimpleListAsync(CancellationToken)
MDOProviderBase.ReadItemsAndHeadingsAsync(CancellationToken)
MDOProviderBase.AddSimpleListOrderByAsync(ListTableRows.CustomSearch, CancellationToken)
MDOProviderBase.GetItemsAndHeadingsQueryAsync(bool, CancellationToken, params int[])
MDOProviderBase.AddGroupLinkJoin(int[], ListTableRows.CustomSearch)
MDOProviderBase.GetItemType(ListTableRow)
MDOProviderBase.GetHeadingType(ListTableRow)
MDOProviderBase.GetHeadingIconHint(ListTableRow)
MDOProviderBase.GetItemId(ListTableRow)
MDOProviderBase.GetItemName(ListTableRow)
MDOProviderBase.AcceptHistoryRow(ListTableRow)
MDOProviderBase.GetHistoryIconHint(ListTableRow)
MDOProviderBase.GetItemTooltip(ListTableRow)
MDOProviderBase.GetItemRank(ListTableRow)
MDOProviderBase.GetItemDeleted(ListTableRow)
MDOProviderBase.GetItemColor(ListTableRow)
MDOProviderBase.GetItemStyleHint(ListTableRow)
MDOProviderBase.GetGroupingAllowedForListAsync(CancellationToken)
MDOProviderBase.OnAddRootElementToCollection(SoListItem)
MDOProviderBase.OnAddSubItemToCollection(SoListItem, List<ISoListItem>)
MDOProviderBase.OnAddHeadingElementToCollection(SoListHeading)
MDOProviderBase.OnAddHistoryElementToCollection(SoListItem)
MDOProviderBase.GetListLowerLimitAsync(CancellationToken)
MDOProviderBase.GetPreferredSortOrderAsync(CancellationToken)
MDOProviderBase.BuildMdoCollectionsAsync(CancellationToken)
MDOProviderBase.ResortFlattenedListAsync(CancellationToken)
MDOProviderBase.GetHistoryItemsAsync(CancellationToken)
MDOProviderBase.ClearHistoryItems()
MDOProviderBase.GetRootItemsAsync(CancellationToken)
MDOProviderBase.GetHeadingItemsAsync(CancellationToken)
MDOProviderBase.IncludeDeletedItems
MDOProviderBase.InhibitResortOnFlattening
MDOProviderBase.IsFinalListFlat
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Lists
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[MDOProviderPlugin("ContactRelationDefinition")]
[MDOAdditionalInfo("RelationType enum value. CC=Contact-Contact relations", "CC")]
public class RelationListProvider : MDOProviderBase, ISoListProvider, ISoList, IEnumerable<ISoListItem>, IEnumerable
Remarks

AdditionalInfo can be one of 'CC', 'CP', 'PC', 'PP', specifying contact or person on the source and destination sides of the relation. A join is made to the relationTarget table to pick out the correct relation definitions to show. The RelationListProvider.RelationType enum can be used to avoid strings when specifying the relation type.

The extraInfo field in the items contains the passive (reverse) text, useful for display.

Constructors

RelationListProvider()

MDO list provider for contact/person relation definitions. This provider is a takes a mandatory additionalInfo parameter, that specifies what kind of relation should be fetched.

Declaration
public RelationListProvider()
Remarks

AdditionalInfo can be one of 'CC', 'CP', 'PC', 'PP', specifying contact or person on the source and destination sides of the relation. A join is made to the relationTarget table to pick out the correct relation definitions to show. The RelationListProvider.RelationType enum can be used to avoid strings when specifying the relation type.

The extraInfo field in the items contains the passive (reverse) text, useful for display.

Fields

ProviderName

MDO list provider for contact/person relation definitions. This provider is a takes a mandatory additionalInfo parameter, that specifies what kind of relation should be fetched.

Declaration
public const string ProviderName = "ContactRelationDefinition"
Field Value
Type Description
string
Remarks

AdditionalInfo can be one of 'CC', 'CP', 'PC', 'PP', specifying contact or person on the source and destination sides of the relation. A join is made to the relationTarget table to pick out the correct relation definitions to show. The RelationListProvider.RelationType enum can be used to avoid strings when specifying the relation type.

The extraInfo field in the items contains the passive (reverse) text, useful for display.

Properties

HistoryInfo

History information for the list

Declaration
public override HistoryInfo HistoryInfo { get; }
Property Value
Type Description
HistoryInfo
Overrides
MDOProviderBase.HistoryInfo
Remarks

AdditionalInfo can be one of 'CC', 'CP', 'PC', 'PP', specifying contact or person on the source and destination sides of the relation. A join is made to the relationTarget table to pick out the correct relation definitions to show. The RelationListProvider.RelationType enum can be used to avoid strings when specifying the relation type.

The extraInfo field in the items contains the passive (reverse) text, useful for display.

Methods

ConstructAsync(string, string, int[], bool, string, bool, CancellationToken)

Parse the desired relation type; pass on the physical table name to the base class, and (indirectly) construct the list

Declaration
public override Task ConstructAsync(string tableName, string additionalInfo, int[] historyIDs, bool onlyReadHistory, string searchValue, bool forceFlatList, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string tableName
string additionalInfo
int[] historyIDs
bool onlyReadHistory
string searchValue
bool forceFlatList
CancellationToken cancellationToken
Returns
Type Description
Task
Overrides
MDOProviderBase.ConstructAsync(string, string, int[], bool, string, bool, CancellationToken)
Remarks

AdditionalInfo can be one of 'CC', 'CP', 'PC', 'PP', specifying contact or person on the source and destination sides of the relation. A join is made to the relationTarget table to pick out the correct relation definitions to show. The RelationListProvider.RelationType enum can be used to avoid strings when specifying the relation type.

The extraInfo field in the items contains the passive (reverse) text, useful for display.

GetItemExtraInfo(ListTableRow)

Override: Fetch the passive_text field as the extraInfo

Declaration
protected override string GetItemExtraInfo(ListTableRow row)
Parameters
Type Name Description
ListTableRow row
Returns
Type Description
string
Overrides
MDOProviderBase.GetItemExtraInfo(ListTableRow)
Remarks

AdditionalInfo can be one of 'CC', 'CP', 'PC', 'PP', specifying contact or person on the source and destination sides of the relation. A join is made to the relationTarget table to pick out the correct relation definitions to show. The RelationListProvider.RelationType enum can be used to avoid strings when specifying the relation type.

The extraInfo field in the items contains the passive (reverse) text, useful for display.

GetItemIconHint(ListTableRow)

Get a value for the field IconHint in ISoList for an item element

Declaration
protected override string GetItemIconHint(ListTableRow row)
Parameters
Type Name Description
ListTableRow row

The actual row for which the item is created

Returns
Type Description
string

An icon hint text

Overrides
MDOProviderBase.GetItemIconHint(ListTableRow)
Remarks

AdditionalInfo can be one of 'CC', 'CP', 'PC', 'PP', specifying contact or person on the source and destination sides of the relation. A join is made to the relationTarget table to pick out the correct relation definitions to show. The RelationListProvider.RelationType enum can be used to avoid strings when specifying the relation type.

The extraInfo field in the items contains the passive (reverse) text, useful for display.

GetItemsAndHeadingsQueryAsync(CancellationToken)

Override: Add our extra join, restriction and fields to a headings/items list query

Declaration
protected override Task<ListTableRows.CustomSearch> GetItemsAndHeadingsQueryAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task<ListTableRows.CustomSearch>
Overrides
MDOProviderBase.GetItemsAndHeadingsQueryAsync(CancellationToken)
Remarks

AdditionalInfo can be one of 'CC', 'CP', 'PC', 'PP', specifying contact or person on the source and destination sides of the relation. A join is made to the relationTarget table to pick out the correct relation definitions to show. The RelationListProvider.RelationType enum can be used to avoid strings when specifying the relation type.

The extraInfo field in the items contains the passive (reverse) text, useful for display.

GetSimpleListQueryAsync(CancellationToken)

Override: Add our extra join, restriction and fields to a simple list query

Declaration
protected override Task<ListTableRows.CustomSearch> GetSimpleListQueryAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task<ListTableRows.CustomSearch>
Overrides
MDOProviderBase.GetSimpleListQueryAsync(CancellationToken)
Remarks

AdditionalInfo can be one of 'CC', 'CP', 'PC', 'PP', specifying contact or person on the source and destination sides of the relation. A join is made to the relationTarget table to pick out the correct relation definitions to show. The RelationListProvider.RelationType enum can be used to avoid strings when specifying the relation type.

The extraInfo field in the items contains the passive (reverse) text, useful for display.

Implements

ISoListProvider
ISoList
IEnumerable<T>
IEnumerable

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