AuditIncidentDataService

Data services for audit incidents.

Namespace:
KpokPatagon.Auditing.Store
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No

Constructors

AuditIncidentDataService

Default constructor

Signature:
public Void AuditIncidentDataService()
Remarks

This service does not have any configuration for the required services for it to work.

All required services the CommandBuilder and the DataModelCommandBuilder must be configured by a DataServiceOptions<AuditDataService> configuration within the dependency injection service collection.

Properties

Alias

Gets an alias for the underlaying table.

Signature:
public String Alias { get; set; }

Fields

A collection of table field definition.

Signature:
public IDictionary<String, Field> Fields { get; set; }

Table

Gets the table name.

Signature:
public String Table { get; set; }

Methods

CountSecurityIncidentsAsync

Count audit incidents.

Signature:
public Task CountSecurityIncidentsAsync(openedOnly)
Returns

Quantity of incidents.

Parameters
Name Type Summary
openedOnly Boolean true if only opened incidents must be count otherwise false.

FindById

Finds a AuditIncident with the specified id.

Signature:
public AuditIncident FindById(id)
Returns

A AuditIncident or null if not found.

Parameters
Name Type Summary
id Int32 Audit incident Id

FindByIdAsync

Finds a AuditIncident with the specified id

Signature:
public Task FindByIdAsync(id)
Returns

A AuditIncident or null if not found.

Parameters
Name Type Summary
id Int32 Audit incident Id

GetUsersAsync

Gets a collection of ListItems by grouping the available users.

Signature:
public Task GetUsersAsync()
Returns

A collection of ListItems.