Class AuditService
- Namespace
- Dynamicweb.Auditing
- Assembly
- Dynamicweb.dll
Provides methods for querying and persisting audit information.
public class AuditService : IAuditService
- Inheritance
-
AuditService
- Implements
- Inherited Members
Properties
Disabled
Gets or sets possibility to add audit event.
public bool Disabled { get; set; }
Property Value
Methods
CountByQuery(AuditQuery)
Get audit events list by query
public int CountByQuery(AuditQuery query)
Parameters
query
AuditQuery
Returns
Delete(int)
Delete audit event by identifier
public bool Delete(int autoId)
Parameters
autoId
int
Returns
DeleteByQuery(AuditQuery)
Delete audit events by query
public int DeleteByQuery(AuditQuery query)
Parameters
query
AuditQuery
Returns
GetById(int)
Gets audit event by identifier
public Audit GetById(int autoId)
Parameters
autoId
int
Returns
GetByIds(IEnumerable<int>)
Gets audits events by identifiers
public IEnumerable<Audit> GetByIds(IEnumerable<int> autoIds)
Parameters
autoIds
IEnumerable<int>
Returns
GetByIds(IEnumerable<int>, AuditQuery)
Gets audits events by identifiers
public IEnumerable<Audit> GetByIds(IEnumerable<int> autoIds, AuditQuery additionalQuery)
Parameters
autoIds
IEnumerable<int>additionalQuery
AuditQuery
Returns
GetByQuery(AuditQuery)
Get audit events list by query
public IEnumerable<Audit> GetByQuery(AuditQuery query)
Parameters
query
AuditQuery
Returns
GetDetails(Audit)
Get all audit details by audit identifier
public IEnumerable<AuditDetail> GetDetails(Audit auditEvent)
Parameters
auditEvent
Audit
Returns
GetDetails(IEnumerable<Audit>)
Get audits details by audits identifiers
public IEnumerable<AuditDetail> GetDetails(IEnumerable<Audit> auditEvents)
Parameters
auditEvents
IEnumerable<Audit>
Returns
GetUniqueActions(AuditQuery)
Get unique event actions by query
public IEnumerable<string> GetUniqueActions(AuditQuery query)
Parameters
query
AuditQuery
Returns
GetUniqueTypes(AuditQuery)
Get unique event types by query
public IEnumerable<string> GetUniqueTypes(AuditQuery query)
Parameters
query
AuditQuery
Returns
MoveAudits(List<AuditMoveSetting>)
public void MoveAudits(List<AuditMoveSetting> auditsMoveSettings)
Parameters
auditsMoveSettings
List<AuditMoveSetting>
Save(Audit)
Add new audit event
public 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.
public 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 about deleted object.
public void Save(Audit audit, string deletedObjectInfo)
Parameters
Remarks
Use this method to inform that audited object has been deleted