Class DocumentProvider
Archive provider for Document type activities. This provider can be used on its own, or can form part of the ActivityArchiveProvider, which mixes Documents, appointments, tasks and documents.
Inheritance
Implements
Inherited Members
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.dll
Syntax
[ArchiveProvider("Document", 1073741823)]
public class DocumentProvider : ActivityProviderBase<DocumentDocumentExtender>, IArchiveProviderQueryMapping, IArchiveQueryProvider, IArchiveProviderExtensible, IArchiveTypedProvider<ArchiveRow>, IArchiveTypedProviderBase, IArchiveProvider, IArchiveProviderHasRows, IArchiveProviderHasColumns, IArchiveProviderHasEntities
Constructors
DocumentProvider()
Archive provider for Document type activities. This provider can be used on its own, or can form part of the ActivityArchiveProvider, which mixes Documents, appointments, tasks and documents.
Declaration
public DocumentProvider()
DocumentProvider(ActivityArchiveKind)
This constructor is called via reflection from the DoneNotDoneSplitter to set up non-raw activity archives
Declaration
public DocumentProvider(ActivityArchiveKind kind)
Parameters
Type | Name | Description |
---|---|---|
ActivityArchiveKind | kind | Kind of activity archive |
Fields
ProviderName
Archive provider for Document type activities. This provider can be used on its own, or can form part of the ActivityArchiveProvider, which mixes Documents, appointments, tasks and documents.
Declaration
public const string ProviderName = "Document"
Field Value
Type | Description |
---|---|
string |
Methods
AcceptRow(SoDataReader)
If the row is private, we should skip it; Sentry will give us the row anyway, since the rules say that you CAN see the dates of a private appointment. The ARCHIVE rules however say "skip it", so that is what we do here.
Declaration
protected override bool AcceptRow(SoDataReader reader)
Parameters
Type | Name | Description |
---|---|---|
SoDataReader | reader |
Returns
Type | Description |
---|---|
bool |
Overrides
InnerPopulateRowFromReader(SoDataReader, ArchiveRow)
Populate any custom fields - there is no custom processing here, it's all done by the extenders
Declaration
protected override void InnerPopulateRowFromReader(SoDataReader reader, ArchiveRow row)
Parameters
Type | Name | Description |
---|---|---|
SoDataReader | reader | Data reader with a valid row |
ArchiveRow | row | Row to be populated |
Overrides
PostProcessQuery()
Add done today/not done as well as date bounds
Declaration
public override void PostProcessQuery()