Class FindProviderBase<RowType, RootExtender>
Base class for the providers for the Find dialogs. This class adds functionality for setting restrictions via an associate id, using the standard criteria storage for restrictions. It also makes all return rows read-only.
Inheritance
QueryProviderBase<RowType>
TypedQueryProviderBase<RowType, RootExtender>
FindProviderBase<RowType, RootExtender>
Inherited Members
ExtensibleColumnsBase.MapReturnField(ArchiveSelect, FieldInfo, Boolean, String, ArchiveColumnInfo[])
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.dll
Syntax
public abstract class FindProviderBase<RowType, RootExtender> : TypedQueryProviderBase<RowType, RootExtender>, IArchiveProviderQueryMapping, IArchiveQueryProvider, IArchiveProviderExtensible, IArchiveFindProviderBase<RowType>, IArchiveTypedProvider<RowType>, IArchiveTypedProviderBase, IArchiveProvider, IArchiveProviderHasRows, IArchiveProviderHasColumns, IArchiveProviderHasEntities, IPlugin where RowType : ArchiveRow, new()
where RootExtender : IArchiveExtender, new()
Type Parameters
Name | Description |
---|---|
RowType | |
RootExtender |
Constructors
FindProviderBase(ArchiveRowTypeInfo)
Declaration
protected FindProviderBase(ArchiveRowTypeInfo entity)
Parameters
Type | Name | Description |
---|---|---|
ArchiveRowTypeInfo | entity |
FindProviderBase(ArchiveRowTypeInfo, RootExtender)
Declaration
protected FindProviderBase(ArchiveRowTypeInfo entity, RootExtender extender)
Parameters
Type | Name | Description |
---|---|---|
ArchiveRowTypeInfo | entity | |
RootExtender | extender |
Methods
FetchAndSetCriteria(Int32)
Fetch criteria from the restriction storage, set them on the provider, and return them to caller
Declaration
public ArchiveRestrictionInfo[] FetchAndSetCriteria(int ownerAssociate)
Parameters
Type | Name | Description |
---|---|---|
Int32 | ownerAssociate | ID of associate to fetch restrictions for |
Returns
Type | Description |
---|---|
ArchiveRestrictionInfo[] | Restrictions, which have alreday been set on the provider |
PostProcessRow(SoDataReader, ArchiveRow)
Override: Set every row read-only, with the reason that you cannot update rows in a Find result
Declaration
protected override void PostProcessRow(SoDataReader _reader, ArchiveRow row)
Parameters
Type | Name | Description |
---|---|---|
SoDataReader | _reader | |
ArchiveRow | row |
Overrides
SuperOffice.CRM.ArchiveLists.QueryProviderBase<RowType>.PostProcessRow(SuperOffice.Data.SoDataReader, SuperOffice.CRM.ArchiveLists.ArchiveRow)
SetRestriction(ArchiveRestrictionInfo[])
Override: Set restrictions on provider - if the 'criteriaAssociate' restriction is passed in, actual restrictions will be fetched from restriction storage, and those will be set; otherwise simply set what was passed in
Declaration
public override bool SetRestriction(params ArchiveRestrictionInfo[] restrictions)
Parameters
Type | Name | Description |
---|---|---|
ArchiveRestrictionInfo[] | restrictions |
Returns
Type | Description |
---|---|
Boolean |
Overrides
SuperOffice.CRM.ArchiveLists.QueryProviderBase<RowType>.SetRestriction(SuperOffice.CRM.ArchiveLists.ArchiveRestrictionInfo[])
Implements
Extension Methods
EnumUtil.MapEnums<From, To>(From)