using System.Collections.Generic; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Querying; namespace Umbraco.Core.Persistence.Repositories { public interface IAuditRepository : IReadRepository, IWriteRepository, IQueryRepository { void CleanLogs(int maximumAgeOfLogsInMinutes); /// /// Return the audit items as paged result /// /// /// The query coming from the service /// /// /// /// /// /// /// 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 /// /// /// A user supplied custom filter /// /// IEnumerable GetPagedResultsByQuery( IQuery query, long pageIndex, int pageSize, out long totalRecords, Direction orderDirection, AuditType[] auditTypeFilter, IQuery customFilter); IEnumerable Get(AuditType type, IQuery query); } }