Table of Contents

Interface IAuditService

Namespace
Dynamicweb.Auditing
Assembly
Dynamicweb.dll
The IAuditService interface defines operations for working with the Audit Aggregate
[Obsolete("Use AuditService instead.")]
public interface IAuditService

Properties

Disabled

Gets or sets possibility to add audit event.
bool Disabled { get; set; }

Property Value

bool

Methods

CountByQuery(AuditQuery)

Get audit events list by query
int CountByQuery(AuditQuery query)

Parameters

query AuditQuery

Returns

int

Delete(int)

Delete audit event by identifier
bool Delete(int autoId)

Parameters

autoId int

Returns

bool

DeleteByQuery(AuditQuery)

Delete audit events by query
int DeleteByQuery(AuditQuery query)

Parameters

query AuditQuery

Returns

int

GetById(int)

Gets audit event by identifier
Audit GetById(int autoId)

Parameters

autoId int

Returns

Audit

GetByIds(IEnumerable<int>)

Gets audits events by identifiers
IEnumerable<Audit> GetByIds(IEnumerable<int> autoIds)

Parameters

autoIds IEnumerable<int>

Returns

IEnumerable<Audit>

GetByIds(IEnumerable<int>, AuditQuery)

Gets audits events by identifiers
IEnumerable<Audit> GetByIds(IEnumerable<int> autoIds, AuditQuery additionalQuery)

Parameters

autoIds IEnumerable<int>
additionalQuery AuditQuery

Returns

IEnumerable<Audit>

GetByQuery(AuditQuery)

Get audit events list by query
IEnumerable<Audit> GetByQuery(AuditQuery query)

Parameters

query AuditQuery

Returns

IEnumerable<Audit>

GetDetails(Audit)

Get all audit details by audit identifier
IEnumerable<AuditDetail> GetDetails(Audit auditEvent)

Parameters

auditEvent Audit

Returns

IEnumerable<AuditDetail>

GetDetails(IEnumerable<Audit>)

Get audits details by audits identifiers
IEnumerable<AuditDetail> GetDetails(IEnumerable<Audit> auditEvents)

Parameters

auditEvents IEnumerable<Audit>

Returns

IEnumerable<AuditDetail>

GetUniqueActions(AuditQuery)

IEnumerable<string> GetUniqueActions(AuditQuery auditQuery)

Parameters

auditQuery AuditQuery

Returns

IEnumerable<string>

GetUniqueTypes(AuditQuery)

IEnumerable<string> GetUniqueTypes(AuditQuery auditQuery)

Parameters

auditQuery AuditQuery

Returns

IEnumerable<string>

MoveAudits(List<AuditMoveSetting>)

void MoveAudits(List<AuditMoveSetting> auditsMoveSettings)

Parameters

auditsMoveSettings List<AuditMoveSetting>

Save(Audit)

Add new audit event
void Save(Audit audit)

Parameters

audit Audit
The audit event

Save(Audit, IEnumerable<AuditDetail>)

Add new audit event if it is new and create audit details for it.
void Save(Audit audit, IEnumerable<AuditDetail> details)

Parameters

audit Audit
The audit
details IEnumerable<AuditDetail>
List of the audit details

Save(Audit, string)

Add new audit event
void Save(Audit audit, string deletedObjectInfo)

Parameters

audit Audit
The audit event
deletedObjectInfo string
Information about deleted object
To top