View Source
Interface IAuditRepository
Assembly: Umbraco.Core.dll
Syntax
public interface IAuditRepository : IReadRepository<int, IAuditItem>, IWriteRepository<IAuditItem>, IQueryRepository<IAuditItem>, IRepository
Methods
View Source
CleanLogs(Int32)
Declaration
void CleanLogs(int maximumAgeOfLogsInMinutes)
Parameters
Type |
Name |
Description |
System.Int32 |
maximumAgeOfLogsInMinutes |
|
View Source
Get(AuditType, IQuery<IAuditItem>)
Declaration
IEnumerable<IAuditItem> Get(AuditType type, IQuery<IAuditItem> query)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IAuditItem> |
|
View Source
GetPagedResultsByQuery(IQuery<IAuditItem>, Int64, Int32, out Int64, Direction, AuditType[], IQuery<IAuditItem>)
Return the audit items as paged result
Declaration
IEnumerable<IAuditItem> GetPagedResultsByQuery(IQuery<IAuditItem> query, long pageIndex, int pageSize, out long totalRecords, Direction orderDirection, AuditType[] auditTypeFilter, IQuery<IAuditItem> customFilter)
Parameters
Type |
Name |
Description |
IQuery<IAuditItem> |
query |
The query coming from the service
|
System.Int64 |
pageIndex |
|
System.Int32 |
pageSize |
|
System.Int64 |
totalRecords |
|
Direction |
orderDirection |
|
AuditType[] |
auditTypeFilter |
Since we currently do not have enum support with our expression parser, we cannot query on AuditType in the query or the custom filter
so we need to do that here
|
IQuery<IAuditItem> |
customFilter |
A user supplied custom filter
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IAuditItem> |
|