コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
 /// <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;
 }
コード例 #5
0
 /// <summary>
 /// Starts a new filter with an inner filter.
 /// </summary>
 /// <param name="inner">The inner filter.</param>
 protected AuditFilterBase(AuditFilterBase inner)
 {
     this.innerFilter = inner;
 }
コード例 #6
0
 /// <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;
 }
コード例 #8
0
 /// <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;
 }
コード例 #9
0
 /// <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);
 }
コード例 #10
0
 /// <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;
 }
コード例 #11
0
 /// <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;
 }
コード例 #12
0
 /// <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);
 }
コード例 #13
0
 /// <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;
 }
コード例 #14
0
 /// <summary>
 /// Starts a new filter with an inner filter.
 /// </summary>
 /// <param name="inner">The inner filter.</param>
 protected AuditFilterBase(AuditFilterBase inner)
 {
     this.innerFilter = inner;
 }
コード例 #15
0
 /// <summary>
 /// Starts a new filter with an inner filter.
 /// </summary>
 /// <param name="inner">The inner filter.</param>
 public AuditFilterBase(AuditFilterBase inner)
 {
     this.innerFilter = inner;
 }
コード例 #16
0
 /// <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;
 }
コード例 #17
0
 /// <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;
 }