Ejemplo n.º 1
0
        public override OwaStoreObjectId GetItemId(int index)
        {
            VersionedId versionedId;

            if (base.TryGetPropertyValue <VersionedId>(index, ItemSchema.Id, out versionedId))
            {
                return(OwaStoreObjectId.CreateFromItemId(versionedId.ObjectId, this.folder));
            }
            ExTraceGlobals.CalendarDataTracer.TraceDebug(0L, "Couldn't get id from the item, skipping...");
            return(null);
        }
Ejemplo n.º 2
0
        public void IrmDecryptIfRestricted()
        {
            if (!Utilities.IsIrmRestricted(this.message))
            {
                return;
            }
            RightsManagedMessageItem rightsManagedMessageItem = (RightsManagedMessageItem)this.message;

            if (!this.userContext.IsIrmEnabled)
            {
                this.irmDecryptionStatus = RightsManagedMessageDecryptionStatus.FeatureDisabled;
                return;
            }
            if (!rightsManagedMessageItem.CanDecode)
            {
                this.irmDecryptionStatus = RightsManagedMessageDecryptionStatus.NotSupported;
                return;
            }
            try
            {
                Utilities.IrmDecryptIfRestricted(this.message, this.userContext, !this.isPreviewForm);
            }
            catch (MissingRightsManagementLicenseException ex)
            {
                this.irmDecryptionStatus = RightsManagedMessageDecryptionStatus.CreateFromException(ex);
                if (!Utilities.IsPrefetchRequest(OwaContext.Current) && !this.isEmbeddedItem && ex.MessageStoreId != null && !string.IsNullOrEmpty(ex.PublishLicense))
                {
                    OwaStoreObjectId messageId = OwaStoreObjectId.CreateFromItemId(ex.MessageStoreId, null, ex.MessageInArchive ? OwaStoreObjectIdType.ArchiveMailboxObject : OwaStoreObjectIdType.MailBoxObject, ex.MailboxOwnerLegacyDN);
                    this.userContext.AsyncAcquireIrmLicenses(messageId, ex.PublishLicense, ex.RequestCorrelator);
                }
            }
            catch (RightsManagementPermanentException exception)
            {
                this.irmDecryptionStatus = RightsManagedMessageDecryptionStatus.CreateFromException(exception);
            }
            catch (RightsManagementTransientException exception2)
            {
                this.irmDecryptionStatus = RightsManagedMessageDecryptionStatus.CreateFromException(exception2);
            }
        }
 // Token: 0x06002180 RID: 8576 RVA: 0x000BFE74 File Offset: 0x000BE074
 public string GetItemId()
 {
     if (this.conversationMode)
     {
         ConversationId itemProperty  = this.GetItemProperty <ConversationId>(ConversationItemSchema.ConversationId);
         byte[]         itemProperty2 = this.GetItemProperty <byte[]>(ItemSchema.InstanceKey);
         if (itemProperty != null)
         {
             return(OwaStoreObjectId.CreateFromConversationIdForListViewNotification(itemProperty, this.folderId, itemProperty2).ToString());
         }
         return(null);
     }
     else
     {
         VersionedId itemProperty3 = this.GetItemProperty <VersionedId>(ItemSchema.Id);
         if (itemProperty3 != null)
         {
             return(OwaStoreObjectId.CreateFromItemId(itemProperty3.ObjectId, this.folderId, OwaStoreObjectIdType.MailBoxObject, null).ToString());
         }
         return(null);
     }
 }