Audit

Information of a data modification audit.

Namespace:
Inetdev.Auditing
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
Inetdev.Data.DataModel
Implements:
System.IEquatable{Inetdev.Auditing.Audit}

Constructors

Audit

Default constructor

Signature:
public Void Audit()

Audit

Initializes a new instance of Audit.

Signature:
public Void Audit(id)
Parameters
Name Type Summary
id String Audit record Id

Properties

CreatedOnUtc

Creation date and time on UTC.

Signature:
public DateTime CreatedOnUtc { get; set; }

Data

Audit record data

Signature:
public Byte[] Data { get; set; }

ElementString

The ToString text of the element beeing audited (truncated if necesary).

Signature:
public String ElementString { get; set; }

EnforceModelValidation

Whether model validation must be enforced.

Signature:
public Boolean EnforceModelValidation { get; }

Id

Audit record Id

Signature:
public String Id { get; set; }

Kind

Audit record kind

Signature:
public AuditKind Kind { get; set; }

Next

Next Audit item for this source.

Signature:
public Audit Next { get; set; }

NextId

Id of the next audit record

Signature:
public String NextId { get; set; }

Previous

Previous Audit item for this source.

Signature:
public Audit Previous { get; set; }

PreviousId

Id of the previous audit record

Signature:
public String PreviousId { get; set; }

SecurityIncidentId

Security incident Id

Signature:
public String SecurityIncidentId { get; set; }

SourceId

Id of the object that sources the audit record.

Signature:
public String SourceId { get; set; }

SourceProtocol

Protocol of the object that sources the audit record.

Signature:
public String SourceProtocol { get; set; }

SourceProtocolCaption

Caption for the source protocol

Signature:
public String SourceProtocolCaption { get; set; }

TenantId

Multi-tenant partition key.

Signature:
public Int32 TenantId { get; set; }

UserAuthority

User authority.

Signature:
public String UserAuthority { get; set; }

UserDisplayName

User display name

Signature:
public String UserDisplayName { get; set; }

UserId

User Id

Signature:
public String UserId { get; set; }

UserName

User name

Signature:
public String UserName { get; set; }

Methods

Equals

Checks if other is equals to this object.

Signature:
public Boolean Equals(other)
Parameters
Name Type Summary
other Audit

Equals

Checks if obj is equals to this object.

Signature:
public Boolean Equals(obj)
Parameters
Name Type Summary
obj Object An object to compare with this object.

GetAuditInfo

Gets audit internal data.

Signature:
public AuditInfo GetAuditInfo()
Returns

An AuditInfo or null if thre is no data.

Exceptions
Type Summary
AuditInfoDeserializationException Thrown when problems decrypting or de-serializing the internal data.

GetHashCode

Not required, implemented to avoid warnings, returns base.GetHasCode().

Signature:
public Int32 GetHashCode()

GetSecurityIncidentAsync

Gets the SecurityIncident related to this audit record if any.

Signature:
public Task<SecurityIncident> GetSecurityIncidentAsync()
Returns

A SecurityIncident or null if there is no related incident.

Exceptions
Type Summary
AuditInfoDeserializationException Thrown when problems decrypting or de-serializing the internal data.
SecurityIncidentNotFoundException Thrown when the security incident could not be found and an Id is registered within the audit record.