Class AuditService
- Namespace
- Dynamicweb.Auditing
- Assembly
- Dynamicweb.Core.dll
Provides methods for querying and persisting audit information.
- Inheritance
-
Audit
Service
- Inherited Members
Properties
Disabled
Gets or sets possibility to add audit event.
Property Value
Methods
CountByQuery(AuditQuery)
Get audit events list by query
Parameters
queryAuditQuery
Returns
Delete(int)
Delete audit event by identifier
Parameters
autoIdint
Returns
DeleteByQuery(AuditQuery)
Delete audit events by query
Parameters
queryAuditQuery
Returns
GetById(int)
Gets audit event by identifier
Parameters
autoIdint
Returns
GetByIds(IEnumerable<int>)
Gets audits events by identifiers
Parameters
autoIdsIEnumerable<int>
Returns
GetByIds(IEnumerable<int>, AuditQuery)
Gets audits events by identifiers
Parameters
autoIdsIEnumerable<int>additionalQueryAuditQuery
Returns
GetByQuery(AuditQuery)
Get audit events list by query
Parameters
queryAuditQuery
Returns
GetDetails(Audit)
Get all audit details by audit identifier
Parameters
auditEventAudit
Returns
GetDetails(IEnumerable<Audit>)
Get audits details by audits identifiers
Parameters
auditEventsIEnumerable<Audit>
Returns
GetUniqueActions(AuditQuery)
Get unique event actions by query
Parameters
queryAuditQuery
Returns
GetUniqueTypes(AuditQuery)
Get unique event types by query
Parameters
queryAuditQuery
Returns
HasAnyAudits()
Returns
MoveAudits(IEnumerable<AuditMoveSetting>)
Parameters
auditsMoveSettingsIEnumerable<AuditMove >Setting
Save(Audit)
Add new audit event
Parameters
auditAuditThe audit event
Save(Audit, IEnumerable<AuditDetail>)
Add new audit event if it is new and create audit details for it.
Parameters
auditAuditThe audit
detailsIEnumerable<AuditDetail >List of the audit details
Save(Audit, string)
Add new audit event about deleted object.
Parameters
Remarks
Use this method to inform that audited object has been deleted