Beispiel #1
0
        internal override void Initialize(AuditLogSearchItemBase item)
        {
            MailboxAuditLogSearchItem mailboxAuditLogSearchItem = (MailboxAuditLogSearchItem)item;

            base.Initialize(item);
            this.Mailboxes   = mailboxAuditLogSearchItem.MailboxIds;
            this.LogonTypes  = mailboxAuditLogSearchItem.LogonTypeStrings;
            this.Operations  = mailboxAuditLogSearchItem.Operations;
            this.ShowDetails = mailboxAuditLogSearchItem.ShowDetails;
        }
Beispiel #2
0
 internal virtual void Initialize(AuditLogSearchItemBase item)
 {
     this.SetId(new AuditLogSearchId(item.Identity));
     this.Name                 = item.Name;
     this.StartDateUtc         = new DateTime?(item.StartDate.UniversalTime);
     this.EndDateUtc           = new DateTime?(item.EndDate.UniversalTime);
     this.StatusMailRecipients = item.StatusMailRecipients;
     this.CreatedBy            = item.CreatedBy;
     this.CreatedByEx          = item.CreatedByEx;
     this.ExternalAccess       = item.ExternalAccess;
     this.CreationTime         = item.CreationTime.UniversalTime;
     this.MessageId            = item.MessageId;
 }
Beispiel #3
0
 protected override IEnumerable <T> InternalFindPaged <T>(QueryFilter filter, ObjectId rootId, bool deepSearch, SortBy sortBy, int pageSize)
 {
     foreach (VersionedId messageId in this.FindMessageIds(rootId, sortBy, true))
     {
         using (AuditLogSearchItemBase requestItem = this.GetItemFromStore(messageId))
         {
             AuditLogSearchBase request = (AuditLogSearchBase)((object)((default(T) == null) ? Activator.CreateInstance <T>() : default(T)));
             request.Initialize(requestItem);
             yield return((T)((object)request));
         }
     }
     yield break;
 }
Beispiel #4
0
        internal override void Initialize(AuditLogSearchItemBase item)
        {
            AdminAuditLogSearchItem adminAuditLogSearchItem = (AdminAuditLogSearchItem)item;

            base.Initialize(item);
            this.Cmdlets                = adminAuditLogSearchItem.Cmdlets;
            this.Parameters             = adminAuditLogSearchItem.Parameters;
            this.ObjectIds              = adminAuditLogSearchItem.ObjectIds;
            this.UserIds                = adminAuditLogSearchItem.RawUserIds;
            this.ResolvedUsers          = adminAuditLogSearchItem.ResolvedUsers;
            this.RedactDatacenterAdmins = adminAuditLogSearchItem.RedactDatacenterAdmins;
            this.Succeeded              = null;
            this.StartIndex             = 0;
            this.ResultSize             = 50000;
        }