Show / Hide Table of Contents

Class PersonContactExtenderHelper

Common functionality related to custom fields and logic on person; used by PersonExtenderBase for static and DynamicPersonExtender for dynamic extenders

Inheritance
Object
PersonContactExtenderHelper
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.dll
Syntax
public class PersonContactExtenderHelper

Constructors

PersonContactExtenderHelper(ExtensibleColumnsBase)

Declaration
public PersonContactExtenderHelper(ExtensibleColumnsBase parent)
Parameters
Type Name Description
ExtensibleColumnsBase parent

Fields

_colAddressId

Declaration
protected ArchiveColumnInfo _colAddressId
Field Value
Type Description
ArchiveColumnInfo

_colCity

Declaration
protected ArchiveColumnInfo _colCity
Field Value
Type Description
ArchiveColumnInfo

_colCounty

Declaration
protected ArchiveColumnInfo _colCounty
Field Value
Type Description
ArchiveColumnInfo

_colLine1

Declaration
protected ArchiveColumnInfo _colLine1
Field Value
Type Description
ArchiveColumnInfo

_colLine2

Declaration
protected ArchiveColumnInfo _colLine2
Field Value
Type Description
ArchiveColumnInfo

_colLine3

Declaration
protected ArchiveColumnInfo _colLine3
Field Value
Type Description
ArchiveColumnInfo

_colZip

Declaration
protected ArchiveColumnInfo _colZip
Field Value
Type Description
ArchiveColumnInfo

Properties

AddressColumns

Provide an iterator that will give the address columns only

Declaration
public IEnumerable<ArchiveColumnInfo> AddressColumns { get; }
Property Value
Type Description
IEnumerable<ArchiveColumnInfo>

Methods

AddAndInitializeExtensionProvider<ExtenderType>(ExtenderType, String, String)

Reflection of a similar method in ExtensibleColumnsBase, needed here to initialize extenders on behalf of our parent

Declaration
protected ExtenderType AddAndInitializeExtensionProvider<ExtenderType>(ExtenderType extender, string namePrefix, string displayNamePrefix)
    where ExtenderType : IArchiveExtender
Parameters
Type Name Description
ExtenderType extender
String namePrefix
String displayNamePrefix
Returns
Type Description
ExtenderType
Type Parameters
Name Description
ExtenderType

GetFullName(SoDataReader, ArchiveRow, Boolean)

Get the full name according to formatting preferences, without contact component

Declaration
public ArchiveColumnData GetFullName(SoDataReader reader, ArchiveRow row, bool wantNavLinks)
Parameters
Type Name Description
SoDataReader reader
ArchiveRow row
Boolean wantNavLinks
Returns
Type Description
ArchiveColumnData

GetFullNameWithContact(SoDataReader, ArchiveRow, Boolean, ContactExtenderBase)

Get the full name according to formatting preferences, including the contact name and department

Declaration
public ArchiveColumnData GetFullNameWithContact(SoDataReader reader, ArchiveRow row, bool wantNavLinks, ContactExtenderBase contactExtender)
Parameters
Type Name Description
SoDataReader reader
ArchiveRow row
Boolean wantNavLinks
ContactExtenderBase contactExtender
Returns
Type Description
ArchiveColumnData

GetNameAndDepartment(SoDataReader, ContactTableInfo, Boolean)

Declaration
public static ArchiveColumnData GetNameAndDepartment(SoDataReader reader, ContactTableInfo contactInfo, bool wantNavLinks)
Parameters
Type Name Description
SoDataReader reader
ContactTableInfo contactInfo
Boolean wantNavLinks
Returns
Type Description
ArchiveColumnData

InitializeAddressExtenders()

Initialize the address extenders. Call from constructor

Declaration
public void InitializeAddressExtenders()

PopulateAddressColumns(ArchiveRow, Boolean, ColumnHelper)

Populate the requested address columns from various subextenders. Call from InnerPopulateRowFromReader.

Declaration
public void PopulateAddressColumns(ArchiveRow row, bool wantPersonAddress, ColumnHelper columnHelper)
Parameters
Type Name Description
ArchiveRow row
Boolean wantPersonAddress
ColumnHelper columnHelper

ProcessFullNameRestriction(ArchiveRestrictionInfo, ArchiveSelect)

Helper for processing fullname restriction

Declaration
public void ProcessFullNameRestriction(ArchiveRestrictionInfo restriction, ArchiveSelect targetQuery)
Parameters
Type Name Description
ArchiveRestrictionInfo restriction
ArchiveSelect targetQuery

SetDesiredAddressColumns(String[])

Fish out address columns from a set of desired columns, and do the prefixing magic needed. Call from SetDesiredColumns

Declaration
public bool SetDesiredAddressColumns(string[] columnIds)
Parameters
Type Name Description
String[] columnIds
Returns
Type Description
Boolean

true if at least one address column has been requested

SetFullNameOrderBy(ArchiveColumnInfo, ArchiveColumnInfo, ArchiveColumnInfo, ArchiveColumnInfo, ArchiveColumnInfo, ArchiveColumnInfo, ArchiveColumnInfo)

Declaration
public void SetFullNameOrderBy(ArchiveColumnInfo _colFullName, ArchiveColumnInfo _colFullNameWithContact, ArchiveColumnInfo _colFirstName, ArchiveColumnInfo _colMiddleName, ArchiveColumnInfo _colLastName, ArchiveColumnInfo _colPosition, ArchiveColumnInfo _colRank)
Parameters
Type Name Description
ArchiveColumnInfo _colFullName
ArchiveColumnInfo _colFullNameWithContact
ArchiveColumnInfo _colFirstName
ArchiveColumnInfo _colMiddleName
ArchiveColumnInfo _colLastName
ArchiveColumnInfo _colPosition
ArchiveColumnInfo _colRank

SetPersonTableInfo(PersonTableInfo)

Declaration
public void SetPersonTableInfo(PersonTableInfo ourTable)
Parameters
Type Name Description
PersonTableInfo ourTable

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