/// <summary> /// Starts a new filter with the date range and inner filter. /// </summary> public DateRangeAuditFilter(DateTime startDate, DateTime endDate, AuditFilterBase innerFilter) : base(innerFilter) { if (startDate > endDate) throw new ArgumentOutOfRangeException("endDate cannot be before startDate"); this.filterStartDate = startDate; this.filterEndDate = endDate; }
/// <summary> /// Starts a new filter with the user name and inner filter.. /// </summary> /// <param name="userName"></param> /// <param name="innerFilter"></param> public UserAuditFilter(string userName, AuditFilterBase innerFilter) : base(innerFilter) { if (string.IsNullOrEmpty(userName)) { throw new ArgumentNullException("userName"); } this.user = userName; }
/// <summary> /// Starts a new filter with the project name and inner filter.. /// </summary> /// <param name="projectName"></param> /// <param name="innerFilter"></param> public ProjectAuditFilter(string projectName, AuditFilterBase innerFilter) : base(innerFilter) { if (string.IsNullOrEmpty(projectName)) { throw new ArgumentNullException("projectName"); } this.project = projectName; }
/// <summary> /// Starts a new filter with the date range and inner filter. /// </summary> public DateRangeAuditFilter(DateTime startDate, DateTime endDate, AuditFilterBase innerFilter) : base(innerFilter) { if (startDate > endDate) { throw new ArgumentOutOfRangeException("endDate cannot be before startDate"); } this.filterStartDate = startDate; this.filterEndDate = endDate; }
/// <summary> /// Starts a new filter with an inner filter. /// </summary> /// <param name="inner">The inner filter.</param> protected AuditFilterBase(AuditFilterBase inner) { this.innerFilter = inner; }
/// <summary> /// Starts a new filter with the security right and inner filter. /// </summary> /// <param name="securityRight"></param> /// <param name="innerFilter"></param> public SecurityRightAuditFilter(SecurityRight securityRight, AuditFilterBase innerFilter) : base(innerFilter) { this.right = securityRight; }
/// <summary> /// Reads the specified number of filtered audit events. /// </summary> /// <param name="startPosition">The starting position.</param> /// <param name="numberOfRecords">The number of records to read.</param> /// <param name="filter">The filter to use.</param> /// <param name="serverSpecifier"></param> /// <param name="sessionToken"></param> /// <returns>A list of <see cref="AuditRecord"/>s containing the audit details that match the filter.</returns> public virtual List<AuditRecord> ReadAuditRecords(IServerSpecifier serverSpecifier, string sessionToken, int startPosition, int numberOfRecords, AuditFilterBase filter) { var response = GetCruiseManager(serverSpecifier, sessionToken) .ReadAuditRecords(startPosition, numberOfRecords, filter); return response; }
/// <summary> /// Starts a new filter with the project name and inner filter.. /// </summary> /// <param name="projectName"></param> /// <param name="innerFilter"></param> public ProjectAuditFilter(string projectName, AuditFilterBase innerFilter) : base(innerFilter) { if (string.IsNullOrEmpty(projectName)) throw new ArgumentNullException("projectName"); this.project = projectName; }
/// <summary> /// Starts a new filter with the security right and inner filter. /// </summary> /// <param name="filters"></param> /// <param name="innerFilter"></param> public CombinationAuditFilter(AuditFilterBase[] filters, AuditFilterBase innerFilter) : base(innerFilter) { this.combinedFilters = new List <AuditFilterBase>(filters); }
/// <summary> /// Starts a new filter with the event type and inner filter. /// </summary> /// <param name="eventType"></param> /// <param name="innerFilter"></param> public EventTypeAuditFilter(SecurityEvent eventType, AuditFilterBase innerFilter) : base(innerFilter) { this.type = eventType; }
/// <summary> /// Starts a new filter with the user name and inner filter.. /// </summary> /// <param name="userName"></param> /// <param name="innerFilter"></param> public UserAuditFilter(string userName, AuditFilterBase innerFilter) : base(innerFilter) { if (string.IsNullOrEmpty(userName)) throw new ArgumentNullException("userName"); this.user = userName; }
/// <summary> /// Starts a new filter with the security right and inner filter. /// </summary> /// <param name="filters"></param> /// <param name="innerFilter"></param> public CombinationAuditFilter(AuditFilterBase[] filters, AuditFilterBase innerFilter) : base(innerFilter) { this.combinedFilters = new List<AuditFilterBase>(filters); }
/// <summary> /// Starts a new filter with an inner filter. /// </summary> /// <param name="inner">The inner filter.</param> public AuditFilterBase(AuditFilterBase inner) { this.innerFilter = inner; }
/// <summary> /// Reads the specified number of filtered audit events. /// </summary> /// <returns>A list of <see cref="AuditRecord"/>s containing the audit details that match the filter.</returns> public override List<AuditRecord> ReadAuditRecords(int startRecord, int numberOfRecords, AuditFilterBase filter) { ReadAuditRequest request = new ReadAuditRequest(); request.SessionToken = SessionToken; request.ServerName = TargetServer; request.StartRecord = startRecord; request.NumberOfRecords = numberOfRecords; request.Filter = filter; ReadAuditResponse resp = ValidateResponse( connection.SendMessage("ReadAuditRecords", request)) as ReadAuditResponse; return resp.Records; }