AuditDataServices

Data services for Audit records

Namespace:
Inetdev.Auditing
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
Inetdev.Data.DataServices

Constructors

AuditDataServices

Default constructor

Signature:
public Void AuditDataServices()

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

FindById

Finds an Audit with the specified id for the specified tenantId.

Signature:
public Audit FindById(id, tenantId)
Returns

An Audit or null if not found.

Parameters
Name Type Summary
id String Audit Id.
tenantId Int32 Tenant Id.

FindByIdAsync

Finds an Audit with the specified id for the specified tenantId.

Signature:
public Task<Audit> FindByIdAsync(id, tenantId)
Returns

An Audit or null if not found.

Parameters
Name Type Summary
id String Audit Id.
tenantId Int32 Tenant Id.

GetLastAuditBySource

Gets the last audit record for the specified source item of the current tenant.

Signature:
public Audit GetLastAuditBySource(protocol, id, tenantId)
Returns

An Audit or null if not found.

Parameters
Name Type Summary
protocol String Source protocol to look for.
id String Source id to look for.
tenantId Int32 Tenant Id.
Exceptions
Type Summary
ArgumentNullOrEmptyException

Thrown when protocol is null or empty.

-or-

When id is null or empty.

GetProtocolsAsync

Gets a collection of ListItems by grouping the available source protocols.

Signature:
public Task GetProtocolsAsync(tenantId)
Returns

A collection of ListItems.

Parameters
Name Type Summary
tenantId Int32 Tenant Id.

GetUsersAsync

Gets a collection of ListItems by grouping the available users.

Signature:
public Task GetUsersAsync(tenantId)
Returns

A collection of ListItems.

Parameters
Name Type Summary
tenantId Int32 Tenant Id.