Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IAuditRepository

    Represents a repository for IAuditItem entities.

    Namespace: Umbraco.Cms.Core.Persistence.Repositories
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IAuditRepository : IReadRepository<int, IAuditItem>, IWriteRepository<IAuditItem>, IQueryRepository<IAuditItem>, IRepository

    Methods

    View Source

    CleanLogs(int)

    Cleans audit logs older than the specified maximum age.

    Declaration
    void CleanLogs(int maximumAgeOfLogsInMinutes)
    Parameters
    Type Name Description
    int maximumAgeOfLogsInMinutes

    The maximum age of logs in minutes.

    View Source

    Get(AuditType, IQuery<IAuditItem>)

    Gets audit items by type and query.

    Declaration
    IEnumerable<IAuditItem> Get(AuditType type, IQuery<IAuditItem> query)
    Parameters
    Type Name Description
    AuditType type

    The audit type to filter by.

    IQuery<IAuditItem> query

    The query to apply.

    Returns
    Type Description
    IEnumerable<IAuditItem>

    A collection of IAuditItem objects.

    View Source

    GetPagedResultsByQuery(IQuery<IAuditItem>, long, int, out long, 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

    long pageIndex
    int pageSize
    long 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
    IEnumerable<IAuditItem>
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX