Class ExpressReportProcessorFactory
Implements
Inherited Members
Namespace: LemonEdge.API.Core.Reporting
Assembly: LemonEdge.API.dll
Syntax
public class ExpressReportProcessorFactory : IBaseDataSetProcessorFactory
Constructors
ExpressReportProcessorFactory()
Declaration
public ExpressReportProcessorFactory()
Properties
ProcessorType
The type of processor this factory is responsible for creating
Declaration
public Type ProcessorType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
TypesInDataSet
A list of the types of entities that this factory can create processors for
Declaration
public EntityDescriptor[] TypesInDataSet { get; }
Property Value
| Type | Description |
|---|---|
| EntityDescriptor[] |
Methods
BelongsToDataSetProcessorType(IBaseEntity)
Indicates if the specified item actualy belongs to the processor this factory creates.
Some processors may be created for all instances of a type in TypesInDataSet, and others may only work on certain ones (such as items implementing ICanBeTransferred would be left alone if being transferred by another processor)
Declaration
public bool BelongsToDataSetProcessorType(IBaseEntity item)
Parameters
| Type | Name | Description |
|---|---|---|
| IBaseEntity | item | The item to see if it belongs in the type of processor this factory creates |
Returns
| Type | Description |
|---|---|
| bool | True if the specified item actualy belongs to the processor this factory creates. |
Create(IEntityUpdater, IReadOnlyCache, UserInfo)
Creates a new instance of the processor from this factory
Declaration
public IBaseDataSetProcessor Create(IEntityUpdater updater, IReadOnlyCache cache, UserInfo user)
Parameters
| Type | Name | Description |
|---|---|---|
| IEntityUpdater | updater | A context for querying and updating all items in the LemonEdge platform |
| IReadOnlyCache | cache | A local current cache |
| UserInfo | user | The current logged in user |
Returns
| Type | Description |
|---|---|
| IBaseDataSetProcessor | A new instance of the processor from this factory |